Skip to content

Commit

Permalink
✅ Updates Test for new attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekwoka committed Jul 29, 2024
1 parent c381353 commit 7beaaf4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/cypress/integration/directives/x-bind.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ test('boolean attribute values are set to their attribute name if true and remov
<option x-bind:selected="isSet"></option>
<textarea x-bind:autofocus="isSet"></textarea>
<dl x-bind:itemscope="isSet"></dl>
<form x-bind:novalidate="isSet"></form>
<form
x-bind:novalidate="isSet"
x-bind:inert="isSet"
></form>
<iframe
x-bind:allowfullscreen="isSet"
x-bind:allowpaymentrequest="isSet"
></iframe>
<button x-bind:formnovalidate="isSet"></button>
<audio
Expand All @@ -121,6 +123,11 @@ test('boolean attribute values are set to their attribute name if true and remov
<track x-bind:default="isSet" />
<img x-bind:ismap="isSet" />
<ol x-bind:reversed="isSet"></ol>
<template
x-bind:shadowrootclonable="isSet"
x-bind:shadowrootdelegatesfocus="isSet"
x-bind:shadowrootserializable="isSet"
></template>
</div>
`,
({ get }) => {
Expand All @@ -135,7 +142,6 @@ test('boolean attribute values are set to their attribute name if true and remov
get('dl').should(haveAttribute('itemscope', 'itemscope'))
get('form').should(haveAttribute('novalidate', 'novalidate'))
get('iframe').should(haveAttribute('allowfullscreen', 'allowfullscreen'))
get('iframe').should(haveAttribute('allowpaymentrequest', 'allowpaymentrequest'))
get('button').should(haveAttribute('formnovalidate', 'formnovalidate'))
get('audio').should(haveAttribute('autoplay', 'autoplay'))
get('audio').should(haveAttribute('controls', 'controls'))
Expand All @@ -145,6 +151,9 @@ test('boolean attribute values are set to their attribute name if true and remov
get('track').should(haveAttribute('default', 'default'))
get('img').should(haveAttribute('ismap', 'ismap'))
get('ol').should(haveAttribute('reversed', 'reversed'))
get('template').should(haveAttribute('shadowrootclonable', 'shadowrootclonable'))
get('template').should(haveAttribute('shadowrootdelegatesfocus', 'shadowrootdelegatesfocus'))
get('template').should(haveAttribute('shadowrootserializable', 'shadowrootserializable'))

get('#setToFalse').click()

Expand Down

0 comments on commit 7beaaf4

Please sign in to comment.