Skip to content

Commit

Permalink
update register test
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-azvierieva committed Sep 4, 2024
1 parent 30fbf5d commit be21cf6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/tests/ui/desktop/e2e/register.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { test } from '~/tests/fixtures';

// Prefix is added to ensure that the password requirements are met
const password = faker.internet.password({ pattern: /[a-zA-Z0-9]/, prefix: '1At', length: 10 });
const firstName = faker.person.firstName();
const lastName = faker.person.lastName();

test('Account register', async ({ page }) => {
await page.goto('/login');
Expand All @@ -29,5 +27,5 @@ test('Account register', async ({ page }) => {
await page.getByRole('button', { name: 'Create account' }).click();

await expect(page).toHaveURL('/account/');
await expect(page.getByRole('heading', { name: 'My Account' })).toBeVisible();
await expect(page.getByText('Your account has been successfully created')).toBeVisible();
});

0 comments on commit be21cf6

Please sign in to comment.