Closed a modal that was left open in a test, which caused the next test to fail

This commit is contained in:
Chris Raible 2024-08-29 17:49:23 -07:00
parent f95e06bccd
commit d959bdb914

View File

@ -265,6 +265,7 @@ test.describe('Admin', () => {
const success = await sharedPage.locator('div[data-test-state="add-complete"] > div > p').innerText();
expect(success).toEqual('Label added to 3 members successfully');
labelFilterUrl = await sharedPage.url();
await sharedPage.locator('button[data-test-button="close-modal"]').click();
});
test('A filtered list of members can have a label removed from them', async ({sharedPage}) => {