diff --git a/tests/e2e/toolbar.spec.mjs b/tests/e2e/toolbar.spec.mjs index 77e590d..1b0d82a 100644 --- a/tests/e2e/toolbar.spec.mjs +++ b/tests/e2e/toolbar.spec.mjs @@ -153,6 +153,7 @@ test.describe("Restablecer, deshacer y rehacer", () => { await anadirTipo(app, "text"); await campo(app, "mensajes.0.texto").fill("Mi cambio"); const mio = await estado(app); + await app.locator("#btn-mas").click(); await app.locator("#btn-reset").click(); const dlg = app.locator("#dlg-confirmar"); await expect(dlg).toBeVisible(); @@ -168,6 +169,7 @@ test.describe("Restablecer, deshacer y rehacer", () => { }); test("«Exportar antes» del diálogo descarga la demo actual", async ({ app }) => { + await app.locator("#btn-mas").click(); await app.locator("#btn-reset").click(); const { nombre } = await exportar(app, () => app.locator("#dlg-confirmar").getByRole("button", { name: "Exportar antes" }).click()); expect(nombre).toBe("cafe-aurora.json"); @@ -177,6 +179,7 @@ test.describe("Restablecer, deshacer y rehacer", () => { test("sin mensajes restablece sin preguntar", async ({ app }) => { await vaciar(app); + await app.locator("#btn-mas").click(); await app.locator("#btn-reset").click(); await expect(app.locator("#dlg-confirmar")).toHaveCount(0); await expect(tarjetas(app)).toHaveCount(14);