Add toolbox spaces and recover from stale asset bundles
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
This commit is contained in:
parent
0959c6740b
commit
0acf5ecf21
30 changed files with 1252 additions and 179 deletions
|
|
@ -84,9 +84,16 @@ test("invalid calculator imports preserve existing results and a corrected impor
|
|||
await expect(dialog.getByRole("alert")).toHaveCount(0);
|
||||
const text = "@scrollResults: true\nOre: 10 | formula=10\n Bars: 20 | formula=base*2";
|
||||
await dialog.getByRole("textbox").fill(text);
|
||||
await page.evaluate(() => {
|
||||
globalThis.__sokkogModuleWriteComplete = false;
|
||||
globalThis.addEventListener("sokkog:auto-backup-data-changed", () => {
|
||||
globalThis.__sokkogModuleWriteComplete = true;
|
||||
}, { once: true });
|
||||
});
|
||||
await dialog.getByRole("button", { name: "Importer le texte", exact: true }).click();
|
||||
await expect(dialog).toBeHidden();
|
||||
await expect(calc.locator(".calculator-entry em")).toHaveText(["Ore", "Bars"]);
|
||||
await expect.poll(() => page.evaluate(() => globalThis.__sokkogModuleWriteComplete)).toBe(true);
|
||||
await page.reload();
|
||||
await expect(calc.locator(".calculator-entry em")).toHaveText(["Ore", "Bars"]);
|
||||
await expect(calc.getByRole("button", { name: "Liste scrollable", exact: true })).toHaveAttribute("aria-pressed", "true");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue