-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ef6bc1
commit a5db874
Showing
3 changed files
with
88 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import systemTests, { ItOptions } from '../lib/system-tests' | ||
// import systemTests, { ItOptions } from '../lib/system-tests' | ||
|
||
function smokeTestDockerImage (title: string, dockerImage: string, expectedExitCode: number, onRun?: ItOptions['onRun']) { | ||
systemTests.it(title, { | ||
withBinary: true, | ||
browser: 'electron', | ||
dockerImage, | ||
spec: 'test1.js', | ||
specDir: 'tests', | ||
project: 'todos', | ||
expectedExitCode, | ||
onRun, | ||
}) | ||
} | ||
// function smokeTestDockerImage (title: string, dockerImage: string, expectedExitCode: number, onRun?: ItOptions['onRun']) { | ||
// systemTests.it(title, { | ||
// withBinary: true, | ||
// browser: 'electron', | ||
// dockerImage, | ||
// spec: 'test1.js', | ||
// specDir: 'tests', | ||
// project: 'todos', | ||
// expectedExitCode, | ||
// onRun, | ||
// }) | ||
// } | ||
|
||
describe('e2e binary CI environments', () => { | ||
smokeTestDockerImage( | ||
'bare node image fails (lacks xvfb)', | ||
'node:12', 1, | ||
async (exec) => { | ||
const { stdout } = await exec() | ||
// describe('e2e binary CI environments', () => { | ||
// smokeTestDockerImage( | ||
// 'bare node image fails (lacks xvfb)', | ||
// 'node:12', 1, | ||
// async (exec) => { | ||
// const { stdout } = await exec() | ||
|
||
expect(stdout).to.include('Your system is missing the dependency: Xvfb') | ||
}, | ||
) | ||
// expect(stdout).to.include('Your system is missing the dependency: Xvfb') | ||
// }, | ||
// ) | ||
|
||
smokeTestDockerImage( | ||
'bare xvfb image fails', | ||
'cypressinternal/xvfb:12.13.0', 1, | ||
) | ||
// smokeTestDockerImage( | ||
// 'bare xvfb image fails', | ||
// 'cypressinternal/xvfb:12.13.0', 1, | ||
// ) | ||
|
||
smokeTestDockerImage( | ||
'ubuntu 16 passes', | ||
'cypress/base:ubuntu16-12.13.1', 0, | ||
) | ||
// smokeTestDockerImage( | ||
// 'ubuntu 16 passes', | ||
// 'cypress/base:ubuntu16-12.13.1', 0, | ||
// ) | ||
|
||
smokeTestDockerImage( | ||
'ubuntu 19 passes', | ||
'cypress/base:ubuntu19-node12.14.1', 0, | ||
) | ||
}) | ||
// smokeTestDockerImage( | ||
// 'ubuntu 19 passes', | ||
// 'cypress/base:ubuntu19-node12.14.1', 0, | ||
// ) | ||
// }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import systemTests from '../lib/system-tests' | ||
// import systemTests from '../lib/system-tests' | ||
|
||
describe('module API', () => { | ||
systemTests.it('can run module API Mocha spec', { | ||
timeout: 240000, | ||
dockerImage: 'cypress/base:12', | ||
withBinary: true, | ||
project: 'module-api', | ||
browser: 'electron', | ||
command: 'yarn', | ||
args: ['test'], | ||
}) | ||
}) | ||
// describe('module API', () => { | ||
// systemTests.it('can run module API Mocha spec', { | ||
// timeout: 240000, | ||
// dockerImage: 'cypress/base:12', | ||
// withBinary: true, | ||
// project: 'module-api', | ||
// browser: 'electron', | ||
// command: 'yarn', | ||
// args: ['test'], | ||
// }) | ||
// }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,46 @@ | ||
import systemTests from '../lib/system-tests' | ||
|
||
function smokeTestDockerImage (dockerImage: string) { | ||
context('e2e', () => { | ||
systemTests.it(`can run in ${dockerImage}`, { | ||
withBinary: true, | ||
browser: 'electron', | ||
dockerImage, | ||
spec: 'test1.js', | ||
specDir: 'tests', | ||
project: 'todos', | ||
}) | ||
}) | ||
// function smokeTestDockerImage (dockerImage: string) { | ||
// context('e2e', () => { | ||
// systemTests.it(`can run in ${dockerImage}`, { | ||
// withBinary: true, | ||
// browser: 'electron', | ||
// dockerImage, | ||
// spec: 'test1.js', | ||
// specDir: 'tests', | ||
// project: 'todos', | ||
// }) | ||
// }) | ||
|
||
context('component', () => { | ||
systemTests.it(`can run in ${dockerImage}`, { | ||
withBinary: true, | ||
browser: 'electron', | ||
dockerImage, | ||
testingType: 'component', | ||
project: 'simple-ct', | ||
spec: 'src/simple_passing_component.cy.js', | ||
}) | ||
}) | ||
} | ||
// context('component', () => { | ||
// systemTests.it(`can run in ${dockerImage}`, { | ||
// withBinary: true, | ||
// browser: 'electron', | ||
// dockerImage, | ||
// testingType: 'component', | ||
// project: 'simple-ct', | ||
// spec: 'src/simple_passing_component.cy.js', | ||
// }) | ||
// }) | ||
// } | ||
|
||
describe('binary node versions', () => { | ||
[ | ||
'cypress/base:12', | ||
'cypress/base:14', | ||
'cypress/base:16.14.2', | ||
'cypress/base:17.3.0', | ||
].forEach(smokeTestDockerImage) | ||
// describe('binary node versions', () => { | ||
// [ | ||
// 'cypress/base:12', | ||
// 'cypress/base:14', | ||
// 'cypress/base:16.14.2', | ||
// 'cypress/base:17.3.0', | ||
// ].forEach(smokeTestDockerImage) | ||
// }) | ||
|
||
describe('type: module', () => { | ||
systemTests.it('can run in cypress/base:16.17.0', { | ||
withBinary: true, | ||
project: 'config-cjs-and-esm/config-with-ts-module', | ||
dockerImage: 'cypress/base:16.17.0', | ||
testingType: 'e2e', | ||
spec: 'app.cy.js', | ||
browser: 'electron', | ||
expectedExitCode: 0, | ||
}) | ||
}) |