mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 20:51:33 +10:00
chore: updated GitHub Action
This commit is contained in:
@ -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.',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user