Skip to content

Commit 3af2674

Browse files
committed
test(ui): scope advanced disclosure summary selectors
1 parent 629a47e commit 3af2674

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/src/e2e/config-form-guidance.e2e.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ suite.define(() => {
204204
await expect.poll(() => disclosure.count()).toBe(1);
205205
await expect.poll(() => disclosure.getAttribute("open")).toBeNull();
206206
await expect
207-
.poll(() => disclosure.locator("summary").textContent())
207+
.poll(() => disclosure.locator(":scope > summary").textContent())
208208
.toContain("Advanced settings");
209209
await expect
210210
.poll(() => page.getByText("Show Advanced Settings", { exact: true }).count())
@@ -219,7 +219,7 @@ suite.define(() => {
219219
});
220220
}
221221

222-
await disclosure.locator("summary").click();
222+
await disclosure.locator(":scope > summary").click();
223223
await expect.poll(() => disclosure.getAttribute("open")).not.toBeNull();
224224

225225
if (captureUiProofEnabled) {
@@ -230,7 +230,7 @@ suite.define(() => {
230230
});
231231
}
232232

233-
await disclosure.locator("summary").click();
233+
await disclosure.locator(":scope > summary").click();
234234
await expect.poll(() => disclosure.getAttribute("open")).toBeNull();
235235
await page.waitForTimeout(750);
236236
expect(await gateway.getRequests("config.patch")).toHaveLength(0);

0 commit comments

Comments
 (0)