Pārlūkot izejas kodu

Maybe fix aria-hidden absence check in Edge

Renée Kooi 6 gadi atpakaļ
vecāks
revīzija
33dd05fd39
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      test/endtoend/create-react-app/test.js

+ 2 - 1
test/endtoend/create-react-app/test.js

@@ -70,7 +70,8 @@ describe('React: DashboardModal', () => {
     modalToggle.click()
     modalToggle.click()
     browser.pause(50) // wait for the animation to start
     browser.pause(50) // wait for the animation to start
 
 
-    expect(modalWrapper.getAttribute('aria-hidden')).to.equal(null)
+    // Edge appears to report empty string while others report null
+    expect(modalWrapper.getAttribute('aria-hidden')).to.be.oneOf([null, ''])
 
 
     browser.pause(500) // wait for the animation to complete
     browser.pause(500) // wait for the animation to complete