Skip to content
Snippets Groups Projects
Commit 8b5752b1 authored by poka's avatar poka
Browse files

Go to generation screen test; add script to start tests

parent e8aaa0e2
No related branches found
No related tags found
1 merge request!19Intergration testy
#!/bin/bash
flutter drive --target=test_driver/app.dart
...@@ -51,10 +51,22 @@ void main() { ...@@ -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.");
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment