Simone Todaro преди 3 години
родител
ревизия
f6f99b6fab
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tests/cypress/integration/plugins/collapse.spec.js

+ 2 - 2
tests/cypress/integration/plugins/collapse.spec.js

@@ -61,10 +61,10 @@ test('double-click on x-collapse does not mix styles up',
     `],
     ({ get }, reload) => {
         get('h1').should(haveComputedStyle('height', '0px'))
-        get('h1').should(haveAttribute('style', 'height: 0px; overflow: hidden;'))
+        get('h1').should(haveAttribute('style', 'display: none; height: 0px; overflow: hidden;'))
         get('button').click()
         get('button').click()
-        get('h1').should(haveAttribute('style', 'height: 0px; overflow: hidden;'))
+        get('h1').should(haveAttribute('style', 'height: 0px; display: none; overflow: hidden;'))
         get('button').click()
         get('h1').should(haveAttribute('style', 'height: auto;'))
         get('button').click()