Split randomizer views and align NDS toolbox vocabulary
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
6b85e58765
commit
fef7735a1d
57 changed files with 4932 additions and 4815 deletions
|
|
@ -41,7 +41,7 @@ test("creates a toolbox and lazy-loads an added tool", async ({ page }) => {
|
|||
await createToolbox(page, "E2E Toolbox");
|
||||
|
||||
await expect(page.getByRole("heading", { name: "E2E Toolbox" })).toBeVisible();
|
||||
await expect(page.locator("[data-module-type='notepad']")).toBeVisible();
|
||||
await expect(page.locator("[data-module-type='memos']")).toBeVisible();
|
||||
await expect(page.locator("[data-module-type='links']")).toBeVisible();
|
||||
|
||||
await addTool(page, "Arbre d'objectifs");
|
||||
|
|
@ -102,6 +102,26 @@ test("creates a goal tree checklist with more than three visible lines", async (
|
|||
await expect(previewRows.filter({ hasText: "Objectif ligne 5" })).toBeVisible();
|
||||
});
|
||||
|
||||
test("loads randomizer tabs after module split", async ({ page }) => {
|
||||
await createToolbox(page, "Randomizer E2E Toolbox");
|
||||
await addTool(page, "Randomizer");
|
||||
|
||||
const randomizer = moduleByType(page, "randomizer");
|
||||
await expect(randomizer).toBeVisible();
|
||||
await expect(randomizer.getByRole("tab", { name: "Dé" })).toBeVisible();
|
||||
await expect(randomizer.getByRole("button", { name: "Lancer" })).toBeVisible();
|
||||
|
||||
await randomizer.getByRole("tab", { name: "Roue" }).click();
|
||||
await expect(randomizer.getByLabel("Liste de valeurs")).toBeVisible();
|
||||
await randomizer.getByLabel("Liste de valeurs").fill("Rouge\nBleu");
|
||||
await randomizer.getByRole("button", { name: "Ajouter" }).click();
|
||||
await expect(randomizer.locator(".randomizer-wheel-value-row .nds-input").first()).toHaveValue("Rouge");
|
||||
|
||||
await randomizer.getByRole("tab", { name: "Équipes" }).click();
|
||||
await expect(randomizer.getByLabel("Liste de noms")).toBeVisible();
|
||||
await expect(randomizer.getByRole("button", { name: "Créer les équipes" })).toBeVisible();
|
||||
});
|
||||
|
||||
test("creates a game-linked toolbox from the drawer", async ({ page }) => {
|
||||
await page.goto("/#/games/mhwilds");
|
||||
await expect(page.getByRole("heading", { name: /Monster Hunter.*Wilds/ })).toBeVisible();
|
||||
|
|
@ -115,7 +135,8 @@ test("creates a game-linked toolbox from the drawer", async ({ page }) => {
|
|||
await dialog.getByRole("button", { name: "Créer" }).click();
|
||||
|
||||
await expect(drawer.getByRole("heading", { name: /Monster Hunter.*Wilds/ })).toBeVisible();
|
||||
await expect(drawer.locator("[data-module-type='notepad']")).toBeVisible();
|
||||
await expect(drawer.locator("[data-module-type='memos']")).toBeVisible();
|
||||
await expect(drawer.locator("[data-module-type='links']")).toBeVisible();
|
||||
await expect(page.getByRole("button", { name: /Ouvrir la toolbox Monster Hunter.*Wilds/ })).toBeVisible();
|
||||
});
|
||||
|
||||
|
|
@ -217,6 +238,7 @@ test("creates edits summarizes and deletes equipment", async ({ page }) => {
|
|||
|
||||
test("edits rich notepad content and persists it", async ({ page }) => {
|
||||
await createToolbox(page, "Notepad E2E Toolbox");
|
||||
await addTool(page, "Bloc Note");
|
||||
|
||||
const notepad = moduleByType(page, "notepad");
|
||||
await expect(notepad).toBeVisible();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue