Skip to content

Commit d4c6ca2

Browse files
committed
testing
1 parent 8744548 commit d4c6ca2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

integration-tests/tests/specs/features/search/active-filters.dependent.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ test.describe('Search', () => {
3939
test('multi-segment mutation filter can be added and removed', async ({ page }) => {
4040
const mutation = 'S:G100A';
4141
await searchPage.cchf();
42-
const segment = page.locator('details', { hasText: 'S' });
43-
await segment.locator('summary').click();
42+
const details = page.locator('details', {
43+
has: page.locator('summary', { hasText: /^S$/ }),
44+
});
45+
await details.locator('summary', { hasText: /^S$/ }).click();
46+
await expect(details).toHaveAttribute('open', '');
4447
await searchPage.enterMutation(mutation);
4548
await expect(page.getByText(`mutation:${mutation}`)).toBeVisible();
4649
await page.getByLabel('remove filter').click();

0 commit comments

Comments
 (0)