Skip to content

Commit

Permalink
updating wait
Browse files Browse the repository at this point in the history
  • Loading branch information
nateekar committed May 31, 2024
1 parent 1dd981a commit 20eb30d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions tests/milo/htmlextn.feature.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test.describe('Milo Html Extension feature test suite', () => {
const url = envList[env]+ path;
await page.goto(url);

Check failure on line 18 in tests/milo/htmlextn.feature.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › htmlextn.feature.test.js:10:7 › Milo Html Extension feature test suite › @Html Extn for bcom

1) [milo-live-chromium] › htmlextn.feature.test.js:10:7 › Milo Html Extension feature test suite › @html Extn for bcom,@htmlextn › step-1: Go to test page urls and verify .html Error: page.goto: net::ERR_HTTP2_PROTOCOL_ERROR at https://business.adobe.com/customer-success-stories Call log: - navigating to "https://business.adobe.com/customer-success-stories", waiting until "load" 16 | console.info('[Test Page]\n:', envList[env]+`${path}`); 17 | const url = envList[env]+ path; > 18 | await page.goto(url); | ^ 19 | await page.waitForLoadState('domcontentloaded'); 20 | await page.waitForLoadState('networkidle'); 21 | at /home/runner/work/nala/nala/tests/milo/htmlextn.feature.test.js:18:20 at /home/runner/work/nala/nala/tests/milo/htmlextn.feature.test.js:14:16

Check failure on line 18 in tests/milo/htmlextn.feature.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › htmlextn.feature.test.js:10:7 › Milo Html Extension feature test suite › @Html Extn for bcom

1) [milo-live-chromium] › htmlextn.feature.test.js:10:7 › Milo Html Extension feature test suite › @html Extn for bcom,@htmlextn › step-1: Go to test page urls and verify .html Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.goto: net::ERR_HTTP2_PROTOCOL_ERROR at https://business.adobe.com/customer-success-stories Call log: - navigating to "https://business.adobe.com/customer-success-stories", waiting until "load" 16 | console.info('[Test Page]\n:', envList[env]+`${path}`); 17 | const url = envList[env]+ path; > 18 | await page.goto(url); | ^ 19 | await page.waitForLoadState('domcontentloaded'); 20 | await page.waitForLoadState('networkidle'); 21 | at /home/runner/work/nala/nala/tests/milo/htmlextn.feature.test.js:18:20 at /home/runner/work/nala/nala/tests/milo/htmlextn.feature.test.js:14:16
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
22 changes: 11 additions & 11 deletions tests/milo/merchcard.block.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe('Milo Merchcard block test suite', () => {
});

await test.step('step-2: Verify Merch Card content/specs', async () => {
await expect(await merchCard.segment).toBeVisible();
await expect(await merchCard.segment).toBeVisible({ timeout: 2000 });

Check failure on line 26 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:15:7 › Milo Merchcard block test suite › @Merch-card (Segment)

2) [milo-live-chromium] › merchcard.block.test.js:15:7 › Milo Merchcard block test suite › @Merch-card (Segment),@merch-card @smoke @regression @milo › step-2: Verify Merch Card content/specs Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.segment').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.segment').first() - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" 24 | 25 | await test.step('step-2: Verify Merch Card content/specs', async () => { > 26 | await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ^ 27 | await expect(await merchCard.segmentTitle).toContainText(data.title); 28 | 29 | // await expect(await merchCard.price).toContainText(data.price); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:26:45

Check failure on line 26 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:15:7 › Milo Merchcard block test suite › @Merch-card (Segment)

2) [milo-live-chromium] › merchcard.block.test.js:15:7 › Milo Merchcard block test suite › @Merch-card (Segment),@merch-card @smoke @regression @milo › step-2: Verify Merch Card content/specs Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.segment').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.segment').first() - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" 24 | 25 | await test.step('step-2: Verify Merch Card content/specs', async () => { > 26 | await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ^ 27 | await expect(await merchCard.segmentTitle).toContainText(data.title); 28 | 29 | // await expect(await merchCard.price).toContainText(data.price); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:26:45
await expect(await merchCard.segmentTitle).toContainText(data.title);

