Browse Source

Maybe fix aria-hidden absence check in Edge

Renée Kooi 6 years ago
parent
commit
33dd05fd39
1 changed files with 2 additions and 1 deletions
  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()
     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