MWPW-164967 [NALA] test for Target enablement #2508
Annotations
8 errors, 1 warning, and 1 notice
Run Nala Tests via pr.run.sh:
nala/features/personalization/target-on.test.js#L25
1) [milo-live-chromium] › features/personalization/target-on.test.js:20:5 › @check for Target enablement via page metadata,@targeton1 @smoke @regression @milo
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.marquee').first().locator('.heading-xl').first()
Expected string: "Target is running"
Received string: "Heading XL Marquee standard medium left"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.marquee').first().locator('.heading-xl').first()
- locator resolved to <h2 class="heading-xl" id="heading-xl-marquee-standard-medium-left">…</h2>
- unexpected value "Heading XL Marquee standard medium left"
23 | console.info(`[Test Page]: ${metadataURL}`);
24 | await page.goto(metadataURL);
> 25 | await expect(marquee.headingXL).toHaveText('Target is running');
| ^
26 | });
27 |
28 | // Test 2: check for Target enablement via URL parameter
at /home/runner/work/milo/milo/nala/features/personalization/target-on.test.js:25:35
|
Run Nala Tests via pr.run.sh:
nala/features/personalization/target-on.test.js#L25
1) [milo-live-chromium] › features/personalization/target-on.test.js:20:5 › @check for Target enablement via page metadata,@targeton1 @smoke @regression @milo
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.marquee').first().locator('.heading-xl').first()
Expected string: "Target is running"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.marquee').first().locator('.heading-xl').first()
23 | console.info(`[Test Page]: ${metadataURL}`);
24 | await page.goto(metadataURL);
> 25 | await expect(marquee.headingXL).toHaveText('Target is running');
| ^
26 | });
27 |
28 | // Test 2: check for Target enablement via URL parameter
at /home/runner/work/milo/milo/nala/features/personalization/target-on.test.js:25:35
|
Run Nala Tests via pr.run.sh:
nala/features/personalization/target-on.test.js#L34
2) [milo-live-chromium] › features/personalization/target-on.test.js:29:5 › @check for Target enablement via URL parameter,@targeton2 @smoke @regression @milo
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.marquee').first().locator('.heading-xl').first()
Expected string: "Target is running"
Received string: "Heading XL Marquee standard medium left"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.marquee').first().locator('.heading-xl').first()
- locator resolved to <h2 class="heading-xl" id="heading-xl-marquee-standard-medium-left">…</h2>
- unexpected value "Heading XL Marquee standard medium left"
32 | console.info(`[Test Page]: ${parameterURL}`);
33 | await page.goto(parameterURL);
> 34 | await expect(marquee.headingXL).toHaveText('Target is running');
| ^
35 | });
36 |
at /home/runner/work/milo/milo/nala/features/personalization/target-on.test.js:34:35
|
Run Nala Tests via pr.run.sh:
nala/features/personalization/target-on.test.js#L34
2) [milo-live-chromium] › features/personalization/target-on.test.js:29:5 › @check for Target enablement via URL parameter,@targeton2 @smoke @regression @milo
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.marquee').first().locator('.heading-xl').first()
Expected string: "Target is running"
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.marquee').first().locator('.heading-xl').first()
32 | console.info(`[Test Page]: ${parameterURL}`);
33 | await page.goto(parameterURL);
> 34 | await expect(marquee.headingXL).toHaveText('Target is running');
| ^
35 | });
36 |
at /home/runner/work/milo/milo/nala/features/personalization/target-on.test.js:34:35
|
Run Nala Tests via pr.run.sh:
nala/blocks/actionitem/actionitem.test.js#L211
3) [milo-live-firefox] › blocks/actionitem/actionitem.test.js:193:7 › Milo Action-Item block test suite › 7: @action-item (scroller with navigation), @action-item @smoke @regression @milo › step-2: Verify Action item content/specs
Error: Timed out 1000ms waiting for expect(locator).toBeVisible()
Locator: locator('.action-scroller').first().locator('.nav-grad.next').locator('.nav-button.next-button')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 1000ms
- waiting for locator('.action-scroller').first().locator('.nav-grad.next').locator('.nav-button.next-button')
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
209 | await expect(await actionItem.bodyText).toContainText(data.bodyText);
210 |
> 211 | await expect(await actionItem.nextButton).toBeVisible({ timeout: 1000 });
| ^
212 | await actionItem.nextButton.click();
213 | await expect(await actionItem.previousButton).toBeVisible({ timeout: 1000 });
214 | await expect(await actionItem.navigationNext).toHaveAttribute('hide-btn', 'false');
at /home/runner/work/milo/milo/nala/blocks/actionitem/actionitem.test.js:211:49
at /home/runner/work/milo/milo/nala/blocks/actionitem/actionitem.test.js:203:5
|
Run Nala Tests via pr.run.sh:
nala/blocks/actionitem/actionitem.test.js#L211
3) [milo-live-firefox] › blocks/actionitem/actionitem.test.js:193:7 › Milo Action-Item block test suite › 7: @action-item (scroller with navigation), @action-item @smoke @regression @milo › step-2: Verify Action item content/specs
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 1000ms waiting for expect(locator).toBeVisible()
Locator: locator('.action-scroller').first().locator('.nav-grad.next').locator('.nav-button.next-button')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 1000ms
- waiting for locator('.action-scroller').first().locator('.nav-grad.next').locator('.nav-button.next-button')
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
- locator resolved to <button class="nav-button next-button">…</button>
- unexpected value "hidden"
209 | await expect(await actionItem.bodyText).toContainText(data.bodyText);
210 |
> 211 | await expect(await actionItem.nextButton).toBeVisible({ timeout: 1000 });
| ^
212 | await actionItem.nextButton.click();
213 | await expect(await actionItem.previousButton).toBeVisible({ timeout: 1000 });
214 | await expect(await actionItem.navigationNext).toHaveAttribute('hide-btn', 'false');
at /home/runner/work/milo/milo/nala/blocks/actionitem/actionitem.test.js:211:49
at /home/runner/work/milo/milo/nala/blocks/actionitem/actionitem.test.js:203:5
|
Run Nala Tests via pr.run.sh:
nala/features/mas/benchmark/benchmark.test.js#L46
4) [milo-live-chromium] › features/mas/benchmark/benchmark.test.js:17:7 › Benchmark feature test suite › @MAS-CCD-benchmark,@MAS-CCD @merch-benchmark-ccd-cards @mas-benchmark @Commerce @smoke @regression @milo › step-2: Validate benchmark
Error: 1497.7000000000116ms should be less than limit 853.6585365853658ms (adjusted from 400ms)
expect(received).toBeTruthy()
Received: false
44 | expect(times.length).toBeGreaterThan(0);
45 | times.forEach((time) => {
> 46 | expect(parseFloat(time) < parseFloat(limit), `${time}ms should be less than limit ${limitMessage}`).toBeTruthy();
| ^
47 | });
48 | });
49 | });
at forEach (/home/runner/work/milo/milo/nala/features/mas/benchmark/benchmark.test.js:46:109)
at /home/runner/work/milo/milo/nala/features/mas/benchmark/benchmark.test.js:45:13
at /home/runner/work/milo/milo/nala/features/mas/benchmark/benchmark.test.js:27:5
|
Run Nala Tests via pr.run.sh
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run Nala Tests via pr.run.sh
3 failed
[milo-live-chromium] › features/personalization/target-on.test.js:20:5 › @check for Target enablement via page metadata,@targeton1 @smoke @regression @milo
[milo-live-chromium] › features/personalization/target-on.test.js:29:5 › @check for Target enablement via URL parameter,@targeton2 @smoke @regression @milo
[milo-live-firefox] › blocks/actionitem/actionitem.test.js:193:7 › Milo Action-Item block test suite › 7: @action-item (scroller with navigation), @action-item @smoke @regression @milo
1 flaky
[milo-live-chromium] › features/mas/benchmark/benchmark.test.js:17:7 › Benchmark feature test suite › @MAS-CCD-benchmark,@MAS-CCD @merch-benchmark-ccd-cards @mas-benchmark @Commerce @smoke @regression @milo
56 skipped
606 passed (7.9m)
|
Loading