mbolotov / intellij-cypress

IntelliJ-Cypress plugin: https://plugins.jetbrains.com/plugin/13819-intellij-cypress Pro version: https://plugins.jetbrains.com/plugin/13987-cypress-support-pro
MIT License
35 stars 5 forks source link

Test run configurations not available form the IntelliJ context menus #119

Closed e-arroyo closed 1 year ago

e-arroyo commented 1 year ago

I am using the Pro version in trial mode.

The context menus from the file-view or code-view do not show the cypress options. It assumes Mocha. This is cumbersome because the only way to run a Cypress test is by manually creating a new configuration whenever I want to run a test.

IntelliJ Version IntelliJ IDEA 2021.2.3 (Ultimate Edition) Build #IU-212.5457.46, built on October 12, 2021

Cypress Support Pro mbolotov 2.5.1

System Apple M1 macOS Ventura 13.2.1

mbolotov commented 1 year ago

Are you sure about 2.5.1 version of the plugin? The current version is 3.6.1. Anyway, it would be nice to have a sample project to reproduce the issue. Can you provide it? If not, can you collect the debug log data and send it to me?

e-arroyo commented 1 year ago

I have updated my IntelliJ to version 2022.3.3

Also updated the plug-in yo version; 3.6

That did not fix anything. I still can’t get the context menus and I also noticed that the CY code completion doesn’t work either.

My project is extremely simple, I’m testing the plug-in either the tests generated by Cypress UI when initializing a new project.

Please advise if there is smithing else I can try. I really would like to get this to work before my trial period expires.

Sent from my iPhone

On Mar 11, 2023, at 1:24 AM, Mikhail Bolotov @.***> wrote:



Are you sure about 2.5.1 version of the plugin? The current version is 3.6.1. Anyway, it would be nice to have a sample project to reproduce the issue. Can you provide it? If not, can you collect the debug log datahttps://github.com/mbolotov/intellij-cypress/issues/104#issuecomment-1247041722 and send it to me?

— Reply to this email directly, view it on GitHubhttps://github.com/mbolotov/intellij-cypress/issues/119#issuecomment-1464840702, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB3JOWA4VDRHKQZXPRHT3WTW3QLB7ANCNFSM6AAAAAAVW57LAE. You are receiving this because you authored the thread.Message ID: @.***>

mbolotov commented 1 year ago

Please check the if the plugin is enabled. It may be deactivated due to several reasons: image

kenparker commented 1 year ago

I actually have the same problem. I have the base version 1.4.2

It looks like that the default for new configurations is Node and not Cypress

mbolotov commented 1 year ago

@kenparker, please provide a sample project to reproduce the problem

kenparker commented 1 year ago

hier https://github.com/kenparker/CypressTest

mbolotov commented 1 year ago

hier https://github.com/kenparker/CypressTest

there is no package.json there, so this is not a valid Cypress project. Please install the Cypress correctly.

kenparker commented 1 year ago

hier https://github.com/kenparker/CypressTest

there is no package.json there, so this is not a valid Cypress project. Please install the Cypress correctly.

the package.json was not added to git, now it is

mbolotov commented 1 year ago

it's still not a valid cypress project because it does not contain a cypress configuration file. as soon as I added it, the plugin started creating a valid run configuration.

kenparker commented 1 year ago

it's still not a valid cypress project because it does not contain a cypress configuration file. as soon as I added it, the plugin started creating a valid run configuration.

thanks for your quick feedback.

I have a cypress.config.js file in the directory, looking like: `const { defineConfig } = require("cypress");

module.exports = defineConfig({ e2e: { setupNodeEvents(on, config) { // implement node event listeners here }, }, });`

kenparker commented 1 year ago

it's still not a valid cypress project because it does not contain a cypress configuration file. as soon as I added it, the plugin started creating a valid run configuration.

how is your config file looking like? thanks

mbolotov commented 1 year ago

A default config that is automatically created when you run npx cypress open for the first time: cypress.config.js:

const { defineConfig } = require("cypress");

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      // implement node event listeners here
    },
  },
});
mbolotov commented 1 year ago

@kenparker so can you create a cypress run configuration for a test now?

kenparker commented 1 year ago

Hi, I have uninstalled the plugin and then installed again and everything seems fine Thanks for support

mbolotov commented 1 year ago

everything seems fine

I'm glad to hear that.

mbolotov commented 1 year ago

@e-arroyo do you still experience the problem?

e-arroyo commented 1 year ago

Interestingly enough, without me doing anything, it just started working.

I don’t know what changed, I’m not sure if I installed any updates to either IntelliJ or the plug-in, but I’m happy that it’s working.

With this working I will be glad to buy the subscription once my trial ends.

Thanks for following up on my request.

Sent from my iPhone

On Mar 17, 2023, at 6:09 AM, Mikhail Bolotov @.***> wrote:



@e-arroyohttps://github.com/e-arroyo do you still experience the problem?

— Reply to this email directly, view it on GitHubhttps://github.com/mbolotov/intellij-cypress/issues/119#issuecomment-1473594623, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB3JOWHMUSWWH7WGIXJJNYDW4QZ6XANCNFSM6AAAAAAVW57LAE. You are receiving this because you were mentioned.Message ID: @.***>