Răsfoiți Sursa

chore: fix a couple of tests

jamesread 4 luni în urmă
părinte
comite
865986e8c3
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      integration-tests/lib/elements.js

+ 4 - 1
integration-tests/lib/elements.js

@@ -167,7 +167,10 @@ export async function openSidebar() {
 }
 
 export async function getNavigationLinks() {
-  const navigationLinks = await webdriver.findElements(By.css('.navigation-links li'))
+  // Exclude section headers (e.g. "System"); they are li.nav-section-header-item.
+  const navigationLinks = await webdriver.findElements(
+    By.css('.navigation-links li:not(.nav-section-header-item)')
+  )
 
   return navigationLinks
 }