This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getSpecFiles.js | |
const glob = require('glob'); | |
const { readFileSync } = require('fs-extra'); | |
function getFilteredSpecFiles(specs, opts = {}) { | |
const { glob, grep } = getRegularExpression(opts); | |
const fileNames = getGlobMatches(specs); | |
const includedSpecFiles = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./wdio.conf.js | |
const argv = require('yargs').argv; | |
const { getFilteredSpecFiles, getRegularExpression } = require('./getSpecFiles'); | |
const cmdOpts = { | |
'happy-flow': argv.happyFlow, | |
target: argv.target, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./spec/grep-example.spec.ts | |
describe('various tests', () => { | |
it('I will be executed #happy-flow', () => {}); | |
it('I will be filtered', () => {}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wdio.conf.js | |
exports.config = { | |
specs: ['spec/**/*.spec.ts'], | |
framework: 'jasmine', | |
jasmineNodeOpts: { | |
defaultTimeoutInterval: 60000, | |
grep: '#happy-flow', | |
invertGrep: false, | |
}, | |
// ... other config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./objects/features/bank-account.ts | |
export class BankAccountObject { | |
// internal id | |
componentName = 'bank-account'; | |
// this is the root element: <my-bank-account /> | |
element = 'my-bank-account'; | |
// this is a (deep) element that renders latest | |
elementToRender = '#async-fetch-bank-account-balance'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// getSpecFiles.js | |
const glob = require('glob'); | |
const { readFileSync } = require('fs-extra'); | |
function getFilteredSpecFiles(specs, opts = {}) { | |
const { glob, grep } = getRegularExpression(opts); | |
const fileNames = getGlobMatches(specs); | |
const includedSpecFiles = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./wdio.conf.js | |
const argv = require('yargs').argv; | |
const { getFilteredSpecFiles, getRegularExpression } = require('./getSpecFiles'); | |
const cmdOpts = { | |
smoke: argv.smoke, | |
target: argv.target, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./spec/grep-example.spec.ts | |
describe('various tests', () => { | |
it('I will be executed #smoke', () => {}); | |
it('I will be filtered', () => {}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wdio.conf.js | |
exports.config = { | |
specs: ['spec/**/*.spec.ts'], | |
framework: 'jasmine', | |
jasmineNodeOpts: { | |
defaultTimeoutInterval: 60000, | |
grep: '#smoke', | |
invertGrep: false, | |
}, | |
// ... other config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./objects/features/bank-account.ts | |
import { ComponentObjectBase } from '../base'; | |
export class BankAccountObject extends ComponentObjectBase { | |
componentName = 'bank-account'; | |
element = 'my-bank-account'; | |
elementToRender = '[data-test="async-fetch-bank-account-balance"]'; | |
} |
NewerOlder