Skip to content

Commit c0e4475

Browse files
Revert "+ visibility"
This reverts commit aa3cdb3.
1 parent aa3cdb3 commit c0e4475

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

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

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,17 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
169169
await openPage(getPageURL('profile'));
170170

171171
await new Promise(r => setTimeout(r, 3000));
172-
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)', {
173-
visible: true
174-
});
172+
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)');
175173

176174
const image = await takeScreenshot();
177175

178176
compareSnapshot(image, 'profile');
179177

180178
await switchTheme();
181-
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)', {
182-
visible: true
183-
});
179+
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)');
184180
await compareThemeModeSnapshot('profile', 'dark');
185181
await switchTheme();
186-
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)', {
187-
visible: true
188-
});
182+
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)');
189183

190184
await compareThemeModeSnapshot('profile', 'light');
191185
});
@@ -217,9 +211,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
217211

218212
// NOTE: Wait for animation complete
219213
await new Promise(r => setTimeout(r, 3000));
220-
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)', {
221-
visible: true
222-
});
214+
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)');
223215
const image = await takeScreenshot();
224216

225217
compareSnapshot(image, 'toggle');
@@ -231,9 +223,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
231223
await page.click(isCompact ? '.dx-dropdownmenu-button' : '.user-button');
232224
// NOTE: Wait for animation complete
233225
await new Promise(r => setTimeout(r, 2000));
234-
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)', {
235-
visible: true
236-
});
226+
await page.waitForSelector('.dx-toolbar-item div::-p-text(My App)');
237227
const image = await takeScreenshot({
238228
clip: {
239229
x: viewport.width - 300,

0 commit comments

Comments
 (0)