Fix Products test

This commit is contained in:
Anmol Gupta 2018-07-03 11:34:53 +05:30
parent da55898fa9
commit 6691875990
1 changed files with 3 additions and 3 deletions

View File

@ -7,10 +7,10 @@ import 'package:invoiceninja/utils/keys.dart';
class Constants {
static String newProductKey = 'Example Test Driver Product';
static String newProductNotes = 'Example Test Driver Notes';
static String newProductCost = '100.50';
static String newProductCost = '100.5';
static String updatedProductKey = 'Updated Example Test Driver Product';
static String updatedProductNotes = 'Updated Example Test Driver Notes';
static String updatedProductCost = '200.50';
static String updatedProductCost = '200.5';
static String saveToolTip = 'Save';
static String backToolTip = 'Back';
static String deleteToolTip = 'Delete';
@ -104,7 +104,7 @@ void main() {
await driver.tap(find.byTooltip(Constants.backToolTip));
});
test('Edit a existing product', () async {
await driver.tap(find.text(Constants.newProductKey));