mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix(testing): e2e flag no longer needed, testID is now applicable in dev or prod builds (#10396)
- you can now test on development or production with testID set - for android, this changes testID to use resource id instead of content description - you no longer need to pass `--env.e2e`. e2e is simply usable if testID is set - the `testID` property will also set `accessibilityIdentifier` and `accessibilityIdentifier` property will set `testID` only if there is a `testID` already set
This commit is contained in:
@ -449,9 +449,6 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
|
||||
/* for compat only */ 'global.isVisionOS': platform === 'visionos',
|
||||
process: 'global.process',
|
||||
|
||||
// enable testID when using --env.e2e
|
||||
__USE_TEST_ID__: !!env.e2e,
|
||||
|
||||
// todo: ?!?!
|
||||
// profile: '() => {}',
|
||||
},
|
||||
|
@ -52,7 +52,6 @@ export interface IWebpackEnv {
|
||||
// misc
|
||||
replace?: string[] | string;
|
||||
watchNodeModules?: boolean;
|
||||
e2e?: boolean;
|
||||
}
|
||||
|
||||
interface IChainEntry {
|
||||
|
Reference in New Issue
Block a user