Skip to content

Commit a5db874

Browse files
committed
add binary test
1 parent 5ef6bc1 commit a5db874

File tree

3 files changed

+88
-76
lines changed

3 files changed

+88
-76
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
import systemTests, { ItOptions } from '../lib/system-tests'
1+
// import systemTests, { ItOptions } from '../lib/system-tests'
22

3-
function smokeTestDockerImage (title: string, dockerImage: string, expectedExitCode: number, onRun?: ItOptions['onRun']) {
4-
systemTests.it(title, {
5-
withBinary: true,
6-
browser: 'electron',
7-
dockerImage,
8-
spec: 'test1.js',
9-
specDir: 'tests',
10-
project: 'todos',
11-
expectedExitCode,
12-
onRun,
13-
})
14-
}
3+
// function smokeTestDockerImage (title: string, dockerImage: string, expectedExitCode: number, onRun?: ItOptions['onRun']) {
4+
// systemTests.it(title, {
5+
// withBinary: true,
6+
// browser: 'electron',
7+
// dockerImage,
8+
// spec: 'test1.js',
9+
// specDir: 'tests',
10+
// project: 'todos',
11+
// expectedExitCode,
12+
// onRun,
13+
// })
14+
// }
1515

16-
describe('e2e binary CI environments', () => {
17-
smokeTestDockerImage(
18-
'bare node image fails (lacks xvfb)',
19-
'node:12', 1,
20-
async (exec) => {
21-
const { stdout } = await exec()
16+
// describe('e2e binary CI environments', () => {
17+
// smokeTestDockerImage(
18+
// 'bare node image fails (lacks xvfb)',
19+
// 'node:12', 1,
20+
// async (exec) => {
21+
// const { stdout } = await exec()
2222

23-
expect(stdout).to.include('Your system is missing the dependency: Xvfb')
24-
},
25-
)
23+
// expect(stdout).to.include('Your system is missing the dependency: Xvfb')
24+
// },
25+
// )
2626

27-
smokeTestDockerImage(
28-
'bare xvfb image fails',
29-
'cypressinternal/xvfb:12.13.0', 1,
30-
)
27+
// smokeTestDockerImage(
28+
// 'bare xvfb image fails',
29+
// 'cypressinternal/xvfb:12.13.0', 1,
30+
// )
3131

32-
smokeTestDockerImage(
33-
'ubuntu 16 passes',
34-
'cypress/base:ubuntu16-12.13.1', 0,
35-
)
32+
// smokeTestDockerImage(
33+
// 'ubuntu 16 passes',
34+
// 'cypress/base:ubuntu16-12.13.1', 0,
35+
// )
3636

37-
smokeTestDockerImage(
38-
'ubuntu 19 passes',
39-
'cypress/base:ubuntu19-node12.14.1', 0,
40-
)
41-
})
37+
// smokeTestDockerImage(
38+
// 'ubuntu 19 passes',
39+
// 'cypress/base:ubuntu19-node12.14.1', 0,
40+
// )
41+
// })
+12-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import systemTests from '../lib/system-tests'
1+
// import systemTests from '../lib/system-tests'
22

3-
describe('module API', () => {
4-
systemTests.it('can run module API Mocha spec', {
5-
timeout: 240000,
6-
dockerImage: 'cypress/base:12',
7-
withBinary: true,
8-
project: 'module-api',
9-
browser: 'electron',
10-
command: 'yarn',
11-
args: ['test'],
12-
})
13-
})
3+
// describe('module API', () => {
4+
// systemTests.it('can run module API Mocha spec', {
5+
// timeout: 240000,
6+
// dockerImage: 'cypress/base:12',
7+
// withBinary: true,
8+
// project: 'module-api',
9+
// browser: 'electron',
10+
// command: 'yarn',
11+
// args: ['test'],
12+
// })
13+
// })
+41-29
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
import systemTests from '../lib/system-tests'
22

3-
function smokeTestDockerImage (dockerImage: string) {
4-
context('e2e', () => {
5-
systemTests.it(`can run in ${dockerImage}`, {
6-
withBinary: true,
7-
browser: 'electron',
8-
dockerImage,
9-
spec: 'test1.js',
10-
specDir: 'tests',
11-
project: 'todos',
12-
})
13-
})
3+
// function smokeTestDockerImage (dockerImage: string) {
4+
// context('e2e', () => {
5+
// systemTests.it(`can run in ${dockerImage}`, {
6+
// withBinary: true,
7+
// browser: 'electron',
8+
// dockerImage,
9+
// spec: 'test1.js',
10+
// specDir: 'tests',
11+
// project: 'todos',
12+
// })
13+
// })
1414

15-
context('component', () => {
16-
systemTests.it(`can run in ${dockerImage}`, {
17-
withBinary: true,
18-
browser: 'electron',
19-
dockerImage,
20-
testingType: 'component',
21-
project: 'simple-ct',
22-
spec: 'src/simple_passing_component.cy.js',
23-
})
24-
})
25-
}
15+
// context('component', () => {
16+
// systemTests.it(`can run in ${dockerImage}`, {
17+
// withBinary: true,
18+
// browser: 'electron',
19+
// dockerImage,
20+
// testingType: 'component',
21+
// project: 'simple-ct',
22+
// spec: 'src/simple_passing_component.cy.js',
23+
// })
24+
// })
25+
// }
2626

27-
describe('binary node versions', () => {
28-
[
29-
'cypress/base:12',
30-
'cypress/base:14',
31-
'cypress/base:16.14.2',
32-
'cypress/base:17.3.0',
33-
].forEach(smokeTestDockerImage)
27+
// describe('binary node versions', () => {
28+
// [
29+
// 'cypress/base:12',
30+
// 'cypress/base:14',
31+
// 'cypress/base:16.14.2',
32+
// 'cypress/base:17.3.0',
33+
// ].forEach(smokeTestDockerImage)
34+
// })
35+
36+
describe('type: module', () => {
37+
systemTests.it('can run in cypress/base:16.17.0', {
38+
withBinary: true,
39+
project: 'config-cjs-and-esm/config-with-ts-module',
40+
dockerImage: 'cypress/base:16.17.0',
41+
testingType: 'e2e',
42+
spec: 'app.cy.js',
43+
browser: 'electron',
44+
expectedExitCode: 0,
45+
})
3446
})

0 commit comments

Comments
 (0)