Tests
This commit is contained in:
parent
6b89de1e9f
commit
ad744856f7
|
|
@ -48,8 +48,11 @@ void main() {
|
|||
print('Check for error');
|
||||
await driver.waitFor(find.text(localization.pleaseEnterAProductKey));
|
||||
|
||||
if (await isMobile(driver)) {
|
||||
print('Click back');
|
||||
await driver.tap(find.pageBack());
|
||||
await driver.waitFor(find.byTooltip(localization.newProduct));
|
||||
}
|
||||
});
|
||||
|
||||
// Create a new product
|
||||
|
|
@ -74,9 +77,11 @@ void main() {
|
|||
await driver.waitFor(find.text(notes));
|
||||
//await driver.waitFor(find.text(cost));
|
||||
|
||||
if (await isMobile(driver)) {
|
||||
print('Click back');
|
||||
await driver.tap(find.pageBack());
|
||||
await driver.waitFor(find.byTooltip(localization.newProduct));
|
||||
}
|
||||
});
|
||||
|
||||
// Edit the newly created product
|
||||
|
|
@ -136,7 +141,9 @@ void main() {
|
|||
await driver.waitFor(find.text(localization.restoredProduct));
|
||||
await driver.waitForAbsent(find.text(localization.deleted));
|
||||
|
||||
if (await isMobile(driver)) {
|
||||
await driver.tap(find.pageBack());
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue