feat: add password reset feature test (issue #10)

- Add password-reset.feature with 4 scenarios
- Add step definition for password reset page assertion
- Tests access page, valid email request, invalid email, and empty field
This commit is contained in:
2026-04-25 21:14:04 -07:00
parent 22f7b79a3d
commit 54aa22d1a3
2 changed files with 39 additions and 0 deletions
@@ -223,6 +223,13 @@ Then('I should be on the home page', async function () {
expect(currentUrl).toContain('/');
});
Then('I should be on the password reset page', async function () {
const currentUrl = world.page.url();
console.log(`🌍 Checking current URL: ${currentUrl}`);
expect(currentUrl).toContain('/auth/password-reset');
});
Then('I should be redirected to {string}', async function (path: string) {
await world.page.waitForLoadState('networkidle');
const currentUrl = world.page.url();