Skip to content

Commit 2af77a6

Browse files
Revert "revert wip changes"
This reverts commit 3ebad54.
1 parent 3ebad54 commit 2af77a6

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

.github/workflows/applications.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ jobs:
6666
env:
6767
LAUNCH_BROWSER: true
6868
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
69-
run: npm run test-template -- -- -e ${{ matrix.APPROACH }} ${{ env.DEPS_VERSION_TAG_PARAM }}
70-
timeout-minutes: 30
69+
run: |
70+
pwd
71+
npm run test-template -- -- -e ${{ matrix.APPROACH }} ${{ env.DEPS_VERSION_TAG_PARAM }}
72+
73+
timeout-minutes: 10
7174

7275
- name: Archive artifacts
7376
if: ${{ failure() }}
@@ -78,6 +81,7 @@ jobs:
7881
test-results.xml
7982
packages/devextreme-cli/testing/__tests__/__diff_snapshots__
8083
packages/devextreme-cli/testing/sandbox/logs
84+
packages/devextreme-cli/testing/sandbox/angular/my-app/dist/my-app
8185
8286
merge-artifacts:
8387
runs-on: ubuntu-latest

packages/devextreme-cli/src/utility/run-command.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module.exports = function(commandName, args = [], customConfig = {}) {
2121

2222
return new Promise((resolve, reject) => {
2323
proc.on('exit', (code) => {
24+
if(code) {
25+
console.log('----error runCommand------>', code);
26+
}
2427
code ? reject(code) : resolve({ proc });
2528
});
2629

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
157157
}
158158

159159
describe(`${viewportName}`, () => {
160-
it('Home view', async() => {
160+
fit('Home view', async() => {
161161
await openPage(appUrl, { timeout: 5000 });
162162
await page.reload([{
163163
waitUntil: {
@@ -180,8 +180,10 @@ module.exports = (env, { port = 8080, urls = {} } = {}) => {
180180
compareSnapshot(image, 'home');
181181
});
182182

183-
it('Profile view', async() => {
183+
fit('Profile view', async() => {
184+
console.log('---START TEST------->', getPageURL('profile'));
184185
await openPage(getPageURL('profile'));
186+
185187
await page.waitForTimeout(3000);
186188

187189
const image = await takeScreenshot();

packages/devextreme-cli/testing/constants.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,30 @@ exports.viewports = {
1414
width: 1280,
1515
height: 1024,
1616
},
17-
/* small: {
18-
width: 667,
19-
height: 375,
20-
isMobile: true,
21-
hasTouch: true,
22-
isLandscape: true
23-
},
24-
xsmall: {
25-
width: 320,
26-
height: 568,
27-
isMobile: true,
28-
hasTouch: true,
29-
}*/
17+
/* small: {
18+
width: 667,
19+
height: 375,
20+
isMobile: true,
21+
hasTouch: true,
22+
isLandscape: true
23+
},
24+
xsmall: {
25+
width: 320,
26+
height: 568,
27+
isMobile: true,
28+
hasTouch: true,
29+
}*/
3030
};
3131

3232
exports.themes = {
33-
/* material: 'material.blue',
34-
generic: 'generic',*/
35-
fluent: 'fluent.blue'
33+
material: 'material.blue',
34+
/* generic: 'generic',
35+
fluent: 'fluent.blue'*/
3636
};
3737

3838
exports.layouts = [
3939
'side-nav-outer-toolbar',
40-
'side-nav-inner-toolbar'
40+
/* 'side-nav-inner-toolbar'*/
4141
];
4242

4343
exports.swatchModes = {

packages/devextreme-cli/testing/creating.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const args = minimist(process.argv.slice(2), {
2222
try {
2323
await env.createApp(depsVersionTag);
2424
} catch(e) {
25+
console.log('--------ERROR-->', e);
2526
process.exit(1);
2627
}
2728
});

0 commit comments

Comments
 (0)