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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user