test(all): inject test styles on flag

This commit is contained in:
Cam Wiegert
2018-10-11 15:13:23 -05:00
parent 3466e15f5b
commit ae3271f2d7
228 changed files with 241 additions and 229 deletions

View File

@@ -1,3 +0,0 @@
:root {
--ion-font-family: Arial;
}

View File

@@ -0,0 +1,15 @@
{
const getStyles = () => {
const tag = document.createElement('style');
tag.textContent = `
:root {
--ion-font-family: Arial;
}
`;
return tag;
};
if (window.location.search.indexOf('ionic:_testing=true') > -1) {
document.head.appendChild(getStyles());
}
}