Skip to content

Commit 91cec88

Browse files
committed
modified before clause
1 parent 65d2eb2 commit 91cec88

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

packages/devextreme-cli/testing/app-template.test.shared.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,6 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
1818
...urls,
1919
};
2020

21-
beforeEach(async () => {
22-
await page.addStyleTag({
23-
content: `
24-
* {
25-
-webkit-font-smoothing: auto !important;
26-
-moz-osx-font-smoothing: auto !important;
27-
text-rendering: optimizeSpeed !important;
28-
}
29-
`
30-
});
31-
});
32-
3321
describe(`${env.engine} app-template`, () => {
3422
Object.keys(themes).forEach((theme) => {
3523
describe(theme, () => {
@@ -59,6 +47,15 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
5947
timeout: 30000,
6048
interval: 100
6149
});
50+
await page.addStyleTag({
51+
content: `
52+
* {
53+
-webkit-font-smoothing: auto !important;
54+
-moz-osx-font-smoothing: auto !important;
55+
text-rendering: optimizeSpeed !important;
56+
}
57+
`
58+
});
6259
} catch(e) {
6360
// NOTE jest@27 will fail test, but jest@26 - not
6461
throw new Error(e);

0 commit comments

Comments
 (0)