mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
feat: testID property for use with e2e testing without interfering with a11y (#9793)
* fix(android): nested frames were sometimes not recreated (#9748) Co-authored-by: Eduardo Speroni <edusperoni@gmail.com> * feat: testID property for use with e2e testing without interfering with a11y * feat: better testID support along a11y wip * fix: make sure we have a defined id * feat: --env.e2e to enable testID * chore: return if using testID * chore: cleanup Co-authored-by: Eduardo Speroni <edusperoni@gmail.com> Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
This commit is contained in:
@ -425,6 +425,9 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
/* for compat only */ 'global.isIOS': platform === 'ios',
|
||||
process: 'global.process',
|
||||
|
||||
// enable testID when using --env.e2e
|
||||
__USE_TEST_ID__: !!env.e2e,
|
||||
|
||||
// todo: ?!?!
|
||||
// profile: '() => {}',
|
||||
},
|
||||
|
@ -49,6 +49,7 @@ export interface IWebpackEnv {
|
||||
// misc
|
||||
replace?: string[] | string;
|
||||
watchNodeModules?: boolean;
|
||||
e2e?: boolean;
|
||||
}
|
||||
|
||||
interface IChainEntry {
|
||||
|
Reference in New Issue
Block a user