Skip to content

Commit

Permalink
update htmlextn feature test for http2 error for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
nateekar committed May 31, 2024
1 parent daf3213 commit 8395bdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions features/milo/htmlextn.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
{
name: '@Html Extn for bcom',
path: [
'/customer-success-stories',
'/customer-success-stories/jaguar-land-rover-case-study',
'/customer-success-stories/abb-case-study',
'/customer-success-stories/dentsu-isobar-case-study',
Expand Down
11 changes: 7 additions & 4 deletions tests/milo/htmlextn.feature.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ const miloLibs = process.env.MILO_LIBS || '';
test.describe('Milo Html Extension feature test suite', () => {

// Test 0 : Html Extension validation for bacom
test(`${features[0].name},${features[0].tags}`, async ({ page }) => {
test(`${features[0].name},${features[0].tags}`, async ({ page, browserName }) => {
const paths = features[0].path;
const env = features[0].envs;
if(browserName === 'chromium'){
test.skip('Skipping test for Chrome browser : net::ERR_HTTP2_PROTOCOL_ERROR.')
}

await test.step('step-1: Go to test page urls and verify .html', async () => {
for (const path of paths) {
console.info('[Test Page]\n:', envList[env]+`${path}`);
const url = envList[env]+ path;
await page.goto(url, { waitUntil: 'load', timeout: 2000 });
await page.waitForLoadState('domcontentloaded');
await page.goto(url);
await page.waitForLoadState('networkidle');

if (!page.url().match(/@blog/) && (page.url().match(/customer-success-stories/))) {
expect(page.url()).toContain('.html');
Expand All @@ -37,7 +40,7 @@ test.describe('Milo Html Extension feature test suite', () => {
console.info('[Test Page]\n:', envList[env]+`${path}`);
const url = envList[env]+ path;
await page.goto(url);
await page.waitForLoadState('domcontentloaded');
await page.waitForLoadState('networkidle');

if (!page.url().match(/@blog/) && (page.url().match(/customer-success-stories/))) {
expect(page.url()).toContain('.html');
Expand Down

0 comments on commit 8395bdc

Please sign in to comment.