Fix broken test

This commit is contained in:
Jonathon Leight committed 2026-07-07 22:28:28 -04:00
1 parent 0ee6dcf803
commit 5b71c42277
1 file changed
+3 -1
+3 -1
View File
@@ -64,7 +64,9 @@ func TestE2EShareOrgLimitsModal(t *testing.T) {
chromedp.WaitVisible(`#limits-modal-content [data-check-scope]`, chromedp.ByQuery),
chromedp.Evaluate(countChecked, &initial),
// Default is permissive: everything checked. Uncheck only the first section.
chromedp.Click(`#limits-modal-content [data-check-scope]:first-of-type [data-check-none]`, chromedp.ByQuery),
// ByQuery = querySelector, so this is the first scope's Select-none button
// (document order), regardless of sibling element types before the cards.
chromedp.Click(`#limits-modal-content [data-check-scope] [data-check-none]`, chromedp.ByQuery),
chromedp.Evaluate(countChecked, &afterNone),
); err != nil {
t.Fatalf("browser run against %s: %v", shareURL, err)