Skip to content

test: cover creating a notebook from the tab menu - #628

Merged
glasstiger merged 3 commits into
mainfrom
test/new-notebook-menu-coverage
Nov 10, 2026
Merged

glasstiger merged 3 commits into
mainfrom
test/new-notebook-menu-coverage

Conversation

@emrberk

@emrberk emrberk commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

#621 seeded notebooks straight into IndexedDB, so no test created one from the tab bar's "+" → "New notebook" item any more. That item, and the default notebook it opens (createDefaultNotebookViewState()), had no coverage. See the #621 review, issue #1.

  • Add one E2E case in the editor tabs suite. It creates a notebook from the plus menu, checks that it opens as the active tab and survives a reload, and runs a query in its single empty cell.
  • Fix the flaky grid case "delays a clipped cell preview and clears it when results are replaced". On a slow runner, runLine returns while the grid still sizes the 500-character column to its full content width (about 3,900px). realHover then aims at the cell's centre, which is off-screen, so no hover reaches the cell and the preview timer never starts. The case now waits until the cell fits the grid viewport before installing the fake clock.
  • Keep E2E failure screenshots. Each cypress run cleared test/e2e/screenshots, so the final context-path run deleted the console suite's screenshots before the upload step. The E2E job now sets CYPRESS_TRASH_ASSETS_BEFORE_RUNS=false.

Validation:

  • New notebook case: passed 4 times locally with retries disabled, about 2s each. With "New notebook" changed to open an editor tab, it fails: [data-hook="notebook-toolbar"] is never found.
  • Grid case: with 6× CPU throttling and retries disabled, it failed in about half of the runs before the fix (the cell was 3,987px wide when hovered). After the fix, 8 runs in a row passed. It also passed once without throttling.
  • Screenshots: with the variable set, a file in test/e2e/screenshots survived a cypress run; without it, the file was deleted.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Web Console deploy preview

Preview Commit Logs
https://pr-628--web-console.netlify.app a1c8411 build log

@glasstiger
glasstiger merged commit b641592 into main Nov 10, 2026
7 checks passed
@glasstiger
glasstiger deleted the test/new-notebook-menu-coverage branch November 10, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants