Repository navigation
Migrate multiple Selenium electron tests to Playwright - #17946
Conversation
ReviewA review of the migrated specs flagged five Low-severity items:
Assessment
Actions Taken
|
🍎 macOS Desktop E2E · ARM64❌ 5 test(s) failed
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
ReviewTwo Low findings on
Assessment
Actions Taken
|
ReviewTwo Low findings on the Global Options accessibility migration:
Assessment
Actions Taken
|
| test.beforeAll(async ({ rstudioPage: page }) => { | ||
| consoleActions = new ConsolePaneActions(page); | ||
| // plotly pulls a large dependency tree; allow plenty of install time. | ||
| missingPackages = await consoleActions.ensurePackages(['plotly'], 600_000); |
There was a problem hiding this comment.
playwright.config.ts sets timeout: 300000, and beforeAll hooks inherit that limit -- so this 600s install budget can't actually be spent. On the cold-runner case it's meant for, the hook times out at 300s with an opaque failure instead of reaching the clean skip path.
package_installation.test.ts handles the same situation with test.setTimeout(600000); calling that at the top of this beforeAll would extend the hook deadline to match the budget.
Migrates multiple Selenium electron tests into the Playwright suite:
panes/editor/rnotebook.test.ts(1): create an R Notebook and preview it to the Viewer pane, both before and after running its chunkpanes/editor/markdown.test.ts(2): create a Markdown document, and preview a.mdto HTML in the Viewer panepanes/viewer/htmlwidgets.test.ts(1): send a plotly htmlwidget to the Viewer pane and verify it renderspanes/misc/find_in_files_replace.test.ts(2 added): the Find in Files search-options dialog, and a multi-file search with the search/replace toolbar toggle (folded in alongside the existing Replace All test)panes/misc/command-palette.test.ts(2): open, filter, and run a command from the palette, and toggle the native pipe operator pref inlinepreferences/global_prefs_accessibility.test.ts(6): keyboard accessibility of the Global Options dialog -- initial focus, Arrow-key section navigation, and Tab/Shift+Tab focus wrapping (including wrap-to-current-section after changing panes)Supporting
pages/source_pane.page.tschanges:chunkImageandpreviewBtnwere stale Selenium-era locators that no passing test had exercised. Both are rescoped to the visible tabpanel (andpreviewBtnnow excludes the aria-hidden JS/SQL preview buttons) so they resolve correctly.Also updates
MIGRATION_FROM_SELENIUM_PROGRESS.mdto mark Find in Files, Command Palette, and Global Options accessibility Complete (Create_File_Types remains Not started).