fix: ct testing support for node 17+ (#21430)

This commit is contained in:
Zachary Williams
2022-05-13 11:01:30 -05:00
committed by GitHub
parent d45c9f8e21
commit 0f786ab893
15 changed files with 104 additions and 95 deletions
+21 -8
View File
@@ -1,17 +1,30 @@
import systemTests from '../lib/system-tests'
function smokeTestDockerImage (dockerImage: string) {
systemTests.it(`can run in ${dockerImage}`, {
withBinary: true,
browser: 'electron',
dockerImage,
spec: 'test1.js',
specDir: 'tests',
project: 'todos',
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('e2e binary node versions', () => {
describe('binary node versions', () => {
[
'cypress/base:12',
'cypress/base:14',