Test test fails #447
Annotations
10 errors and 1 notice
Test:
galata/test/jupyterlab/notebook-search.test.ts#L208
1) [jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('[placeholder="Find"]')
Expected string: "jupyter"
Received string: "upyter"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('[placeholder="Find"]')
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
206 | await page.locator('[placeholder="Find"]').pressSequentially('jupyter');
207 |
> 208 | await expect(page.locator('[placeholder="Find"]')).toHaveValue('jupyter');
| ^
209 | });
210 | test('Close with Escape', async ({ page }) => {
211 | // Open search box
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-search.test.ts:208:56
|
Test:
galata/test/jupyterlab/notebook-search.test.ts#L208
1) [jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('[placeholder="Find"]')
Expected string: "jupyter"
Received string: "upyter"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('[placeholder="Find"]')
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
- locator resolved to <textarea rows="1" tabindex="0" title="Find" placeholder="Find" class="jp-DocumentSearch-input">jupyter</textarea>
- unexpected value "upyter"
206 | await page.locator('[placeholder="Find"]').pressSequentially('jupyter');
207 |
> 208 | await expect(page.locator('[placeholder="Find"]')).toHaveValue('jupyter');
| ^
209 | });
210 | test('Close with Escape', async ({ page }) => {
211 | // Open search box
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-search.test.ts:208:56
|
Test:
galata/test/jupyterlab/debugger.test.ts#L1
2) [jupyterlab] › test/jupyterlab/debugger.test.ts:125:7 › Debugger Tests › Start debug session (Script)
Test timeout of 60000ms exceeded.
|
Test:
galata/src/helpers/debuggerpanel.ts#L30
2) [jupyterlab] › test/jupyterlab/debugger.test.ts:125:7 › Debugger Tests › Start debug session (Script)
Error: locator.getAttribute: Test timeout of 60000ms exceeded.
Call log:
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-a23e2819-2fc8-47c0-ba2a-71a9570c3ec9"]').locator('.jp-Toolbar').first().locator('.jp-DebuggerBugButton')
at src/helpers/debuggerpanel.ts:30
28 | const button = toolbar?.locator('.jp-DebuggerBugButton');
29 | if (((await button?.count()) ?? 0) > 0) {
> 30 | return (await button!.getAttribute('aria-pressed')) === 'true';
| ^
31 | }
32 | return false;
33 | }
at DebuggerHelper.isOn (/home/runner/work/jupyterlab/jupyterlab/galata/src/helpers/debuggerpanel.ts:30:29)
at /home/runner/work/jupyterlab/jupyterlab/galata/src/helpers/debuggerpanel.ts:55:40
at Timeout.check (/home/runner/work/jupyterlab/jupyterlab/galata/src/utils.ts:183:11)
|
Test:
galata/test/jupyterlab/html-viewer.test.ts#L30
3) [jupyterlab] › test/jupyterlab/html-viewer.test.ts:26:7 › HTML Viewer › should notify links are blocked for untrusted file
TypeError: Cannot read properties of null (reading 'getByRole')
28 | }) => {
29 | const frame = page.frame({ url: url => url.protocol == 'blob:' });
> 30 | await frame!.getByRole('link', { name: 'GitHub' }).hover();
| ^
31 |
32 | const warningCount = await frame!.evaluate(() => {
33 | let count = 0;
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/html-viewer.test.ts:30:18
|
Test:
galata/test/jupyterlab/notebook-max-outputs.test.ts#L52
4) [jupyterlab] › test/jupyterlab/notebook-max-outputs.test.ts:37:5 › Don't limit cell outputs if input is requested
Error: expect(received).toBeGreaterThan(expected)
Expected: > 5
Received: 5
50 | await page.menu.clickMenuItem('Run>Run All Cells');
51 | await page.locator('.jp-Stdin >> text=Your age:').waitFor();
> 52 | expect(await page.locator('.jp-RenderedMarkdown').count()).toBeGreaterThan(
| ^
53 | MAX_OUTPUTS
54 | );
55 |
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-max-outputs.test.ts:52:62
|
Test:
galata/src/galata.ts#L891
5) [jupyterlab] › test/jupyterlab/notebook-replace.test.ts:116:11 › Notebook Search and Replace › Replace step-by-step across code and raw cell boundaries
Error: "apiRequestContext.fetch: Target page, context or browser has been closed
Call log:
- → GET http://localhost:8888/api/terminals?1733176725264
- user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.6723.31 Safari/537.36
- accept: */*
- accept-encoding: gzip,deflate,br
- accept-language: en-US
- content-type: application/json
- cookie: username-localhost-8888=2|1:0|10:1733176713|23:username-localhost-8888|188:eyJ1c2VybmFtZSI6ICIyMTc3OTllMDhmZjU0YTEwOWYzOWFiMzNjY2RkNThjOCIsICJuYW1lIjogIkFub255bW91cyBLYWxlIiwgImRpc3BsYXlfbmFtZSI6ICJBbm9ueW1vdXMgS2FsZSIsICJpbml0aWFscyI6ICJBSyIsICJjb2xvciI6IG51bGx9|63335ccc1a2d07250b873ae241d76312ef9e347ee5a23c5293bbc418fd1f5caf; _xsrf=2|43c57663|1fed661ece61d951f24ecc216221bfb9|1733176713
- referer: http://localhost:8888/lab/tree/test-jupyterlab-notebook-r-c0a16-ode-and-raw-cell-boundaries-jupyterlab/Untitled.ipynb
- x-xsrftoken: 2|43c57663|1fed661ece61d951f24ecc216221bfb9|1733176713
- sec-ch-ua: "Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
- sec-ch-ua-mobile: ?0
- sec-ch-ua-platform: "Linux"
" while running route callback.
Consider awaiting `await page.unrouteAll({ behavior: 'ignoreErrors' })`
before the end of the test to ignore remaining routes in flight.
at src/galata.ts:891
889 | } else {
890 | // Proxy the GET request
> 891 | const response = await ctxt.request.fetch(request);
| ^
892 | if (!response.ok()) {
893 | if (!page.isClosed() && !isClosed) {
894 | return route.fulfill({
at /home/runner/work/jupyterlab/jupyterlab/galata/src/galata.ts:891:51
|
Test:
galata/test/jupyterlab/notebook-scroll-no-windowing.test.ts#L203
6) [jupyterlab] › test/jupyterlab/notebook-scroll-no-windowing.test.ts:181:7 › Notebook scroll on execution (no windowing) › should scroll when advancing if top is only marginally visible
Error: Timed out 5000ms waiting for expect(locator).toBeInViewport()
Locator: getByRole('main').locator('[role="tabpanel"][id="id-3a11ce57-6aa0-425a-a725-e0062b5d712a"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="2"]')
Expected: in viewport
Received: outside viewport
Call log:
- expect.toBeInViewport with timeout 5000ms
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-3a11ce57-6aa0-425a-a725-e0062b5d712a"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="2"]')
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
- locator resolved to <div tabindex="0" data-windowed-list-index="2" aria-label="Code Cell Content with Output" class="lm-Widget jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-selected jp-mod-active">…</div>
- unexpected value "viewport ratio 0.009747706353664398"
201 |
202 | // After running the second cell, the third cell should be revealed, in at least 10%
> 203 | await expect(thirdCell!).toBeInViewport({ ratio: 0.1 });
| ^
204 |
205 | // The third cell should now occupy about half of the notebook viewport
206 | expect(await notebookViewportRatio(notebook!, thirdCell!)).toBeGreaterThan(
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/notebook-scroll-no-windowing.test.ts:203:30
|
Test:
galata/test/jupyterlab/windowed-notebook.test.ts#L106
7) [jupyterlab] › test/jupyterlab/windowed-notebook.test.ts:84:5 › should not update height when hiding
Error: expect(received).toEqual(expected) // deep equality
Expected: 2507
Received: 4240
104 | const innerHeight = await getInnerHeight(notebook!);
105 |
> 106 | expect(innerHeight).toEqual(initialHeight);
| ^
107 | });
108 |
109 | test('should hide first inactive code cell when scrolling down', async ({
at /home/runner/work/jupyterlab/jupyterlab/galata/test/jupyterlab/windowed-notebook.test.ts:106:23
|
Test:
galata/src/galata.ts#L961
8) [jupyterlab] › test/jupyterlab/windowed-notebook.test.ts:541:5 › should rendered injected JavaScript snippets of out-of-viewport cells
Error: "apiRequestContext.fetch: Target page, context or browser has been closed
Call log:
- → POST http://localhost:8888/api/sessions?1733177689959
- user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.6723.31 Safari/537.36
- accept: */*
- accept-encoding: gzip,deflate,br
- accept-language: en-US
- content-type: text/plain;charset=UTF-8
- cookie: username-localhost-8888="2|1:0|10:1733177686|23:username-localhost-8888|200:eyJ1c2VybmFtZSI6ICJmMDlmZDliZjZkZTA0NjQ5ODc5OTI3Nzc0ZGVhNWUwZSIsICJuYW1lIjogIkFub255bW91cyBBZHJhc3RlYSIsICJkaXNwbGF5X25hbWUiOiAiQW5vbnltb3VzIEFkcmFzdGVhIiwgImluaXRpYWxzIjogIkFBIiwgImNvbG9yIjogbnVsbH0=|d56d6f92ef2930bb9bfd3edf621890b34a6d12116883922737db04d1165d4bed"; _xsrf=2|b8d77c2a|1237a7105604f358096af01957c8fca2|1733177686
- origin: http://localhost:8888
- referer: http://localhost:8888/lab/tree/test-jupyterlab-windowed-n-a4ec9-ts-of-out-of-viewport-cells-jupyterlab/css_js_injection.ipynb
- x-xsrftoken: 2|b8d77c2a|1237a7105604f358096af01957c8fca2|1733177686
- sec-ch-ua: "Chromium";v="130", "HeadlessChrome";v="130", "Not?A_Brand";v="99"
- sec-ch-ua-mobile: ?0
- sec-ch-ua-platform: "Linux"
- content-length: 197
- ← 201 Created
- server: TornadoServer/6.4.2
- content-type: application/json
- date: Mon, 02 Dec 2024 22:14:49 GMT
- x-content-type-options: nosniff
- content-security-policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'
- location: /api/sessions/6acec25e-3921-4880-be94-6fb1b1c01864
- content-length: 562
" while running route callback.
Consider awaiting `await page.unrouteAll({ behavior: 'ignoreErrors' })`
before the end of the test to ignore remaining routes in flight.
at src/galata.ts:961
959 | case 'POST': {
960 | // Proxy the POST request
> 961 | const response = await ctxt.request.fetch(request);
| ^
962 | if (!response.ok()) {
963 | if (!page.isClosed() && !isClosed) {
964 | return route.fulfill({
at /home/runner/work/jupyterlab/jupyterlab/galata/src/galata.ts:961:49
|
Test
1 failed
[jupyterlab] › test/jupyterlab/notebook-search.test.ts:201:7 › Notebook Search › Consecutive searches in the search box
7 flaky
[jupyterlab] › test/jupyterlab/debugger.test.ts:125:7 › Debugger Tests › Start debug session (Script)
[jupyterlab] › test/jupyterlab/html-viewer.test.ts:26:7 › HTML Viewer › should notify links are blocked for untrusted file
[jupyterlab] › test/jupyterlab/notebook-max-outputs.test.ts:37:5 › Don't limit cell outputs if input is requested
[jupyterlab] › test/jupyterlab/notebook-replace.test.ts:116:11 › Notebook Search and Replace › Replace step-by-step across code and raw cell boundaries
[jupyterlab] › test/jupyterlab/notebook-scroll-no-windowing.test.ts:181:7 › Notebook scroll on execution (no windowing) › should scroll when advancing if top is only marginally visible
[jupyterlab] › test/jupyterlab/windowed-notebook.test.ts:84:5 › should not update height when hiding
[jupyterlab] › test/jupyterlab/windowed-notebook.test.ts:541:5 › should rendered injected JavaScript snippets of out-of-viewport cells
485 passed (31.3m)
|
Loading