chore: update tests

This commit is contained in:
Ephraim Atta-Duncan
2025-05-01 10:55:32 +00:00
parent 311adb4d1e
commit eb2b9dd099
2 changed files with 10 additions and 10 deletions

View File

@ -116,15 +116,15 @@ test.describe('[EE_ONLY]', () => {
redirectPath: `/documents/${document.id}/edit`, redirectPath: `/documents/${document.id}/edit`,
}); });
// Global action auth should not be visible. // Global action auth should now be visible for all users
await expect(page.getByTestId('documentActionSelectValue')).not.toBeVisible(); await expect(page.getByTestId('documentActionSelectValue')).toBeVisible();
// Next step. // Next step.
await page.getByRole('button', { name: 'Continue' }).click(); await page.getByRole('button', { name: 'Continue' }).click();
await expect(page.getByRole('heading', { name: 'Add Signers' })).toBeVisible(); await expect(page.getByRole('heading', { name: 'Add Signers' })).toBeVisible();
// Advanced settings should not be visible. // Advanced settings should now be visible for all users
await expect(page.getByLabel('Show advanced settings')).not.toBeVisible(); await expect(page.getByLabel('Show advanced settings')).toBeVisible();
}); });
}); });
@ -146,8 +146,8 @@ test('[DOCUMENT_FLOW]: add settings', async ({ page }) => {
await page.getByLabel('Require account').getByText('Require account').click(); await page.getByLabel('Require account').getByText('Require account').click();
await expect(page.getByTestId('documentAccessSelectValue')).toContainText('Require account'); await expect(page.getByTestId('documentAccessSelectValue')).toContainText('Require account');
// Action auth should NOT be visible. // Action auth should now be visible for all users
await expect(page.getByTestId('documentActionSelectValue')).not.toBeVisible(); await expect(page.getByTestId('documentActionSelectValue')).toBeVisible();
// Save the settings by going to the next step. // Save the settings by going to the next step.

View File

@ -113,8 +113,8 @@ test.describe('[EE_ONLY]', () => {
redirectPath: `/templates/${template.id}/edit`, redirectPath: `/templates/${template.id}/edit`,
}); });
// Global action auth should not be visible. // Global action auth should now be visible for all users
await expect(page.getByTestId('documentActionSelectValue')).not.toBeVisible(); await expect(page.getByTestId('documentActionSelectValue')).toBeVisible();
// Next step. // Next step.
await page.getByRole('button', { name: 'Continue' }).click(); await page.getByRole('button', { name: 'Continue' }).click();
@ -143,8 +143,8 @@ test('[TEMPLATE_FLOW]: add settings', async ({ page }) => {
await page.getByLabel('Require account').getByText('Require account').click(); await page.getByLabel('Require account').getByText('Require account').click();
await expect(page.getByTestId('documentAccessSelectValue')).toContainText('Require account'); await expect(page.getByTestId('documentAccessSelectValue')).toContainText('Require account');
// Action auth should NOT be visible. // Action auth should now be visible for all users
await expect(page.getByTestId('documentActionSelectValue')).not.toBeVisible(); await expect(page.getByTestId('documentActionSelectValue')).toBeVisible();
// Save the settings by going to the next step. // Save the settings by going to the next step.
await page.getByRole('button', { name: 'Continue' }).click(); await page.getByRole('button', { name: 'Continue' }).click();