fix eslint test #30
Annotations
5 errors, 2 warnings, and 1 notice
tests/embeds.spec.js#L8
1) tests/embeds.spec.js:3:5 › same-domain embed is loading ───────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toContainText(expected)
Expected string: "Want to help"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('replay-web-page').frameLocator('iframe').locator('replay-app-main wr-coll wr-coll-replay').frameLocator('iframe').frameLocator('iframe#twitter-widget-0').locator('body')
6 | const res = page.locator("replay-web-page").frameLocator("iframe").locator("replay-app-main wr-coll wr-coll-replay").frameLocator("iframe").frameLocator("iframe#twitter-widget-0").locator("body");
7 |
> 8 | await expect(res).toContainText("Want to help");
| ^
9 | });
10 |
11 |
at /home/runner/work/replayweb.page/replayweb.page/tests/embeds.spec.js:8:21
|
tests/embeds.spec.js#L17
2) tests/embeds.spec.js:12:5 › cross-domain embed is loading ─────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toContainText(expected)
Expected string: "Want to help"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('replay-web-page').frameLocator('iframe').locator('replay-app-main wr-coll wr-coll-replay').frameLocator('iframe').frameLocator('iframe#twitter-widget-0').locator('body')
15 | const res = page.locator("replay-web-page").frameLocator("iframe").locator("replay-app-main wr-coll wr-coll-replay").frameLocator("iframe").frameLocator("iframe#twitter-widget-0").locator("body");
16 |
> 17 | await expect(res).toContainText("Want to help");
| ^
18 | });
19 |
20 |
at /home/runner/work/replayweb.page/replayweb.page/tests/embeds.spec.js:17:21
|
tests/embeds.spec.js#L29
3) tests/embeds.spec.js:21:5 › sandbox + cross-domain embed is loading ───────────────────────────
Error: Timed out 5000ms waiting for expect(received).toContainText(expected)
Expected string: "Want to help"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for frameLocator('iframe').locator('replay-web-page').frameLocator('iframe').locator('replay-app-main wr-coll wr-coll-replay').frameLocator('iframe').frameLocator('iframe#twitter-widget-0').locator('body')
27 | const res = page.frameLocator("iframe").locator("replay-web-page").frameLocator("iframe").locator("replay-app-main wr-coll wr-coll-replay").frameLocator("iframe").frameLocator("iframe#twitter-widget-0").locator("body");
28 |
> 29 | await expect(res).toContainText("Want to help");
| ^
30 | });
31 |
32 |
at /home/runner/work/replayweb.page/replayweb.page/tests/embeds.spec.js:29:21
|
tests/embeds.spec.js#L39
4) tests/embeds.spec.js:33:5 › require subdomain iframe ──────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toContainText(expected)
Expected string: "Sorry, due to security settings, this ReplayWeb.page embed only be viewed within a subdomain iframe."
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('replay-web-page')
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
- locator resolved to <replay-web-page sandbox="" url="page:0" embed="replay" requiresu…></replay-web-page>
- unexpected value ""
37 | const res = page.locator("replay-web-page");
38 |
> 39 | await expect(res).toContainText("Sorry, due to security settings, this ReplayWeb.page embed only be viewed within a subdomain iframe.");
| ^
40 | });
41 |
at /home/runner/work/replayweb.page/replayweb.page/tests/embeds.spec.js:39:21
|
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
tests/embeds.spec.js#L1
tests/embeds.spec.js took 20.5s
|
4 failed
tests/embeds.spec.js:3:5 › same-domain embed is loading ────────────────────────────────────────
tests/embeds.spec.js:12:5 › cross-domain embed is loading ──────────────────────────────────────
tests/embeds.spec.js:21:5 › sandbox + cross-domain embed is loading ────────────────────────────
tests/embeds.spec.js:33:5 › require subdomain iframe ───────────────────────────────────────────
|
The logs for this run have expired and are no longer available.
Loading