Skip to content

Bugfix: Print some html element as their own line #207

Bugfix: Print some html element as their own line

Bugfix: Print some html element as their own line #207

Triggered via pull request December 13, 2024 03:13
Status Failure
Total duration 26s
Artifacts

ci.yaml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 3 warnings
tests/Expressions/jsfmt.spec.js > Expressions > should handle object expressions: tests/Expressions/jsfmt.spec.js#L57
Error: Snapshot `Expressions > should handle object expressions 1` mismatched - Expected + Received @@ -8,8 +8,6 @@ }} <h1 class="{{ { ('hero__title--' ~ (locale|lower)): locale in ['CN', 'JP', 'DE', 'RU'] - }|classes }}"> - Heading - </h1> + }|classes }}">Heading</h1> ❯ tests/Expressions/jsfmt.spec.js:57:9
tests/Expressions/jsfmt.spec.js > Expressions > should handle operators: tests/Expressions/jsfmt.spec.js#L63
Error: Snapshot `Expressions > should handle operators 1` mismatched - Expected + Received @@ -64,13 +64,11 @@ {% if element is instance of('craft\\elements\\Entry') or element is instance of( constant('Namespace\\Classname::CONSTANT_NAME') ) %} - <h1> - {{ entry.title }} - </h1> + <h1>{{ entry.title }}</h1> {% endif %} {{ dump(test) }} {{ range(2, 3)|sort|join(',') }} {{ range(3)|sort|join(',') }} ❯ tests/Expressions/jsfmt.spec.js:63:9
tests/GenericTags/jsfmt.spec.js > Generic tags > should handle nav tag: tests/GenericTags/jsfmt.spec.js#L36
Error: Snapshot `Generic tags > should handle nav tag 1` mismatched - Expected + Received {% nav entry in entries %} - <li> - <a href="{{ entry.url }}">{{ entry.title }}</a> - {% ifchildren %} - <ul> - {% children %} - </ul> - {% endifchildren %} - </li> + <li><a href="{{ entry.url }}">{{ entry.title }}</a> + {% ifchildren %} + <ul> + {% children %} + </ul> + {% endifchildren %}</li> {% endnav %} ❯ tests/GenericTags/jsfmt.spec.js:36:9
tests/IncludeEmbed/jsfmt.spec.js > Include embed > should handle mount: tests/IncludeEmbed/jsfmt.spec.js#L44
Error: Snapshot `Include embed > should handle mount 1` mismatched - Expected + Received @@ -22,26 +22,24 @@ } %} {% endif %} </div> - <li> - <article> - {% mount '@hotelsearch/accommodation-list/src/Slideout/index' - as 'accommodation-slideout-' ~ accommodation.id.id with { - key: 'accommodation-slideout-' ~ accommodation.id.id, - itemId: accommodation.id.id, - item: accommodation, - isSearchedItem: isSearchedItem, - bestPrice: accommodation.deals.bestPrice, - insights: hasInsights ? insightsData.accommodation.id.id, - clickedAltDealPartnerId: clickedAltDealPartnerId, - entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id - } - %} - </article> - </li> + <li><article> + {% mount '@hotelsearch/accommodation-list/src/Slideout/index' + as 'accommodation-slideout-' ~ accommodation.id.id with { + key: 'accommodation-slideout-' ~ accommodation.id.id, + itemId: accommodation.id.id, + item: accommodation, + isSearchedItem: isSearchedItem, + bestPrice: accommodation.deals.bestPrice, + insights: hasInsights ? insightsData.accommodation.id.id, + clickedAltDealPartnerId: clickedAltDealPartnerId, + entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id + } + %} + </article></li> <div class="popover__body"> {% mount ContentComponent as 'popover-component' ~ activeView with _context %} </div> ❯ tests/IncludeEmbed/jsfmt.spec.js:44:9
Test (22)
Process completed with exit code 1.
tests/Expressions/jsfmt.spec.js > Expressions > should handle object expressions: tests/Expressions/jsfmt.spec.js#L57
Error: Snapshot `Expressions > should handle object expressions 1` mismatched - Expected + Received @@ -8,8 +8,6 @@ }} <h1 class="{{ { ('hero__title--' ~ (locale|lower)): locale in ['CN', 'JP', 'DE', 'RU'] - }|classes }}"> - Heading - </h1> + }|classes }}">Heading</h1> ❯ tests/Expressions/jsfmt.spec.js:57:9
tests/Expressions/jsfmt.spec.js > Expressions > should handle operators: tests/Expressions/jsfmt.spec.js#L63
Error: Snapshot `Expressions > should handle operators 1` mismatched - Expected + Received @@ -64,13 +64,11 @@ {% if element is instance of('craft\\elements\\Entry') or element is instance of( constant('Namespace\\Classname::CONSTANT_NAME') ) %} - <h1> - {{ entry.title }} - </h1> + <h1>{{ entry.title }}</h1> {% endif %} {{ dump(test) }} {{ range(2, 3)|sort|join(',') }} {{ range(3)|sort|join(',') }} ❯ tests/Expressions/jsfmt.spec.js:63:9
tests/GenericTags/jsfmt.spec.js > Generic tags > should handle nav tag: tests/GenericTags/jsfmt.spec.js#L36
Error: Snapshot `Generic tags > should handle nav tag 1` mismatched - Expected + Received {% nav entry in entries %} - <li> - <a href="{{ entry.url }}">{{ entry.title }}</a> - {% ifchildren %} - <ul> - {% children %} - </ul> - {% endifchildren %} - </li> + <li><a href="{{ entry.url }}">{{ entry.title }}</a> + {% ifchildren %} + <ul> + {% children %} + </ul> + {% endifchildren %}</li> {% endnav %} ❯ tests/GenericTags/jsfmt.spec.js:36:9
tests/IncludeEmbed/jsfmt.spec.js > Include embed > should handle mount: tests/IncludeEmbed/jsfmt.spec.js#L44
Error: Snapshot `Include embed > should handle mount 1` mismatched - Expected + Received @@ -22,26 +22,24 @@ } %} {% endif %} </div> - <li> - <article> - {% mount '@hotelsearch/accommodation-list/src/Slideout/index' - as 'accommodation-slideout-' ~ accommodation.id.id with { - key: 'accommodation-slideout-' ~ accommodation.id.id, - itemId: accommodation.id.id, - item: accommodation, - isSearchedItem: isSearchedItem, - bestPrice: accommodation.deals.bestPrice, - insights: hasInsights ? insightsData.accommodation.id.id, - clickedAltDealPartnerId: clickedAltDealPartnerId, - entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id - } - %} - </article> - </li> + <li><article> + {% mount '@hotelsearch/accommodation-list/src/Slideout/index' + as 'accommodation-slideout-' ~ accommodation.id.id with { + key: 'accommodation-slideout-' ~ accommodation.id.id, + itemId: accommodation.id.id, + item: accommodation, + isSearchedItem: isSearchedItem, + bestPrice: accommodation.deals.bestPrice, + insights: hasInsights ? insightsData.accommodation.id.id, + clickedAltDealPartnerId: clickedAltDealPartnerId, + entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id + } + %} + </article></li> <div class="popover__body"> {% mount ContentComponent as 'popover-component' ~ activeView with _context %} </div> ❯ tests/IncludeEmbed/jsfmt.spec.js:44:9
Test (18)
Process completed with exit code 1.
tests/Expressions/jsfmt.spec.js > Expressions > should handle object expressions: tests/Expressions/jsfmt.spec.js#L57
Error: Snapshot `Expressions > should handle object expressions 1` mismatched - Expected + Received @@ -8,8 +8,6 @@ }} <h1 class="{{ { ('hero__title--' ~ (locale|lower)): locale in ['CN', 'JP', 'DE', 'RU'] - }|classes }}"> - Heading - </h1> + }|classes }}">Heading</h1> ❯ tests/Expressions/jsfmt.spec.js:57:9
tests/Expressions/jsfmt.spec.js > Expressions > should handle operators: tests/Expressions/jsfmt.spec.js#L63
Error: Snapshot `Expressions > should handle operators 1` mismatched - Expected + Received @@ -64,13 +64,11 @@ {% if element is instance of('craft\\elements\\Entry') or element is instance of( constant('Namespace\\Classname::CONSTANT_NAME') ) %} - <h1> - {{ entry.title }} - </h1> + <h1>{{ entry.title }}</h1> {% endif %} {{ dump(test) }} {{ range(2, 3)|sort|join(',') }} {{ range(3)|sort|join(',') }} ❯ tests/Expressions/jsfmt.spec.js:63:9
tests/GenericTags/jsfmt.spec.js > Generic tags > should handle nav tag: tests/GenericTags/jsfmt.spec.js#L36
Error: Snapshot `Generic tags > should handle nav tag 1` mismatched - Expected + Received {% nav entry in entries %} - <li> - <a href="{{ entry.url }}">{{ entry.title }}</a> - {% ifchildren %} - <ul> - {% children %} - </ul> - {% endifchildren %} - </li> + <li><a href="{{ entry.url }}">{{ entry.title }}</a> + {% ifchildren %} + <ul> + {% children %} + </ul> + {% endifchildren %}</li> {% endnav %} ❯ tests/GenericTags/jsfmt.spec.js:36:9
tests/IncludeEmbed/jsfmt.spec.js > Include embed > should handle mount: tests/IncludeEmbed/jsfmt.spec.js#L44
Error: Snapshot `Include embed > should handle mount 1` mismatched - Expected + Received @@ -22,26 +22,24 @@ } %} {% endif %} </div> - <li> - <article> - {% mount '@hotelsearch/accommodation-list/src/Slideout/index' - as 'accommodation-slideout-' ~ accommodation.id.id with { - key: 'accommodation-slideout-' ~ accommodation.id.id, - itemId: accommodation.id.id, - item: accommodation, - isSearchedItem: isSearchedItem, - bestPrice: accommodation.deals.bestPrice, - insights: hasInsights ? insightsData.accommodation.id.id, - clickedAltDealPartnerId: clickedAltDealPartnerId, - entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id - } - %} - </article> - </li> + <li><article> + {% mount '@hotelsearch/accommodation-list/src/Slideout/index' + as 'accommodation-slideout-' ~ accommodation.id.id with { + key: 'accommodation-slideout-' ~ accommodation.id.id, + itemId: accommodation.id.id, + item: accommodation, + isSearchedItem: isSearchedItem, + bestPrice: accommodation.deals.bestPrice, + insights: hasInsights ? insightsData.accommodation.id.id, + clickedAltDealPartnerId: clickedAltDealPartnerId, + entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id + } + %} + </article></li> <div class="popover__body"> {% mount ContentComponent as 'popover-component' ~ activeView with _context %} </div> ❯ tests/IncludeEmbed/jsfmt.spec.js:44:9
Test (20)
Process completed with exit code 1.
Test (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636