-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(package): update theme and dependencies - INNO-867 (#536)
* chore(package): update @ec-europa/ecl-fractal-theme to version 0.12.0 * Update dependencies * Flatten forms-file-uploads * Flatten nav lists
- Loading branch information
1 parent
5d6abb6
commit c803ecb
Showing
45 changed files
with
342 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
{% set bodyClass = '' %} | ||
{% if _target.context is defined and _target.context.global is defined %} | ||
{% if _target.context.global.svg is defined %} | ||
{% set bodyClass = 'no-svg' %} | ||
{% endif %} | ||
{% endif %} | ||
<html lang="en" class="no-js"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="{{ '/framework/styles/europa.css' | path }}"> | ||
<title>Preview Layout</title> | ||
<script>document.documentElement.classList.remove('no-js');</script> | ||
</head> | ||
<body{% if _target.context and _target.context.global and _target.context.global.language %} class="language-{{ _target.context.global.language }}"{% endif %}> | ||
{{ yield }} | ||
<script src="{{ '/framework/scripts/europa.js' | path }}"></script> | ||
<script type="text/javascript">document.addEventListener('DOMContentLoaded', function() { ECL.fileUploads(); });</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 17 additions & 25 deletions
42
framework/components/ecl-forms/ecl-forms-file-uploads/test/spec/file-uploads.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,31 @@ | ||
const variants = ['default', 'is-disabled', 'is-multiple', 'has-error']; | ||
|
||
describe('ecl-forms-file-uploads', () => { | ||
before(() => { | ||
// Set viewport size | ||
browser.setViewportSize({ | ||
width: 600, | ||
height: 300, | ||
}); | ||
}); | ||
|
||
variants.forEach(variant => { | ||
describe(`--${variant}`, () => { | ||
before(() => { | ||
// Go to url | ||
browser.url(`ecl-forms-file-uploads--${variant}.html`); | ||
|
||
// Inject axe-core (for accessibility tests) | ||
browser.injectAxeCore(); | ||
// Go to url | ||
browser.url(`ecl-forms-file-uploads.html`); | ||
|
||
// Make sure the browser has finished painting | ||
browser.pause(500); | ||
}); | ||
// Inject axe-core (for accessibility tests) | ||
browser.injectAxeCore(); | ||
|
||
// Normal state | ||
it('should match the reference screenshot', () => { | ||
const screenshots = browser.checkDocument({ | ||
name: `forms/file-uploads/${variant}`, | ||
}); | ||
expect(screenshots).to.matchReference(); | ||
}); | ||
// Make sure the browser has finished painting | ||
browser.pause(500); | ||
}); | ||
|
||
it('should be accessible', () => { | ||
const a11yReport = browser.runAxeCore('ecl-file-upload').value; | ||
expect(a11yReport).to.be.accessible; | ||
}); | ||
// Normal state | ||
it('should match the reference screenshot', () => { | ||
const screenshots = browser.checkDocument({ | ||
name: `forms/file-uploads`, | ||
}); | ||
expect(screenshots).to.matchReference(); | ||
}); | ||
|
||
it('should be accessible', () => { | ||
const a11yReport = browser.runAxeCore('ecl-file-upload').value; | ||
expect(a11yReport).to.be.accessible; | ||
}); | ||
}); |
Binary file added
BIN
+18.4 KB
...ds/test/spec/screenshots/reference/forms/file-uploads/Windows 10_Chrome_v60.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.5 KB
...ds/test/spec/screenshots/reference/forms/file-uploads/Windows 7_Firefox_v54.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18 KB
...uploads/test/spec/screenshots/reference/forms/file-uploads/Windows 7_IE_v11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-4.17 KB
...spec/screenshots/reference/forms/file-uploads/default/Windows 10_Chrome_v60.png
Binary file not shown.
Binary file removed
BIN
-4.09 KB
...spec/screenshots/reference/forms/file-uploads/default/Windows 7_Firefox_v54.png
Binary file not shown.
Binary file removed
BIN
-4.09 KB
...test/spec/screenshots/reference/forms/file-uploads/default/Windows 7_IE_v11.png
Binary file not shown.
Binary file removed
BIN
-5.78 KB
...pec/screenshots/reference/forms/file-uploads/default/macOS 10.12_Safari_v11.png
Binary file not shown.
Binary file removed
BIN
-4.24 KB
...ec/screenshots/reference/forms/file-uploads/has-error/Windows 10_Chrome_v60.png
Binary file not shown.
Binary file removed
BIN
-4.19 KB
...ec/screenshots/reference/forms/file-uploads/has-error/Windows 7_Firefox_v54.png
Binary file not shown.
Binary file removed
BIN
-4.01 KB
...st/spec/screenshots/reference/forms/file-uploads/has-error/Windows 7_IE_v11.png
Binary file not shown.
Binary file removed
BIN
-5.73 KB
...c/screenshots/reference/forms/file-uploads/has-error/macOS 10.12_Safari_v11.png
Binary file not shown.
Binary file removed
BIN
-3.47 KB
.../screenshots/reference/forms/file-uploads/is-disabled/Windows 10_Chrome_v60.png
Binary file not shown.
Binary file removed
BIN
-3.37 KB
.../screenshots/reference/forms/file-uploads/is-disabled/Windows 7_Firefox_v54.png
Binary file not shown.
Binary file removed
BIN
-3.45 KB
.../spec/screenshots/reference/forms/file-uploads/is-disabled/Windows 7_IE_v11.png
Binary file not shown.
Binary file removed
BIN
-4.66 KB
...screenshots/reference/forms/file-uploads/is-disabled/macOS 10.12_Safari_v11.png
Binary file not shown.
Binary file removed
BIN
-4.17 KB
.../screenshots/reference/forms/file-uploads/is-multiple/Windows 10_Chrome_v60.png
Binary file not shown.
Binary file removed
BIN
-4.09 KB
.../screenshots/reference/forms/file-uploads/is-multiple/Windows 7_Firefox_v54.png
Binary file not shown.
Binary file removed
BIN
-4.09 KB
.../spec/screenshots/reference/forms/file-uploads/is-multiple/Windows 7_IE_v11.png
Binary file not shown.
Binary file removed
BIN
-5.78 KB
...screenshots/reference/forms/file-uploads/is-multiple/macOS 10.12_Safari_v11.png
Binary file not shown.
Binary file added
BIN
+30.4 KB
...s/test/spec/screenshots/reference/forms/file-uploads/macOS 10.12_Safari_v11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+22.5 KB
...ists/test/spec/screenshots/reference/navigation/lists/Windows 10_Chrome_v60.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.5 KB
...ists/test/spec/screenshots/reference/navigation/lists/Windows 7_Firefox_v54.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.7 KB
...ion-lists/test/spec/screenshots/reference/navigation/lists/Windows 7_IE_v11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-9.62 KB
...t/spec/screenshots/reference/navigation/lists/default/Windows 10_Chrome_v60.png
Binary file not shown.
Binary file removed
BIN
-9.63 KB
...t/spec/screenshots/reference/navigation/lists/default/Windows 7_Firefox_v54.png
Binary file not shown.
Binary file removed
BIN
-9.41 KB
...s/test/spec/screenshots/reference/navigation/lists/default/Windows 7_IE_v11.png
Diff not rendered.
Binary file removed
BIN
-13.3 KB
.../spec/screenshots/reference/navigation/lists/default/macOS 10.12_Safari_v11.png
Diff not rendered.
Binary file added
BIN
+33.5 KB
...sts/test/spec/screenshots/reference/navigation/lists/macOS 10.12_Safari_v11.png
Oops, something went wrong.
Binary file removed
BIN
-8.97 KB
...est/spec/screenshots/reference/navigation/lists/small/Windows 10_Chrome_v60.png
Diff not rendered.
Binary file removed
BIN
-8.95 KB
...est/spec/screenshots/reference/navigation/lists/small/Windows 7_Firefox_v54.png
Diff not rendered.
Binary file removed
BIN
-8.8 KB
...sts/test/spec/screenshots/reference/navigation/lists/small/Windows 7_IE_v11.png
Diff not rendered.
Binary file removed
BIN
-11.6 KB
...st/spec/screenshots/reference/navigation/lists/small/macOS 10.12_Safari_v11.png
Diff not rendered.
Binary file removed
BIN
-9.68 KB
...test/spec/screenshots/reference/navigation/lists/tabs/Windows 10_Chrome_v60.png
Diff not rendered.
Binary file removed
BIN
-9.68 KB
...test/spec/screenshots/reference/navigation/lists/tabs/Windows 7_Firefox_v54.png
Diff not rendered.
Binary file removed
BIN
-9.45 KB
...ists/test/spec/screenshots/reference/navigation/lists/tabs/Windows 7_IE_v11.png
Diff not rendered.
Binary file removed
BIN
-13.7 KB
...est/spec/screenshots/reference/navigation/lists/tabs/macOS 10.12_Safari_v11.png
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.