chore: implemented feedback

This commit is contained in:
pit
2023-09-27 09:51:30 +01:00
parent 5c81105e71
commit 63c2c4acf4
10 changed files with 60 additions and 120 deletions

View File

@ -10,7 +10,7 @@ setup('authenticate', async ({ page }: { page: Page }) => {
await page.goto('/signup');
await page.getByLabel('Name').fill(username);
await page.getByLabel('Email').fill(email);
await page.getByLabel('Password').fill(password);
await page.getByLabel('Password', { exact: true }).fill(password);
const canvas = page.locator('canvas');
const box = await canvas.boundingBox();
@ -26,7 +26,7 @@ setup('authenticate', async ({ page }: { page: Page }) => {
await page.goto('/');
await page.getByLabel('Email').fill(email);
await page.getByLabel('Password').fill(password);
await page.getByLabel('Password', { exact: true }).fill(password);
await page.getByRole('button', { name: 'Sign In' }).click();
await expect(page).toHaveURL('/documents');

View File

@ -16,7 +16,7 @@ test('user can sign up with email and password', async ({ page }: { page: Page }
await page.goto('/signup');
await page.getByLabel('Name').fill(username);
await page.getByLabel('Email').fill(email);
await page.getByLabel('Password').fill(password);
await page.getByLabel('Password', { exact: true }).fill(password);
const canvas = page.locator('canvas');
const box = await canvas.boundingBox();
@ -37,7 +37,7 @@ test('user can sign up with email and password', async ({ page }: { page: Page }
test('user can login with user and password', async ({ page }: { page: Page }) => {
await page.goto('/signin');
await page.getByLabel('Email').fill(email);
await page.getByLabel('Password').fill(password);
await page.getByLabel('Password', { exact: true }).fill(password);
await page.getByRole('button', { name: 'Sign In' }).click();
await page.waitForURL('/documents');

View File

@ -22,7 +22,7 @@ test.describe('Document upload test', () => {
});
test('user can upload a document succesfully', async ({ page }) => {
await expect(page.locator('canvas')).toBeVisible();
await expect(page.getByText('Drag & drop your document here.')).toBeVisible();
});
test('user can send the document for signing succesfully', async ({ documentsPage, page }) => {