Find the Terminal plugin the same way as the runner, and wait for formula results
pluginMocks.mjs now finds the compiled Terminal plugin through RUNESTONE_PLUGIN_REPOS, like the "@requires plugin:terminal" check. Before, it used a path relative to the file, which fails in a worktree. tables/formulas waits for the cycle results after Ctrl+Enter. Under load, the check ran before the table rendered again.
This commit is contained in:
@@ -100,6 +100,8 @@ await runSmoke("tables/formulas", async ({ page }) => {
|
||||
await edit.fill('=D3');
|
||||
// Enter would start editing D4 below (src/lib/editor/tableControls.ts:283), so leave the table to render both results.
|
||||
await page.keyboard.press('Control+Enter');
|
||||
// The table renders again after it loses focus. Wait for that before the check.
|
||||
for (const [r, c] of [[2, 3], [3, 3]]) await result(r, c).filter({ hasText: /^#CYCLE!$/ }).waitFor();
|
||||
assert.equal(await result(2, 3).innerText(), '#CYCLE!');
|
||||
assert.equal(await result(3, 3).innerText(), '#CYCLE!');
|
||||
await cell(2, 3).click();
|
||||
|
||||
Reference in New Issue
Block a user