Skip to content

Commit

Permalink
Fix usage of demo account in dev and ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Aug 29, 2022
1 parent 7194d07 commit 2b26b5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/src/tests/e2e/constants.ts
@@ -1,5 +1,5 @@
export const TEST_EMAIL = "catalogue.demo@yopmail.com";
export const TEST_PASSWORD = "demo";
export const TEST_PASSWORD = "password1234";
export const ADMIN_EMAIL = "admin@catalogue.data.gouv.fr";
export const STATE_AUTHENTICATED = "./src/tests/e2e/storage/authenticated.json";
export const STATE_AUTHENTICATED_ADMIN =
Expand Down
6 changes: 3 additions & 3 deletions client/src/tests/e2e/login.spec.ts
@@ -1,5 +1,5 @@
import { expect } from "@playwright/test";
import { TEST_EMAIL } from "./constants";
import { TEST_EMAIL, TEST_PASSWORD } from "./constants";
import { test } from "./fixtures";

test.describe("Login", () => {
Expand All @@ -21,8 +21,8 @@ test.describe("Login", () => {
expect(await email.inputValue()).toBe(TEST_EMAIL);

const password = page.locator("form [name=password]");
await password.fill("demo");
expect(await password.inputValue()).toBe("demo");
await password.fill(TEST_PASSWORD);
expect(await password.inputValue()).toBe(TEST_PASSWORD);

const button = page.locator("button[type='submit']");
const [request, response] = await Promise.all([
Expand Down

0 comments on commit 2b26b5f

Please sign in to comment.