Go to generation screen test; add script to start tests
This commit is contained in:
parent
e8aaa0e2c0
commit
8b5752b1bf
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
flutter drive --target=test_driver/app.dart
|
|
@ -51,10 +51,22 @@ void main() {
|
||||||
await driver.tap(find.byValueKey('goStep3'));
|
await driver.tap(find.byValueKey('goStep3'));
|
||||||
await driver.tap(find.byValueKey('goStep4'));
|
await driver.tap(find.byValueKey('goStep4'));
|
||||||
await driver.tap(find.byValueKey('goStep5'));
|
await driver.tap(find.byValueKey('goStep5'));
|
||||||
|
await driver.tap(find.byValueKey('goStep6'));
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await driver.getText(find.byValueKey(
|
await driver.getText(find.byValueKey(
|
||||||
'step5',
|
'step6',
|
||||||
|
)),
|
||||||
|
"J’ai généré votre phrase de restauration !\nTâchez de la garder bien secrète, car elle permet à quiconque la connaît d’accéder à tous vos portefeuilles.");
|
||||||
|
});
|
||||||
|
|
||||||
|
test('OnBoarding - Generate sentance', (
|
||||||
|
{timeout: const Duration(seconds: 5)}) async {
|
||||||
|
await driver.tap(find.byValueKey('goStep6'));
|
||||||
|
|
||||||
|
expect(
|
||||||
|
await driver.getText(find.byValueKey(
|
||||||
|
'step7',
|
||||||
)),
|
)),
|
||||||
"Munissez-vous d'un papier et d’un crayon\nafin de pouvoir noter votre phrase de restauration.");
|
"Munissez-vous d'un papier et d’un crayon\nafin de pouvoir noter votre phrase de restauration.");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue