Product delete test

This commit is contained in:
Anmol Gupta 2018-06-27 19:51:48 +05:30
parent 02a5baf245
commit 806b0b5bae
1 changed files with 16 additions and 0 deletions

View File

@ -112,5 +112,21 @@ void main() {
await driver.tap(find.byTooltip('Back')); await driver.tap(find.byTooltip('Back'));
}); });
test('Deleteing an item test', () async {
// delete the test product created
await driver.tap(find.text('Updated Example Test Driver Product'));
await driver.tap(find.byTooltip('Show menu'));
await driver.tap(find.text('Delete'));
// verify snackbar
await driver.waitFor(find.text('Successfully deleted product'));
await driver.tap(find.byTooltip('Back'));
// verify not in list
await driver.waitForAbsent(find.text('Updated Example Test Driver Product'));
});
}); });
} }