From a645056c0047250cf9e1b6cc93a1bb8778823aaa Mon Sep 17 00:00:00 2001 From: urieljareth Date: Sun, 27 Sep 2026 21:35:02 -0600 Subject: [PATCH] =?UTF-8?q?Tests:=20abrir=20el=20men=C3=BA=20=C2=AB?= =?UTF-8?q?=E2=8B=AF=C2=BB=20antes=20de=20pulsar=20Restablecer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- tests/e2e/toolbar.spec.mjs | 3 +++ 1 file changed, 3 insertions(+) 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);