-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: try to fix registrati0on tests
- Loading branch information
1 parent
bc5ad39
commit d645438
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { expect, test } from '@playwright/test'; | ||
import { randomEmail, randomString } from './utils'; | ||
|
||
test.describe.skip('Registration Flow', () => { | ||
test.describe('Registration Flow', () => { | ||
test('should navigate to registration insert password page', async ({ page }) => { | ||
await page.goto('/login?registration=true'); | ||
await page.locator('#ion-cb-0').click(); | ||
await page.locator('#conditions').click(); | ||
await page.fill('input[name="email"]', '[email protected]'); | ||
await page.getByRole('button', { name: 'Next' }).click(); | ||
await expect(page).toHaveURL('/en/login/insert-password'); | ||
|
@@ -13,7 +13,7 @@ test.describe.skip('Registration Flow', () => { | |
test('should show error if passwords do not match', async ({ page }) => { | ||
await page.goto('/login?registration=true'); | ||
await page.fill('input[name="email"]', '[email protected]'); | ||
await page.locator('#ion-cb-0').click(); | ||
await page.locator('#conditions').click(); | ||
await page.getByRole('button', { name: 'Next' }).click(); | ||
await page.fill('input[name="password"]', 'password123'); | ||
await page.fill('input[name="confirmPassword"]', 'password456'); | ||
|
@@ -25,7 +25,7 @@ test.describe.skip('Registration Flow', () => { | |
test('should navigate to questions page after successful registration', async ({ page }) => { | ||
await page.goto('/login?registration=true'); | ||
await page.fill('input[name="email"]', randomEmail()); | ||
await page.locator('#ion-cb-0').click(); | ||
await page.locator('#conditions').click(); | ||
await page.getByRole('button', { name: 'Next' }).click(); | ||
const password = randomString(8); | ||
await page.fill('input[name="password"]', password); | ||
|
@@ -39,7 +39,7 @@ test.describe.skip('Security Questions Page', () => { | |
test('should show error if less than three questions are answered', async ({ page }) => { | ||
await page.goto('/login?registration=true'); | ||
await page.fill('input[name="email"]', randomEmail()); | ||
await page.locator('#ion-cb-0').click(); | ||
await page.locator('#conditions').click(); | ||
await page.getByRole('button', { name: 'Next' }).click(); | ||
const password = randomString(8); | ||
await page.fill('input[name="password"]', password); | ||
|
@@ -50,10 +50,10 @@ test.describe.skip('Security Questions Page', () => { | |
await expect(errorMessage).toBeVisible(); | ||
}); | ||
|
||
test.skip('should complete security questions and generate keypair', async ({ page }) => { | ||
test('should complete security questions and generate keypair', async ({ page }) => { | ||
await page.goto('/login?registration=true'); | ||
await page.fill('input[name="email"]', randomEmail()); | ||
await page.locator('#ion-cb-0').click(); | ||
await page.locator('#conditions').click(); | ||
await page.getByRole('button', { name: 'Next' }).click(); | ||
const password = randomString(8); | ||
await page.fill('input[name="password"]', password); | ||
|