Skip to content

Commit a745285

Browse files
Dev ng use standalone 2 (#956)
* fix test increase screenshot comparing threshold
1 parent 4b191fe commit a745285

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
267267

268268
it('Create account page', async() => {
269269
// NOTE: Test only once
270-
// TODO: investigate failure in material
271-
if(!isDefaultLayout || theme === 'material') {
270+
if(!isDefaultLayout) {
272271
return;
273272
}
274273

@@ -284,8 +283,13 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
284283
await page.waitForTimeout(3000);
285284
const image = await takeScreenshot();
286285

286+
const isProblemTest = env.engine.startsWith('nextjs')
287+
&& theme === 'material'
288+
&& viewportName === 'large'
289+
&& layout === 'side-nav-outer-toolbar';
290+
287291
compareSnapshot(image, 'create-account', {
288-
threshold: 0.05
292+
threshold: isProblemTest ? 0.025 : customConfig.threshold
289293
});
290294
});
291295

0 commit comments

Comments
 (0)