Skip to content

Commit 0816048

Browse files
committed
add ion classes to tests on ionic theme
1 parent d2f64fe commit 0816048

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/scripts/testing/scripts.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@
4848
document.head.appendChild(linkTag);
4949
}
5050

51+
const utilsBundleLinkTag = document.querySelector('link[href*="css/utils.bundle.css"]');
52+
if (!utilsBundleLinkTag) {
53+
const linkTag = document.createElement('link');
54+
linkTag.setAttribute('rel', 'stylesheet');
55+
linkTag.setAttribute('type', 'text/css');
56+
linkTag.setAttribute('href', '/css/utils.bundle.css');
57+
document.head.appendChild(linkTag);
58+
}
59+
5160
const defaultThemeLinkTag = document.querySelector('link[href*="css/ionic.bundle.css"]');
5261
if (defaultThemeLinkTag) {
5362
defaultThemeLinkTag.remove();

0 commit comments

Comments
 (0)