-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e] Manual backup e2e test (#5913)
* init * test file * init * test file * start using testID * final updates
- Loading branch information
1 parent
bcafacc
commit 0f033be
Showing
15 changed files
with
128 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* eslint-disable no-await-in-loop */ | ||
import { | ||
beforeAllcleanApp, | ||
importWalletFlow, | ||
afterAllcleanApp, | ||
tap, | ||
tapByText, | ||
delayTime, | ||
tapAtPoint, | ||
checkIfExistsByText, | ||
checkIfExists, | ||
waitAndTap, | ||
checkIfDoesntExist, | ||
} from './helpers'; | ||
|
||
describe('Backups', () => { | ||
beforeAll(async () => { | ||
await beforeAllcleanApp({ hardhat: false }); | ||
}); | ||
afterAll(async () => { | ||
await afterAllcleanApp({ hardhat: false }); | ||
}); | ||
|
||
it('Imports wallet', async () => { | ||
await importWalletFlow(); | ||
}); | ||
|
||
it('Should go to settings', async () => { | ||
await waitAndTap('settings-menu'); | ||
await tapByText('Settings'); | ||
await checkIfExists('settings-sheet'); | ||
}); | ||
|
||
it('Should go to backups', async () => { | ||
await tap('backup-section'); | ||
await checkIfExistsByText('Wallets & Backup'); | ||
}); | ||
|
||
it('Should alert that iCloud isnt enabled', async () => { | ||
await waitAndTap('backup-now-button'); | ||
|
||
// Alert | ||
await checkIfExistsByText('iCloud Not Enabled'); | ||
await tapByText('No thanks'); | ||
}); | ||
|
||
it('Should go to specific wallets backup sheet and view seed phrase', async () => { | ||
await delayTime('medium'); | ||
await waitAndTap('not-backed-up'); | ||
await delayTime('long'); | ||
await waitAndTap('back-up-manually'); | ||
await delayTime('medium'); | ||
await waitAndTap('show-secret-button'); | ||
}); | ||
|
||
it('Should check if seed phrase exists word by word and confirm backup', async () => { | ||
await delayTime('medium'); | ||
const words = process.env.TEST_SEEDS ? process.env.TEST_SEEDS.split(' ') : []; | ||
for (const word of words) { | ||
await checkIfExistsByText(word.trim()); | ||
} | ||
await delayTime('medium'); | ||
await waitAndTap('saved-these-words'); | ||
}); | ||
|
||
it('Should go back to the backup sheet and it should be updated', async () => { | ||
await delayTime('medium'); | ||
await checkIfExistsByText('Wallets & Backup'); | ||
await checkIfDoesntExist('not-backed-up', 1_000); | ||
}); | ||
|
||
it('Should go to specific wallets backup sheet and it should be backup up now', async () => { | ||
await delayTime('medium'); | ||
await tap('back-ups-imported'); | ||
await delayTime('medium'); | ||
await checkIfExists('backed-up-manually'); | ||
}); | ||
}); |
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
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
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
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
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
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
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
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
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
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
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
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
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
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