1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-08-01 06:54:41 +08:00

Upgrade screenshot taking script to handle onboarding

This commit is contained in:
Vishesh Handa
2019-02-16 16:27:18 +01:00
parent 7c9e5c00c8
commit 8e75fc0b6f
2 changed files with 16 additions and 0 deletions

@ -77,6 +77,7 @@ class OnBoardingScreenState extends State<OnBoardingScreen> {
width: double.infinity,
height: _bottomBarHeight,
child: RaisedButton(
key: ValueKey("GetStarted"),
child: Text(
"Get Started",
textAlign: TextAlign.center,

@ -31,6 +31,21 @@ void main() {
}
test('Anonymous GitClone works', () async {
// OnBoarding
var nextButton = find.text("Next");
await driver.waitFor(nextButton, timeout: Duration(seconds: 5));
await _takeScreenshot();
await driver.tap(nextButton);
// Page 2
await _takeScreenshot();
await driver.tap(nextButton);
// Page 3
await _takeScreenshot();
await driver.tap(find.byValueKey("GetStarted"));
// Main Screen
final loadedFinder = find.text('Why not add your first\n Journal Entry?');
await driver.waitFor(loadedFinder, timeout: Duration(seconds: 5));
await _takeScreenshot();