-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[0].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[0].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card content/specs', async () => { | ||
//await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.segment).toBeVisible(); | ||
Check failure on line 26 in tests/milo/merchcard.block.test.js
|
||
await expect(await merchCard.segmentTitle).toContainText(data.title); | ||
|
||
// await expect(await merchCard.price).toContainText(data.price); | ||
|
@@ -47,12 +47,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[1].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[1].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card with Badge content/specs', async () => { | ||
//await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.segment).toBeVisible(); | ||
Check failure on line 55 in tests/milo/merchcard.block.test.js
|
||
await expect(await merchCard.segmentTitle).toContainText(data.title); | ||
|
||
await expect(await merchCard.segmentRibbon).toBeVisible(); | ||
|
@@ -85,12 +85,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[2].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[2].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.sepcialOffers).toBeVisible(); | ||
await expect(await merchCard.sepcialOffersImage).toBeVisible(); | ||
|
||
await expect(await merchCard.sepcialOffersTitleH4).toBeVisible(); | ||
|
@@ -113,12 +113,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[3].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[3].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.sepcialOffers).toBeVisible(); | ||
Check failure on line 121 in tests/milo/merchcard.block.test.js
|
||
await expect(await merchCard.sepcialOffersImage).toBeVisible(); | ||
|
||
await expect(await merchCard.sepcialOffersRibbon).toBeVisible(); | ||
|
@@ -153,12 +153,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[4].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[4].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.plans).toBeVisible(); | ||
Check failure on line 161 in tests/milo/merchcard.block.test.js
|
||
await expect(await merchCard.productIcon).toBeVisible(); | ||
|
||
await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3); | ||
|
@@ -182,12 +182,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[5].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[5].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.plans).toBeVisible(); | ||
await expect(await merchCard.productIcon).toBeVisible(); | ||
|
||
await expect(await merchCard.plansRibbon).toBeVisible(); | ||
|
@@ -214,12 +214,12 @@ test.describe('Milo Merchcard block test suite', () => { | |
|
||
await test.step('step-1: Go to Merch Card feature test page', async () => { | ||
await page.goto(`${baseURL}${features[6].path}${miloLibs}`); | ||
await page.waitForLoadState('domcontentloaded'); | ||
await page.waitForLoadState('networkidle'); | ||
await expect(page).toHaveURL(`${baseURL}${features[6].path}${miloLibs}`); | ||
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.plans).toBeVisible(); | ||
await expect(await merchCard.productIcon).toBeVisible(); | ||
|
||
await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3); | ||
|
@@ -250,7 +250,7 @@ test.describe('Milo Merchcard block test suite', () => { | |
}); | ||
|
||
await test.step('step-2: Verify Merch Card special offers content/specs', async () => { | ||
//await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.plans).toBeVisible(); | ||
await expect(await merchCard.productIcon).toBeVisible(); | ||
|
||
await expect(await merchCard.plansRibbon).toBeVisible(); | ||
|
@@ -283,7 +283,7 @@ test.describe('Milo Merchcard block test suite', () => { | |
}); | ||
|
||
await test.step('step-2: Verify Merch Card catalog content/specs', async () => { | ||
//await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.catalog).toBeVisible(); | ||
await expect(await merchCard.catalogCardTitleH3).toContainText(data.titleH3); | ||
await expect(await merchCard.catalogCardTitleH4).toContainText(data.titleH4); | ||
|
||
|
@@ -315,7 +315,7 @@ test.describe('Milo Merchcard block test suite', () => { | |
}); | ||
|
||
await test.step('step-2: Verify Merch Card catalog with badge content/specs', async () => { | ||
//await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.catalog).toBeVisible(); | ||
|
||
await expect(await merchCard.catalog).toHaveAttribute('badge-background-color', data.badgeBgColor); | ||
await expect(await merchCard.catalog).toHaveAttribute('badge-color', data.badgeColor); | ||
|
@@ -352,7 +352,7 @@ test.describe('Milo Merchcard block test suite', () => { | |
}); | ||
|
||
await test.step('step-2: Verify Merch Card catalog with badge content/specs', async () => { | ||
//await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 }); | ||
await expect(await merchCard.catalog).toBeVisible(); | ||
|
||
await expect(await merchCard.catalog).toHaveAttribute('badge-background-color', data.badgeBgColor); | ||
await expect(await merchCard.catalog).toHaveAttribute('badge-color', data.badgeColor); | ||
|