* Get login working * Update website * Fixes * Save * svae * Save * Change translation key * Various fixes after testing * Update website * Add TS Tests * Upate website * Fix tests * Fix linting and other issues * Fix linting and other issues * Fix bugs found during recording of demos * Revert default coookie change * Self review fixe * Link fixes * Removed inline styles, cleanup * Various fixes * Added new envs to e2e Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com>
24 lines
844 B
TypeScript
24 lines
844 B
TypeScript
import { expect } from "@playwright/test";
|
|
|
|
import { test } from "./lib/fixtures";
|
|
|
|
test.afterEach(({ users }) => users.deleteAll());
|
|
|
|
test.describe("Change Password Test", () => {
|
|
test("change password", async ({ page, users }) => {
|
|
const pro = await users.create();
|
|
await pro.login();
|
|
// Go to http://localhost:3000/settings/security
|
|
await page.goto("/settings/security");
|
|
if (!pro.username) throw Error("Test user doesn't have a username");
|
|
|
|
// Fill form
|
|
await page.waitForSelector('[name="current_password"]');
|
|
await page.fill('[name="current_password"]', pro.username);
|
|
await page.fill('[name="new_password"]', `${pro.username}1111`);
|
|
await page.press('[name="new_password"]', "Enter");
|
|
|
|
await expect(page.locator(`text=Your password has been successfully changed.`)).toBeVisible();
|
|
});
|
|
});
|