Skip to content

Commit

Permalink
test(e2e): ensure new instance whenever launch args are set (#5270)
Browse files Browse the repository at this point in the history
### Description

Noticed some e2e failures where a drawer is rendered instead of tab nav
for tab tests. Seems like launch args don't get passed through. Setting
newInstance to true so this always gets picked up

### Test plan

CI

### Related issues

N/A

### Backwards compatibility

N/A

### Network scalability

N/A
  • Loading branch information
satish-ravi committed Apr 18, 2024
1 parent bff505e commit f935ea8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/src/Pin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe.each([{ navType: 'drawer' }, { navType: 'tab' }])(
await device.uninstallApp()
await device.installApp()
await launchApp({
newInstance: false,
newInstance: true,
permissions: { notifications: 'YES', contacts: 'YES' },
launchArgs: { statsigGateOverrides: `use_tab_navigator=${navType === 'tab'}` },
})
Expand Down
1 change: 1 addition & 0 deletions e2e/src/usecases/ChooseYourAdventure.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default ChooseYourAdventure = () => {
await device.uninstallApp()
await device.installApp()
await launchApp({
newInstance: true,
launchArgs: {
statsigGateOverrides: `use_tab_navigator=true,show_cloud_account_backup_setup=true,show_cloud_account_backup_restore=true`,
},
Expand Down
1 change: 1 addition & 0 deletions e2e/src/usecases/NewAccountOnboarding.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export default NewAccountOnboarding = () => {
await device.uninstallApp()
await device.installApp()
await launchApp({
newInstance: true,
launchArgs: {
statsigGateOverrides: `use_tab_navigator=true,show_cloud_account_backup_setup=true,show_cloud_account_backup_restore=true`,
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/usecases/ResetAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default ResetAccount = ({ navType }) => {
// statsig gate overrides
beforeAll(async () => {
await launchApp({
newInstance: false,
newInstance: true,
permissions: { notifications: 'YES', contacts: 'YES' },
launchArgs: { statsigGateOverrides: `use_tab_navigator=${navType === 'tab'}` },
})
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/usecases/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default Settings = ({ navType }) => {
// statsig gate overrides
beforeAll(async () => {
await launchApp({
newInstance: false,
newInstance: true,
permissions: { notifications: 'YES', contacts: 'YES' },
launchArgs: { statsigGateOverrides: `use_tab_navigator=${navType === 'tab'}` },
})
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/usecases/Support.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default Support = () => {

it('Send Message to Support (tab)', async () => {
await launchApp({
newInstance: false,
newInstance: true,
permissions: { notifications: 'YES', contacts: 'YES' },
launchArgs: { statsigGateOverrides: `use_tab_navigator=true` },
})
Expand Down

0 comments on commit f935ea8

Please sign in to comment.