parent
48a2fccef0
commit
d9bcf83bf0
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
E2E tests: fixing skipped mini cart test
|
|
@ -16,7 +16,7 @@ const totalInclusiveTax = +singleProductSalePrice + 5 + 2.5;
|
||||||
|
|
||||||
let productId, countryTaxId, stateTaxId, shippingZoneId;
|
let productId, countryTaxId, stateTaxId, shippingZoneId;
|
||||||
|
|
||||||
test.describe.skip( 'Mini Cart block page', () => {
|
test.describe( 'Mini Cart block page', () => {
|
||||||
test.use( { storageState: process.env.ADMINSTATE } );
|
test.use( { storageState: process.env.ADMINSTATE } );
|
||||||
|
|
||||||
test.beforeAll( async ( { baseURL } ) => {
|
test.beforeAll( async ( { baseURL } ) => {
|
||||||
|
@ -176,9 +176,11 @@ test.describe.skip( 'Mini Cart block page', () => {
|
||||||
// customize font size and weight
|
// customize font size and weight
|
||||||
await page.getByLabel( 'Large', { exact: true } ).click();
|
await page.getByLabel( 'Large', { exact: true } ).click();
|
||||||
await page.getByRole( 'button', { name: 'Font weight' } ).click();
|
await page.getByRole( 'button', { name: 'Font weight' } ).click();
|
||||||
await page
|
// choose Light via kb press due to encountered issue with normal click
|
||||||
.getByRole( 'option', { name: 'Black', exact: true } )
|
await page.keyboard.press( 'ArrowDown' );
|
||||||
.click();
|
await page.keyboard.press( 'ArrowDown' );
|
||||||
|
await page.keyboard.press( 'ArrowDown' );
|
||||||
|
await page.keyboard.press( 'Enter' );
|
||||||
|
|
||||||
// publish created mini cart page
|
// publish created mini cart page
|
||||||
await page
|
await page
|
||||||
|
@ -215,7 +217,7 @@ test.describe.skip( 'Mini Cart block page', () => {
|
||||||
);
|
);
|
||||||
await expect( page.locator( miniCartBlock ) ).toHaveAttribute(
|
await expect( page.locator( miniCartBlock ) ).toHaveAttribute(
|
||||||
'data-style',
|
'data-style',
|
||||||
'{"typography":{"fontWeight":"900"}}'
|
'{"typography":{"fontWeight":"300"}}'
|
||||||
);
|
);
|
||||||
await page.locator( miniCartButton ).click();
|
await page.locator( miniCartButton ).click();
|
||||||
await expect(
|
await expect(
|
||||||
|
@ -280,9 +282,8 @@ test.describe.skip( 'Mini Cart block page', () => {
|
||||||
await page.goto( miniCartPageSlug );
|
await page.goto( miniCartPageSlug );
|
||||||
await page.locator( miniCartButton ).click();
|
await page.locator( miniCartButton ).click();
|
||||||
await page.getByRole( 'link', { name: 'Go to checkout' } ).click();
|
await page.getByRole( 'link', { name: 'Go to checkout' } ).click();
|
||||||
await expect(
|
await expect( page.url() ).toContain( '/checkout' );
|
||||||
page.getByRole( 'heading', { name: 'Checkout', exact: true } )
|
await expect( page.getByText( 'Place order' ) ).toBeVisible();
|
||||||
).toBeVisible();
|
|
||||||
await expect( page.locator( miniCartButton ) ).toBeHidden();
|
await expect( page.locator( miniCartButton ) ).toBeHidden();
|
||||||
|
|
||||||
// shopping cart is very sensitive to cookies, so be explicit
|
// shopping cart is very sensitive to cookies, so be explicit
|
||||||
|
|
Loading…
Reference in New Issue