chore: updated GitHub Action

This commit is contained in:
pit
2023-09-26 11:16:33 +01:00
parent 1b31d590a5
commit 2e2ef4c20b
11 changed files with 386 additions and 41 deletions

View File

@ -25,18 +25,14 @@ test.describe('Document upload test', () => {
await expect(page.locator('canvas')).toBeVisible();
});
test('user can add 1 signer', async ({ documentsPage }) => {
await documentsPage.addSigner(signer_email, signer_name);
});
test('user can add signature field', async ({ documentsPage }) => {
await documentsPage.addSigner(signer_email, signer_name);
await documentsPage.addSignatureField(signer_name);
});
test('user can add subject and message', async ({ documentsPage }) => {
test('user can send the document for signing succesfully', async ({ documentsPage, page }) => {
await documentsPage.addSigner(signer_email, signer_name);
await documentsPage.addSignatureField(signer_name);
await documentsPage.addSubjectAndMessage(signing_subject, signing_message);
await expect(page).toHaveURL('/documents');
await expect(page.getByRole('status').locator('div').nth(2)).toHaveText(
'Your document has been sent successfully.',
);
});
});

View File

@ -5,6 +5,7 @@ export class DocumentsPage {
private readonly subject: Locator;
private readonly message: Locator;
// eslint-disable-next-line no-unused-vars
constructor(public readonly page: Page) {
this.fileInput = this.page.locator('input[type=file]');
this.subject = this.page