Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Default Run Config when enabled #5

Open
bshostak opened this issue Apr 29, 2022 · 8 comments
Open

[Question] Default Run Config when enabled #5

bshostak opened this issue Apr 29, 2022 · 8 comments

Comments

@bshostak
Copy link

Hi, leaving this question here for now.

When using Maestro and having the plugin enabled, it works great so far with running playwright. However, if I switch to another project within intellij that I used a different runner for (say protractor), it starts defaulting those test runs to the playwright maestro runner instead.

Is there anyway to fix that besides disabling Maestro plugin?

@mbolotov
Copy link
Owner

Hi Brian,
Please make sure you have this option disabled in the settings:
image

@bshostak
Copy link
Author

bshostak commented May 2, 2022

@mbolotov thank you! I believe this was off by default. I've double checked to make sure and will let you know if this happens again!

@bshostak bshostak closed this as completed May 2, 2022
@bshostak
Copy link
Author

bshostak commented May 3, 2022

@mbolotov So with this option still disabled, i'm seeing the same behavior. I have one window of intellij running a project with playwright and the Maestro runner works fine. I have another intellij window open running a project with protractor. If I run a test in the framework with protractor, it wants to default to the playwright runner and will not let me change runner to what I previously used. If I disable Maestro, restart intellij, then that behavior doesn't happen and it runs via the protractor runner as expected.

@bshostak bshostak reopened this May 3, 2022
@rickirunge
Copy link

Any updates on this?
Seems like the "Supress other suggested Run Config..." is always enabled - no matter if the checkbox i marked or not.

Only way to get other run configs (Jest, Cypress) back is by disabling Maestro plugin and restart IntelliJ.

@rickirunge
Copy link

This looks to be related to #1 which I just tried out, but still not ala to get it to wook, without diasabling Maesto plugin.

@mbolotov
Copy link
Owner

mbolotov commented Jun 30, 2022

I'm sorry, I missed that this ticket was reopened.
Could anyone provide a sample project to reproduce the problem?
I tried those two:

  1. https://github.com/mbolotov/playwright-example (contains PW, Cypress and Protractor cases)
  2. https://github.com/qualityshepherd/protractor-example.git

Neither in separate projects, nor in single project, I see no problems. IDE suggests PW configurations only for PW cases, the same for Cypress (with the appropriate plugin installed). And it suggests both Jest and Mocha for a Protactor case.

@rickirunge
Copy link

rickirunge commented Jul 20, 2022

Just found that the problem might only be related to the run icon on the top level describe() in a Jest file.
Seems like I get the multiple choise of runners on test() (or alias id() ) and nested describe()

@vekunz
Copy link

vekunz commented Dec 1, 2022

I have the same problem with Vitest. We have some projects with Playwright and some others with Vitest. If I use the run icon on the top-level describe(), Maestro starts Playwright. If I right-click in the editor or the file tree and click the 'Run' context menu option, Maestro wants to run Playwright also.

I can reproduce it with the basic example of Vitest https://github.com/vitest-dev/vitest/tree/main/examples/basic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants