Skip to content

Commit 586461b

Browse files
committed
5315: test why it does not work in actions but does locally
1 parent 203b7cd commit 586461b

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

assets/tests/admin/admin-form.spec.js

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -276,35 +276,36 @@ test.describe("Admin slide values depending on other values", () => {
276276
});
277277

278278
test.beforeEach(async ({ page }) => {
279-
await page.goto("/admin/slides/list");
279+
loginTest(page);
280280

281-
await page.route("**/token", async (route) => {
282-
await route.fulfill({ json: tokenAdminJson });
283-
});
281+
// await page.route("**/token", async (route) => {
282+
// await route.fulfill({ json: tokenAdminJson });
283+
// });
284284

285285
await page.route("**/slides*", async (route) => {
286286
await route.fulfill({ json: slidesJson1 });
287287
});
288+
await page.goto("/admin/slides/list");
288289

289-
await fulfillDataRoute(page, "**/templates*", onlyImageTextListJson);
290+
// await fulfillDataRoute(page, "**/templates*", onlyImageTextListJson);
290291

291-
await fulfillDataRoute(
292-
page,
293-
"**/templates/01FP2SNGFN0BZQH03KCBXHKYHG",
294-
imageTextTemplate,
295-
);
292+
// await fulfillDataRoute(
293+
// page,
294+
// "**/templates/01FP2SNGFN0BZQH03KCBXHKYHG",
295+
// imageTextTemplate,
296+
// );
296297

297-
await fulfillDataRoute(
298-
page,
299-
"**/v2/slides/00015Y0ZVC18N407JD07SM0YCF",
300-
slideJson,
301-
);
298+
// await fulfillDataRoute(
299+
// page,
300+
// "**/v2/slides/00015Y0ZVC18N407JD07SM0YCF",
301+
// slideJson,
302+
// );
302303

303-
await fulfillEmptyRoutes(page, ["**/playlists*", "**/themes*"]);
304+
// await fulfillEmptyRoutes(page, ["**/playlists*", "**/themes*"]);
304305

305-
await page.getByLabel("Email").fill("admin@example.com");
306-
await page.getByLabel("Kodeord").fill("password");
307-
await page.locator("#login").click();
306+
// await page.getByLabel("Email").fill("admin@example.com");
307+
// await page.getByLabel("Kodeord").fill("password");
308+
// await page.locator("#login").click();
308309

309310
await Promise.all([
310311
page.waitForURL("**/slide/edit/*"),

0 commit comments

Comments
 (0)