Skip to content

Commit

Permalink
tests: try to fix registrati0on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed Sep 3, 2024
1 parent bc5ad39 commit ef5eb2b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/register.spec.ts
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({ position: { x: 0, y: 10 } });
await page.fill('input[name="email"]', '[email protected]');
await page.getByRole('button', { name: 'Next' }).click();
await expect(page).toHaveURL('/en/login/insert-password');
Expand All @@ -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({ position: { x: 0, y: 10 } });
await page.getByRole('button', { name: 'Next' }).click();
await page.fill('input[name="password"]', 'password123');
await page.fill('input[name="confirmPassword"]', 'password456');
Expand All @@ -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({ position: { x: 0, y: 10 } });
await page.getByRole('button', { name: 'Next' }).click();
const password = randomString(8);
await page.fill('input[name="password"]', password);
Expand All @@ -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({ position: { x: 0, y: 10 } });
await page.getByRole('button', { name: 'Next' }).click();
const password = randomString(8);
await page.fill('input[name="password"]', password);
Expand All @@ -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({ position: { x: 0, y: 10 } });
await page.getByRole('button', { name: 'Next' }).click();
const password = randomString(8);
await page.fill('input[name="password"]', password);
Expand Down

0 comments on commit ef5eb2b

Please sign in to comment.