-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
addf5ce
commit 12b3723
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { expect, test } from '~/tests/fixtures'; | ||
|
||
test('Order contains all necessary info and sections on Order Details page', async ({ page, account, order }) => { | ||
const customer = await account.create(); | ||
|
||
await customer.login(); | ||
|
||
const orderDetails = await order.create(98, customer.id); | ||
|
||
await page.goto('/account/orders/'); | ||
await expect(page.getByRole('link', { name: `Order # ${orderDetails.id}` })).toBeVisible(); | ||
|
||
await page.getByRole('link', { name: 'View Details' }).click(); | ||
await page.waitForURL(`/account/order/${orderDetails.id}/`); | ||
|
||
await expect(page.getByRole('heading', { name: `Order #${orderDetails.id}` })).toBeVisible(); | ||
await expect(page.getByText('Order contents')).toBeVisible(); | ||
await expect(page.getByText('Order Summary')).toBeVisible(); | ||
await expect(page.getByText('Shipping', { exact: true })).toBeVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters