mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
7c339d41c8
* develop: (52 commits) feat: use hoisted yarn install in binary build (#17285) fix: compile npm packages for node 12 (#18989) fix: show call count even if `cy.stub().log(false)`. (#18907) chore: Update TypeScript to 4.4.4 (#18930) fix: wrap playground selectors in double quotes if not included (#18442) fix: flaky settings_spec test (#18979) chore: Update Chrome (stable) to 96.0.4664.45 (#18931) fix: Loading of specs with % in the filename (#18877) chore: refactor `create` into class `$Cy` (#18715) chore: Update Chrome (beta) to 96.0.4664.45 (#18891) fix: flaky `system-tests-firefox` job (#18848) chore: release @cypress/webpack-preprocessor-v5.10.0 chore: release @cypress/vue-v3.0.5 chore: release @cypress/schematic-v1.6.0 chore: release create-cypress-tests-v1.2.0 release 9.0.0 feat: ensure major release have conduit app wait on localhost:3000 fix install-required-node use --legacy-peer-deps ...
58 lines
1.5 KiB
JavaScript
58 lines
1.5 KiB
JavaScript
const systemTests = require('../lib/system-tests').default
|
|
const Fixtures = require('../lib/fixtures')
|
|
|
|
describe('e2e specs', () => {
|
|
systemTests.setup()
|
|
|
|
it('failing when no specs found', function () {
|
|
return systemTests.exec(this, {
|
|
config: { integrationFolder: 'cypress/specs' },
|
|
testingType: 'e2e',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
})
|
|
|
|
it('failing when no spec pattern found', function () {
|
|
return systemTests.exec(this, {
|
|
spec: 'cypress/integration/**notfound**',
|
|
testingType: 'e2e',
|
|
snapshot: true,
|
|
expectedExitCode: 1,
|
|
})
|
|
})
|
|
|
|
// @see https://github.com/cypress-io/cypress/issues/14226
|
|
it('handles the same integration and fixtures folders', function () {
|
|
const project = Fixtures.projectPath('same-fixtures-integration-folders')
|
|
|
|
return systemTests.exec(this, {
|
|
project,
|
|
testingType: 'e2e',
|
|
snapshot: false,
|
|
expectedExitCode: 0,
|
|
})
|
|
})
|
|
|
|
it('handles the fixtures folder being the subfolder of integration', function () {
|
|
const project = Fixtures.projectPath('fixture-subfolder-of-integration')
|
|
|
|
return systemTests.exec(this, {
|
|
project,
|
|
testingType: 'e2e',
|
|
snapshot: false,
|
|
expectedExitCode: 0,
|
|
})
|
|
})
|
|
|
|
it('handles specs with special characters in the file name', function () {
|
|
const project = Fixtures.projectPath('spec-name-special-characters')
|
|
|
|
return systemTests.exec(this, {
|
|
project,
|
|
snapshot: false,
|
|
expectedExitCode: 0,
|
|
})
|
|
})
|
|
})
|