From 8b5752b1bfb27d024c90ced2c965550b660792d3 Mon Sep 17 00:00:00 2001 From: poka Date: Sat, 24 Apr 2021 21:53:28 +0200 Subject: [PATCH] Go to generation screen test; add script to start tests --- scripts/startIntegrationsTests.sh | 3 +++ test_driver/app_test.dart | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 scripts/startIntegrationsTests.sh diff --git a/scripts/startIntegrationsTests.sh b/scripts/startIntegrationsTests.sh new file mode 100755 index 0000000..eca24d1 --- /dev/null +++ b/scripts/startIntegrationsTests.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +flutter drive --target=test_driver/app.dart diff --git a/test_driver/app_test.dart b/test_driver/app_test.dart index 670f1fa..0aaea5e 100644 --- a/test_driver/app_test.dart +++ b/test_driver/app_test.dart @@ -51,10 +51,22 @@ void main() { await driver.tap(find.byValueKey('goStep3')); await driver.tap(find.byValueKey('goStep4')); await driver.tap(find.byValueKey('goStep5')); + await driver.tap(find.byValueKey('goStep6')); expect( 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."); });