Skip to content

Commit

Permalink
EWPP-3844: Ignore the ecl-build folder in kernel tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
imanoleguskiza committed Feb 6, 2024
1 parent c3a0ea9 commit 5c0edfd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions runner.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ drupal:
- "bower_components"
- "vendor"
- "${drupal.root}"
- "ecl-build"
- "components"
file_private_path: 'sites/default/files/private'
databases:
sparql_default:
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/AbstractKernelTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function setUp(): void {
// node_modules/@ecl/twig-component-description-list/description-list.html.twig
// instead of templates/field/description-list.html.twig
$settings = Settings::getAll();
$settings['file_scan_ignore_directories'] = ['node_modules'];
$settings['file_scan_ignore_directories'] = ['node_modules', 'ecl-build'];
new Settings($settings);

// Call the install hook of the User module which creates the Anonymous user
Expand Down
20 changes: 10 additions & 10 deletions tests/src/Kernel/fixtures/rendering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
'select.ecl-select': 1
'div.ecl-select__icon': 1
'select[data-ecl-select-multiple]': 0
'svg.ecl-icon.ecl-icon--s.ecl-icon--rotate-180.ecl-button__icon': 1
'svg.ecl-icon.ecl-icon--xs.ecl-icon--rotate-180.ecl-button__icon': 1
equals:
'div.ecl-form-group label.ecl-form-label': 'Select element'
'div.ecl-form-group div.ecl-select__container.ecl-select__container--m select.ecl-select option[value="1"]': 'One'
Expand All @@ -79,7 +79,7 @@
'select.ecl-select': 1
'div.ecl-select__icon': 1
'select[data-ecl-select-multiple]': 1
'svg.ecl-icon.ecl-icon--s.ecl-icon--rotate-180.ecl-button__icon': 1
'svg.ecl-icon.ecl-icon--xs.ecl-icon--rotate-180.ecl-button__icon': 1
equals:
'div.ecl-form-group label.ecl-form-label': 'Select element'
'div.ecl-form-group div.ecl-select__container.ecl-select__container--m select.ecl-select option[value="1"]': 'One'
Expand All @@ -101,7 +101,7 @@
'select.ecl-select': 1
'div.ecl-select__icon': 1
'select[data-ecl-select-multiple]': 0
'svg.ecl-icon.ecl-icon--s.ecl-icon--rotate-180.ecl-button__icon': 1
'svg.ecl-icon.ecl-icon--xs.ecl-icon--rotate-180.ecl-button__icon': 1
equals:
'div.ecl-form-group label.ecl-form-label': 'Select element'
'div.ecl-form-group div.ecl-select__container.ecl-select__container--m select.ecl-select option[value="1"]': 'One'
Expand All @@ -125,7 +125,7 @@
'select.ecl-select': 1
'div.ecl-select__icon': 1
'select[data-ecl-select-multiple]': 1
'svg.ecl-icon.ecl-icon--s.ecl-icon--rotate-180.ecl-button__icon': 1
'svg.ecl-icon.ecl-icon--xs.ecl-icon--rotate-180.ecl-button__icon': 1
equals:
'div.ecl-form-group label.ecl-form-label': 'Select element'
'div.ecl-form-group div.ecl-select__container.ecl-select__container--m select.ecl-select option[value="1"]': 'One'
Expand Down Expand Up @@ -1892,14 +1892,14 @@
url: 'http://example.com/3'
assertions:
count:
'.ecl-expandable-dropdown__content a[href="http://example.com/1"]': 1
'.ecl-expandable-dropdown__content a[href="http://example.com/2"]': 1
'.ecl-expandable-dropdown__content a[href="http://example.com/3"]': 1
'.ecl-expandable__content a[href="http://example.com/1"]': 1
'.ecl-expandable__content a[href="http://example.com/2"]': 1
'.ecl-expandable__content a[href="http://example.com/3"]': 1
equals:
'button.ecl-expandable__toggle span.ecl-button__label': "Dropdown"
'.ecl-expandable-dropdown__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(1) a': "Link 1"
'.ecl-expandable-dropdown__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(2) a': "Link 2"
'.ecl-expandable-dropdown__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(3) a': "Link 3"
'.ecl-expandable__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(1) a': "Link 1"
'.ecl-expandable__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(2) a': "Link 2"
'.ecl-expandable__content .ecl-unordered-list .ecl-unordered-list__item:nth-child(3) a': "Link 3"
- array:
'#type': pattern
'#id': field
Expand Down

0 comments on commit 5c0edfd

Please sign in to comment.