Problems with Cypress 9 #1863

Closed
opened 2021-11-17 13:18:27 +00:00 by dpschen · 5 comments
Member

See: https://github.com/4teamwork/cypress-drag-drop/issues/84

Is affecting me because I got an error from the cypress/plugins/index.js file

See: https://github.com/4teamwork/cypress-drag-drop/issues/84 Is affecting me because I got an error from the `cypress/plugins/index.js` file
Author
Member

Now it does support cypress 9. But I still got the same error when I update.
Don't really know what to do with this info because it's basically none:

yarn test:frontend
yarn run v1.22.17
$ cypress run

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        9.1.0                                                                          │
  │ Browser:        Electron 94 (headless)                                                         │
  │ Node Version:   v17.0.1 (/Users/dpschen/.nvm/versions/node/v17.0.1/bin/node)                   │
  │ Specs:          12 found (list/list.spec.js, list/namespaces.spec.js, misc/editor.spec.js, mis │
  │                 c/home.spec.js, misc/menu.spec.js, sharing/linkShare.spec.js, sharing/team.spe │
  │                 c.js, task/task.spec.js, user/login.spec.js, user/logout.spec.js, user/registr │
  │                 ation.spec.js, user/set...)                                                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  list/list.spec.js                                                              (1 of 12)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (`/Users/dpschen/Creative Coding/vikunja/frontend/cypress/plugins/index.js`)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        0                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     list/list.spec.js                                                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  list/namespaces.spec.js                                                        (2 of 12)

...then it doesn't do anything => have to stop it.

Running npx browserslist@latest --update-db doesn't change the result.

The mentioned plugins file is basically empty as you know:

/// <reference types="cypress" />
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************

// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)

/**
 * @type {Cypress.PluginConfig}
 */
// eslint-disable-next-line no-unused-vars
module.exports = (on, config) => {
  // `on` is used to hook into various events Cypress emits
  // `config` is the resolved Cypress config
}

Deleting it triggers the same warning and the file just gets created again.

Not sure if relevant, but I found it interesting that cypress runs with node 17 despite node 16 being installed.
I changed and installed system to node 17 but that didn't change the result.

Now it does support cypress 9. But I still got the same error when I update. Don't really know what to do with this info because it's basically none: ```sh yarn test:frontend yarn run v1.22.17 $ cypress run ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 9.1.0 │ │ Browser: Electron 94 (headless) │ │ Node Version: v17.0.1 (/Users/dpschen/.nvm/versions/node/v17.0.1/bin/node) │ │ Specs: 12 found (list/list.spec.js, list/namespaces.spec.js, misc/editor.spec.js, mis │ │ c/home.spec.js, misc/menu.spec.js, sharing/linkShare.spec.js, sharing/team.spe │ │ c.js, task/task.spec.js, user/login.spec.js, user/logout.spec.js, user/registr │ │ ation.spec.js, user/set...) │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: list/list.spec.js (1 of 12) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating The following error was thrown by a plugin. We stopped running your tests because a plugin crashed. Please check your plugins file (`/Users/dpschen/Creative Coding/vikunja/frontend/cypress/plugins/index.js`) (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 0 │ │ Passing: 0 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 0 │ │ Video: false │ │ Duration: 0 seconds │ │ Spec Ran: list/list.spec.js │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: list/namespaces.spec.js (2 of 12) ``` ...then it doesn't do anything => have to stop it. Running `npx browserslist@latest --update-db` doesn't change the result. The mentioned plugins file is basically empty as you know: ```js /// <reference types="cypress" /> // *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configuration option. // // You can read more here: // https://on.cypress.io/plugins-guide // *********************************************************** // This function is called when a project is opened or re-opened (e.g. due to // the project's config changing) /** * @type {Cypress.PluginConfig} */ // eslint-disable-next-line no-unused-vars module.exports = (on, config) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config } ``` Deleting it triggers the same warning and the file just gets created again. Not sure if relevant, but I found it interesting that cypress runs with node 17 despite node 16 being installed. I changed and installed system to node 17 but that didn't change the result.
dpschen changed title from cypress-drag-drop doesn't support cypress 9 to Problems with Cypress 9 2021-11-26 13:05:27 +00:00
Owner

@dpschen Does this happen in the CI as well?

@dpschen Does this happen in the CI as well?
Author
Member

No only local :/

No only local :/
Author
Member
Seems to be fixed in Cypress 9.1.1: - https://docs.cypress.io/guides/references/changelog#9-1-1 - https://github.com/cypress-io/cypress/issues/18914
Author
Member

Merged in b03d5d80cd

Merged in b03d5d80cdbfbc35b2a50d8ac9105b536e697eba
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1863
No description provided.