Updated test comments and assertions based on feedback
This commit is contained in:
parent
502396ee00
commit
87aee208b6
|
@ -67,15 +67,17 @@ const runEditOrderTest = () => {
|
|||
// Update order details
|
||||
await expect(page).toFill('input[name=order_date]', '2018-12-14');
|
||||
|
||||
// Wait for auto save
|
||||
// Wait for auto save
|
||||
await page.waitFor( 2000 );
|
||||
|
||||
// Create the order
|
||||
// Save the order changes
|
||||
await expect( page ).toClick( 'button.save_order' );
|
||||
await page.waitForSelector( '#message' );
|
||||
|
||||
// Verify
|
||||
await expect( page ).toMatchElement( '#message', { text: 'Order updated.' } );
|
||||
await expect( page ).toMatchElement( 'input[name=order_date]', { value: '2018-12-14' } );
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue