-
Notifications
You must be signed in to change notification settings - Fork 186
Description
ui-tests fail for the documents example.
Related: #282
Steps to reproduce
- Follow the README/quickstart for cloning the repo and installing. Instead of moving to hello-world, move to the documents dir and install/run that example (it should build and install successfully).
- cd into ui-tests
- jlpm install
- jlpm playwright install chromium
- jlpm playwright test
- Observe playwright test failure
Expected behavior
A passing test.
Context
Command Line Output:
Running 1 test using 1 worker
[WebServer] [I 2025-06-10 11:09:28.028 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
✘ 1 tests/documents.spec.ts:3:5 › should check if the cube is loaded (1.0m)
(node:752) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
[WebServer] [W 2025-06-10 11:09:32.223 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded?type=directory&content=1 (c0e756411fe74f5f81562f18045ec53f@::1) 0.76ms referer=None
[WebServer] [W 2025-06-10 11:09:32.223 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded?type=directory&content=1 (::1): No such file or directory: tests-documents-should-check-if-the-cube-is-loaded
[WebServer] [I 2025-06-10 11:09:32.227 ServerApp] Uploading file to /tests-documents-should-check-if-the-cube-is-loaded
[WebServer] [I 2025-06-10 11:09:33.209 LabApp] Build is up to date
[WebServer] [I 2025-06-10 11:09:34.752 ServerApp] Creating new file in /tests-documents-should-check-if-the-cube-is-loaded
[WebServer] [W 2025-06-10 11:10:31.644 ServerApp] delete /tests-documents-should-check-if-the-cube-is-loaded/untitled.txt
[WebServer] [W 2025-06-10 11:10:31.821 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded/untitled.txt?type=file&content=0 (c0e756411fe74f5f81562f18045ec53f@::1) 0.42ms referer=None
[WebServer] [W 2025-06-10 11:10:31.821 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded/untitled.txt?type=file&content=0 (::1): No such file or directory: tests-documents-should-check-if-the-cube-is-loaded/untitled.txt
[WebServer] [W 2025-06-10 11:10:31.822 ServerApp] delete /tests-documents-should-check-if-the-cube-is-loaded
[WebServer] [W 2025-06-10 11:10:31.826 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded?type=file&content=0 (c0e756411fe74f5f81562f18045ec53f@::1) 0.31ms referer=None
[WebServer] [W 2025-06-10 11:10:31.826 ServerApp] 404 GET /api/contents/tests-documents-should-check-if-the-cube-is-loaded?type=file&content=0 (::1): No such file or directory: tests-documents-should-check-if-the-cube-is-loaded
- tests/documents.spec.ts:3:5 › should check if the cube is loaded ──────────────────────────────
Test timeout of 60000ms exceeded.
Error: locator.fill: Test timeout of 60000ms exceeded.
Call log:
- waiting for getByRole('region', { name: 'notebook content' }).getByRole('textbox')
7 | .getByRole('region', { name: 'notebook content' })
8 | .getByRole('textbox')
> 9 | .fill('{\n\t"x": 177,\n\t"y": 301,\n\t"content": "Hello YJS!"\n}');
| ^
10 |
11 | // Press s with modifiers
12 | await page.keyboard.press('Control+s');
at /Users/egentry/workspace_ana/xtest/extension-examples/documents/ui-tests/tests/documents.spec.ts:9:6
attachment #1: video (video/webm) ──────────────────────────────────────────────────────────────
test-results/tests-documents-should-check-if-the-cube-is-loaded/video.webm
────────────────────────────────────────────────────────────────────────────────────────────────
Error Context: test-results/tests-documents-should-check-if-the-cube-is-loaded/error-context.md
1 failed
tests/documents.spec.ts:3:5 › should check if the cube is loaded ───────────────────────────────
Serving HTML report at http://localhost:9323. Press Ctrl+C to quit.