From e586a94992bcce381e28ffcc193ee563f86ef658 Mon Sep 17 00:00:00 2001 From: John Paul Larkin <107807466+John-Paul-Larkin@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:33:26 +0100 Subject: [PATCH] Template/e2e/testing (#1167) * add settings template * add my-posts template --- e2e/my-posts.spec.ts | 14 ++++++++++++++ e2e/settings.spec.ts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 e2e/my-posts.spec.ts create mode 100644 e2e/settings.spec.ts diff --git a/e2e/my-posts.spec.ts b/e2e/my-posts.spec.ts new file mode 100644 index 00000000..ad9d5398 --- /dev/null +++ b/e2e/my-posts.spec.ts @@ -0,0 +1,14 @@ +import test from "@playwright/test"; + +test.describe("Unauthenticated my-posts Page", () => { + test.beforeEach(async ({ page }) => { + await page.context().clearCookies(); + }); + // + // Replace with tests for unauthenticated users +}); + +test.describe("Authenticated my-posts Page", () => { + // + // Replace with tests for authenticated users +}); diff --git a/e2e/settings.spec.ts b/e2e/settings.spec.ts new file mode 100644 index 00000000..1aa93631 --- /dev/null +++ b/e2e/settings.spec.ts @@ -0,0 +1,14 @@ +import test from "@playwright/test"; + +test.describe("Unauthenticated setttings Page", () => { + test.beforeEach(async ({ page }) => { + await page.context().clearCookies(); + }); + // + // Replace with tests for unauthenticated users +}); + +test.describe("Authenticated settings Page", () => { + // + // Replace with tests for authenticated users +});