Skip to content

Commit

Permalink
Test case for Cannot re-open closed poll
Browse files Browse the repository at this point in the history
Given connected as CO cannot re-open closed poll
  • Loading branch information
Sital999 committed Nov 15, 2024
1 parent 52cf4e3 commit 5b5acc3
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,17 @@ test.describe('Polls', () => {
page,
browser,
}) => {
throw new Error('Not Implemented');
await page.goto('/');
const homePage = new HomePage(page);
await homePage.deleteOpenPollCards();
await homePage.createPoll();
await page.getByTestId('begin-vote-button').click();
await expect(page.getByTestId('end-vote-button')).toBeVisible();
await page.getByTestId('end-vote-button').click();
await expect(page.getByTestId('delete-poll-button')).toBeVisible();
expect(await page.locator('button').allInnerTexts()).not.toContain(
'Begin Voting'
);
});

/**
Expand Down

0 comments on commit 5b5acc3

Please sign in to comment.