// await expect(await merchCard.price).toContainText(data.price);
Expand Down Expand Up @@ -52,7 +52,7 @@ test.describe('Milo Merchcard block test suite', () => {
});

await test.step('step-2: Verify Merch Card with Badge content/specs', async () => {
await expect(await merchCard.segment).toBeVisible();
await expect(await merchCard.segment).toBeVisible({ timeout: 2000 });

Check failure on line 55 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:44:7 › Milo Merchcard block test suite › @Merch-card (Segment) with Badge

3) [milo-live-chromium] › merchcard.block.test.js:44:7 › Milo Merchcard block test suite › @Merch-card (Segment) with Badge,@merch-card @smoke @regression @milo › step-2: Verify Merch Card with Badge content/specs Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.segment').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.segment').first() - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" 53 | 54 | await test.step('step-2: Verify Merch Card with Badge content/specs', async () => { > 55 | await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ^ 56 | await expect(await merchCard.segmentTitle).toContainText(data.title); 57 | 58 | await expect(await merchCard.segmentRibbon).toBeVisible(); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:55:45

Check failure on line 55 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:44:7 › Milo Merchcard block test suite › @Merch-card (Segment) with Badge

3) [milo-live-chromium] › merchcard.block.test.js:44:7 › Milo Merchcard block test suite › @Merch-card (Segment) with Badge,@merch-card @smoke @regression @milo › step-2: Verify Merch Card with Badge content/specs Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.segment').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.segment').first() - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card segment">…</div> - unexpected value "hidden" 53 | 54 | await test.step('step-2: Verify Merch Card with Badge content/specs', async () => { > 55 | await expect(await merchCard.segment).toBeVisible({ timeout: 2000 }); | ^ 56 | await expect(await merchCard.segmentTitle).toContainText(data.title); 57 | 58 | await expect(await merchCard.segmentRibbon).toBeVisible(); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:55:45
await expect(await merchCard.segmentTitle).toContainText(data.title);

await expect(await merchCard.segmentRibbon).toBeVisible();
Expand Down Expand Up @@ -90,7 +90,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.sepcialOffers).toBeVisible();
await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 });
await expect(await merchCard.sepcialOffersImage).toBeVisible();

await expect(await merchCard.sepcialOffersTitleH4).toBeVisible();
Expand Down Expand Up @@ -118,7 +118,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.sepcialOffers).toBeVisible();
await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 });

Check failure on line 121 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:110:7 › Milo Merchcard block test suite › @Merch-card (special-offers) with badge

4) [milo-live-chromium] › merchcard.block.test.js:110:7 › Milo Merchcard block test suite › @Merch-card (special-offers) with badge,@merch-card @smoke @regression @milo › step-2: Verify Merch Card special offers content/specs Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.special-offers').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.special-offers').first() - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" 119 | 120 | await test.step('step-2: Verify Merch Card special offers content/specs', async () => { > 121 | await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 }); | ^ 122 | await expect(await merchCard.sepcialOffersImage).toBeVisible(); 123 | 124 | await expect(await merchCard.sepcialOffersRibbon).toBeVisible(); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:121:51

Check failure on line 121 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:110:7 › Milo Merchcard block test suite › @Merch-card (special-offers) with badge

4) [milo-live-chromium] › merchcard.block.test.js:110:7 › Milo Merchcard block test suite › @Merch-card (special-offers) with badge,@merch-card @smoke @regression @milo › step-2: Verify Merch Card special offers content/specs Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.special-offers').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.special-offers').first() - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card special-offers">…</div> - unexpected value "hidden" 119 | 120 | await test.step('step-2: Verify Merch Card special offers content/specs', async () => { > 121 | await expect(await merchCard.sepcialOffers).toBeVisible({ timeout: 2000 }); | ^ 122 | await expect(await merchCard.sepcialOffersImage).toBeVisible(); 123 | 124 | await expect(await merchCard.sepcialOffersRibbon).toBeVisible(); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:121:51
await expect(await merchCard.sepcialOffersImage).toBeVisible();

