mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-02 04:29:55 -06:00
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
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',
|
|
})
|
|
})
|
|
|
|
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:20.12.2',
|
|
'cypress/base:20.18.0',
|
|
'cypress/base:22.0.0',
|
|
'cypress/base:22.7.0',
|
|
'cypress/base:22.12.0',
|
|
'cypress/base:22.14.0',
|
|
'cypress/base:24.0.0',
|
|
].forEach(smokeTestDockerImage)
|
|
})
|
|
|
|
describe('type: module', () => {
|
|
[
|
|
'cypress/base:20.12.2',
|
|
'cypress/base:20.18.0',
|
|
'cypress/base:22.0.0',
|
|
'cypress/base:22.7.0',
|
|
'cypress/base:22.12.0',
|
|
'cypress/base:22.14.0',
|
|
'cypress/base:24.0.0',
|
|
].forEach((dockerImage) => {
|
|
systemTests.it(`can run in ${dockerImage}`, {
|
|
withBinary: true,
|
|
project: 'config-cjs-and-esm/config-with-ts-module',
|
|
dockerImage,
|
|
testingType: 'e2e',
|
|
spec: 'app.cy.js',
|
|
browser: 'electron',
|
|
expectedExitCode: 0,
|
|
})
|
|
})
|
|
})
|