Tests
This commit is contained in:
parent
2072cfd2c4
commit
410b4cdb63
|
|
@ -87,6 +87,9 @@ void main() {
|
|||
await driver.tap(find.text(productKey));
|
||||
}
|
||||
|
||||
print('Tap edit');
|
||||
await driver.tap(find.text(localization.edit));
|
||||
|
||||
await fillAndSaveForm(driver, <String, dynamic>{
|
||||
localization.productKey: updatedProductKey,
|
||||
localization.notes: updatedNotes,
|
||||
|
|
@ -96,7 +99,7 @@ void main() {
|
|||
|
||||
// Archive the edited product
|
||||
test('Archieve/delete product test', () async {
|
||||
testArchiveAndDelete(
|
||||
await testArchiveAndDelete(
|
||||
driver: driver,
|
||||
archivedMessage: localization.archivedProduct,
|
||||
deletedMessage: localization.deletedProduct,
|
||||
|
|
|
|||
|
|
@ -103,9 +103,8 @@ Future<void> checkTextFields(
|
|||
|
||||
Future<void> fillAndSaveForm(
|
||||
FlutterDriver driver, Map<String, dynamic> values) async {
|
||||
print('Tap edit');
|
||||
|
||||
final localization = TestLocalization('en');
|
||||
await driver.tap(find.text(localization.edit));
|
||||
|
||||
print('Fill in form');
|
||||
await fillTextFields(driver, values);
|
||||
|
|
|
|||
Loading…
Reference in New Issue