await expect(await merchCard.sepcialOffersRibbon).toBeVisible();
Expand Down Expand Up @@ -158,7 +158,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();
await expect(await merchCard.plans).toBeVisible({ timeout: 2000 });

Check failure on line 161 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:150:7 › Milo Merchcard block test suite › @Merch-card (plans)

5) [milo-live-chromium] › merchcard.block.test.js:150:7 › Milo Merchcard block test suite › @Merch-card (plans),@merch-card @smoke @regression @milo › step-2: Verify Merch Card special offers content/specs Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.plans').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.plans').first() - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" 159 | 160 | await test.step('step-2: Verify Merch Card special offers content/specs', async () => { > 161 | await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ^ 162 | await expect(await merchCard.productIcon).toBeVisible(); 163 | 164 | await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:161:43

Check failure on line 161 in tests/milo/merchcard.block.test.js

View workflow job for this annotation

GitHub Actions / Running tests

[milo-live-chromium] › merchcard.block.test.js:150:7 › Milo Merchcard block test suite › @Merch-card (plans)

5) [milo-live-chromium] › merchcard.block.test.js:150:7 › Milo Merchcard block test suite › @Merch-card (plans),@merch-card @smoke @regression @milo › step-2: Verify Merch Card special offers content/specs Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 2000ms waiting for expect(locator).toBeVisible() Locator: locator('.merch-card.plans').first() Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 2000ms - waiting for locator('.merch-card.plans').first() - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" - locator resolved to <div class="merch-card plans">…</div> - unexpected value "hidden" 159 | 160 | await test.step('step-2: Verify Merch Card special offers content/specs', async () => { > 161 | await expect(await merchCard.plans).toBeVisible({ timeout: 2000 }); | ^ 162 | await expect(await merchCard.productIcon).toBeVisible(); 163 | 164 | await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3); at /home/runner/work/nala/nala/tests/milo/merchcard.block.test.js:161:43
await expect(await merchCard.productIcon).toBeVisible();

await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3);
Expand Down Expand Up @@ -187,7 +187,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();
await expect(await merchCard.plans).toBeVisible({ timeout: 2000 });
await expect(await merchCard.productIcon).toBeVisible();

await expect(await merchCard.plansRibbon).toBeVisible();
Expand Down Expand Up @@ -219,7 +219,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();
await expect(await merchCard.plans).toBeVisible({ timeout: 2000 });
await expect(await merchCard.productIcon).toBeVisible();

await expect(await merchCard.plansCardTitleH3).toContainText(data.titleH3);
Expand Down Expand Up @@ -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();
await expect(await merchCard.plans).toBeVisible({ timeout: 2000 });
await expect(await merchCard.productIcon).toBeVisible();

await expect(await merchCard.plansRibbon).toBeVisible();
Expand Down Expand Up @@ -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();
await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 });
await expect(await merchCard.catalogCardTitleH3).toContainText(data.titleH3);
await expect(await merchCard.catalogCardTitleH4).toContainText(data.titleH4);

Expand Down Expand Up @@ -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();
await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 });

await expect(await merchCard.catalog).toHaveAttribute('badge-background-color', data.badgeBgColor);
await expect(await merchCard.catalog).toHaveAttribute('badge-color', data.badgeColor);
Expand Down Expand Up @@ -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();
await expect(await merchCard.catalog).toBeVisible({ timeout: 2000 });

await expect(await merchCard.catalog).toHaveAttribute('badge-background-color', data.badgeBgColor);
await expect(await merchCard.catalog).toHaveAttribute('badge-color', data.badgeColor);
Expand Down

0 comments on commit 20eb30d

Please sign in to comment.