Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeYue committed Sep 18, 2024
1 parent 4ef6cc7 commit 4618b4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/e2e/tests/account/forgot-password.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withFixtures } from '../../helpers';
import { withFixtures, defaultGanacheOptions } from '../../helpers';
import FixtureBuilder from '../../fixture-builder';
import { E2E_SRP } from '../../default-fixture';
import { Driver } from '../../webdriver/driver';
Expand All @@ -14,6 +14,7 @@ describe('Forgot password', function () {
await withFixtures(
{
fixtures: new FixtureBuilder().build(),
ganacheOptions: defaultGanacheOptions,
title: this.test?.fullTitle(),
},
async ({ driver }: { driver: Driver }) => {
Expand All @@ -23,11 +24,12 @@ describe('Forgot password', function () {
const homePage = new HomePage(driver);
await homePage.headerNavbar.lockMetaMask();

// Click forgot password button to go to reset password page
// Click forgot password button and reset password
await new LoginPage(driver).gotoResetPasswordPage();

// Reset password with a new password
await new ResetPasswordPage(driver).resetPassword(E2E_SRP, newPassword);
const resetPasswordPage = new ResetPasswordPage(driver);
await resetPasswordPage.check_pageIsLoaded();
await resetPasswordPage.resetPassword(E2E_SRP, newPassword);

// Lock wallet again
await homePage.headerNavbar.lockMetaMask();
Expand Down

0 comments on commit 4618b4a

Please sign in to comment.