Skip to content

Commit

Permalink
Add test to ensure no related reports are shown when no data is entered
Browse files Browse the repository at this point in the history
  • Loading branch information
clari182 committed Dec 26, 2024
1 parent 4f65120 commit ea76e44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/gatsby-site/playwright/e2e-full/submit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,18 @@ test.describe('The Submit form', () => {
);


test('Should **not** show a list of related reports if no data entered', async ({ page, skipOnEmptyEnvironment }) => {

await page.goto(url);

const parentLocator = page.locator(`[data-cy="related-reports"]`);

const childrenCount = await parentLocator.locator('> *').count();

await expect(childrenCount).toBe(0);

}
);

test('Should *not* show a list of related reports', async ({ page, skipOnEmptyEnvironment }) => {

Expand Down

0 comments on commit ea76e44

Please sign in to comment.