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:
@ -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();
|
||||
|
Reference in New Issue
Block a user