updated link on awaiting submission view allin welsh Related work items: #24389
71 lines
4.6 KiB
TypeScript
71 lines
4.6 KiB
TypeScript
import { test, expect } from '@playwright/test';
|
||
|
||
test('test', async ({ page }) => {
|
||
await page.locator('body').click();
|
||
await page.goto('http://localhost:3000/auth/error?error=Verification
|
||
await page.getByRole('link', { name: 'Home', exact: true }).click();
|
||
await page.goto('http://localhost:3000/myportal');
|
||
await page.goto('http://localhost:3000/myportal/case/CAS-01085-K4R4X0?q=CAS-01085-K4R4X0&adv=false');
|
||
await page.getByRole('link', { name: 'Make representation' }).click();
|
||
await page.getByRole('combobox').selectOption('Questionnaire');
|
||
await page.getByRole('combobox').selectOption('Written representations');
|
||
await page.getByText('No').first().click();
|
||
await page.getByText('No').nth(1).click();
|
||
await page.getByText('No').nth(2).click();
|
||
await page.getByText('Yes').nth(2).click();
|
||
await page.getByText('No').nth(3).click();
|
||
await page.getByRole('paragraph').filter({ hasText: /^$/ }).click();
|
||
await page.locator('.ql-editor').fill('w');
|
||
await page.locator('div').filter({ hasText: /^w$/ }).nth(2).fill('wdwdwdwdwdw ');
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.locator('.ql-editor').first().click();
|
||
await page.locator('.ql-editor').first().fill('wwwqwqeq wefqewr qwerq');
|
||
await page.getByRole('paragraph').nth(4).click();
|
||
await page.locator('.ql-editor.ql-blank').first().fill('qweqwe qwrqrt qwe qweqwqwe');
|
||
await page.getByRole('paragraph').filter({ hasText: /^$/ }).click();
|
||
await page.locator('.ql-editor.ql-blank').first().fill('qweqwe qwrqrt qwe qweqwqweq');
|
||
await page.locator('.ql-editor.ql-blank').fill('w e');
|
||
await page.locator('div').filter({ hasText: /^w e$/ }).nth(2).fill('w eqewrqwe q');
|
||
await page.getByRole('paragraph').filter({ hasText: /^$/ }).click();
|
||
await page.locator('div').filter({ hasText: /^w e$/ }).nth(2).fill('w eqewrqwe qweqwe ');
|
||
await page.getByText('No').nth(1).click();
|
||
await page.getByText('No').nth(2).click();
|
||
await page.getByText('No').nth(3).click();
|
||
await page.getByText('No').nth(4).click();
|
||
await page.getByText('No').nth(5).click();
|
||
await page.locator('div:nth-child(8) > .govuk-form-group > .govuk-fieldset > .govuk-radios > div:nth-child(2) > .govuk-radios__item > .govuk-label').click();
|
||
await page.locator('div:nth-child(9) > .govuk-fieldset > .govuk-radios > div:nth-child(2) > .govuk-label').click();
|
||
await page.locator('div:nth-child(10) > .govuk-form-group > .govuk-fieldset > .govuk-radios > div:nth-child(2) > .govuk-radios__item > .govuk-label').click();
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.getByText('No').nth(2).click();
|
||
await page.getByText('No').nth(3).click();
|
||
await page.getByText('No').nth(5).click();
|
||
await page.getByText('No', { exact: true }).nth(3).click();
|
||
await page.getByText('No', { exact: true }).nth(4).click();
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.getByRole('group', { name: '26. A copy of the applicant’s' }).click();
|
||
await page.getByText('No').nth(4).click();
|
||
await page.getByText('Yes').nth(1).click();
|
||
await page.getByText('No', { exact: true }).nth(2).click();
|
||
await page.getByText('Yes').nth(2).click();
|
||
await page.getByText('No', { exact: true }).nth(3).click();
|
||
await page.getByText('No', { exact: true }).nth(4).click();
|
||
await page.getByText('No', { exact: true }).nth(5).click();
|
||
await page.locator('div:nth-child(9) > .govuk-form-group > .govuk-fieldset > .govuk-radios > div:nth-child(2) > .govuk-radios__item > .govuk-label').click();
|
||
await page.locator('div:nth-child(10) > .govuk-form-group > .govuk-fieldset > .govuk-radios > div:nth-child(2) > .govuk-radios__item > .govuk-label').click();
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.getByText('Drag and drop your files here').click();
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.getByRole('textbox', { name: 'Signed' }).click();
|
||
await page.getByRole('textbox', { name: 'Signed' }).fill('Bob Bob');
|
||
await page.getByRole('textbox', { name: 'Date' }).click();
|
||
await page.getByRole('option', { name: 'Choose Tuesday, April 14th,' }).click();
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
await page.getByText('I wish to download a copy of').click();
|
||
await page.getByRole('checkbox', { name: 'I confirm I have read the' }).check();
|
||
const downloadPromise = page.waitForEvent('download');
|
||
await page.getByRole('button', { name: 'Continue' }).click();
|
||
const download = await downloadPromise;
|
||
await page.getByRole('link', { name: 'Continue' }).click();
|
||
await page.goto('http://localhost:3000/myportal');');
|
||
}); |