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

Integrate cypress / synpress #7

Open
huseyindeniz opened this issue Sep 23, 2023 · 7 comments
Open

Integrate cypress / synpress #7

huseyindeniz opened this issue Sep 23, 2023 · 7 comments
Labels
blocked enhancement New feature or request help wanted Extra attention is needed

Comments

@huseyindeniz
Copy link
Owner

If it's possible, integrate cypress/synpress

@huseyindeniz huseyindeniz added the enhancement New feature or request label Sep 23, 2023
@huseyindeniz
Copy link
Owner Author

huseyindeniz commented Oct 22, 2023

I found this great example but couldn't make it work in my template. => https://github.com/YakovL/synpress-cucumber
I'll try later.
fyi: @YakovL

@huseyindeniz huseyindeniz self-assigned this Feb 2, 2024
@YakovL
Copy link

YakovL commented Feb 3, 2024

Hi @huseyindeniz if you specify what went wrong, I could be able to help. Note that Cypress watch mode still doesn't work with Synpress (not sure if it will get changed with the upcoming Sypress 4, though), there are some issues with it (my not-so-consistent notes can be found here), even though a couple of fixes I've proposed were merged already. But aside the watch mode, I was able to combine Synpress + Cucumber (not sure if the latest setup is in the repo, though)

@YakovL
Copy link

YakovL commented Feb 3, 2024

PS a side note: you may want to use Vitest instead of Jest for better performance of tests

@huseyindeniz
Copy link
Owner Author

hi @YakovL thank you very much for the update. I checked my local branches and found the branch that I tested this integration. I'll push the branch later after I check if I put any secret into code accidentally or not :D

There are 2 issues when I run the cypress.

First one is, during the startup, Metamask installation can not be completed. I needed to do it manually in the test browser instance. It shows Metamask installed but can not be configured error at this phase. It shows this warning with a reload extension button but when you click it nothing changes.

After completing the Metamask setup manually and trigger the test manually I see this:

image

But it's better pushing this branch, so if you could look at that branch in some time, maybe you can identify the problem quickly. Thanks again.

@YakovL
Copy link

YakovL commented Feb 4, 2024

during the startup, Metamask installation can not be completed

is it stuck on the password typing step? Does it show that the setup metamask helper was called twice?

@huseyindeniz
Copy link
Owner Author

I can only see the following screen right after running it:

image

And when I click the Metamask icon, it shows it's not logged in.

@huseyindeniz huseyindeniz added the help wanted Extra attention is needed label Feb 24, 2024
@huseyindeniz huseyindeniz removed their assignment Mar 6, 2024
@huseyindeniz
Copy link
Owner Author

it seems synpress supports playwright. Consider using playwright instead of cypress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants