Skip to content

Commit

Permalink
Template/e2e/testing (#1167)
Browse files Browse the repository at this point in the history
* add settings template

* add my-posts template
  • Loading branch information
John-Paul-Larkin authored Oct 22, 2024
1 parent 1698336 commit e586a94
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions e2e/my-posts.spec.ts
Original file line number Diff line number Diff line change
@@ -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
});
14 changes: 14 additions & 0 deletions e2e/settings.spec.ts
Original file line number Diff line number Diff line change
@@ -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
});

0 comments on commit e586a94

Please sign in to comment.