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

feat: init support for e2e libs with Playwright #131

Merged
merged 8 commits into from
Jun 22, 2023

Conversation

KhaledEmaraDev
Copy link
Contributor

  • Abstract Middleware logic from dependency on Cypress
  • Add support for Playwright

Fixes #116

Copy link
Collaborator

@grantspeelman grantspeelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, looks very useful and Great Work so far 👍🏽

Left a few suggestions
can you also please update the README.md and CHANGELOG.md

lib/cypress_on_rails/configuration.rb Show resolved Hide resolved
lib/cypress_on_rails/middleware.rb Show resolved Hide resolved
lib/cypress_on_rails/version.rb Outdated Show resolved Hide resolved
lib/cypress_on_rails/command_executor.rb Outdated Show resolved Hide resolved
lib/generators/cypress_on_rails/install_generator.rb Outdated Show resolved Hide resolved
Comment on lines +21 to +22
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a sensible default?

Abstract Middleware logic from dependency on Cypress
Add support for Playwright

Signed-off-by: Khaled Emara <[email protected]>
Signed-off-by: Khaled Emara <[email protected]>
@KhaledEmaraDev KhaledEmaraDev force-pushed the playwright-support branch 2 times, most recently from f4c2c0b to 3f0afb2 Compare May 31, 2023 18:56
Signed-off-by: Khaled Emara <[email protected]>
@KhaledEmaraDev KhaledEmaraDev force-pushed the playwright-support branch 5 times, most recently from 5e82375 to 67502f4 Compare May 31, 2023 19:43
Signed-off-by: Khaled Emara <[email protected]>
@KhaledEmaraDev
Copy link
Contributor Author

@grantspeelman @alexeyr-ci I think the PR is ready.

It passes the CI for two envs but not the third for a weird reason.
Will investigate further tomorrow.

Copy link
Collaborator

@grantspeelman grantspeelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Work, looking real good 👍🏽

One last suggestion

lib/cypress_on_rails/configuration.rb Outdated Show resolved Hide resolved
Co-authored-by: Grant Petersen-Speelman <[email protected]>
Signed-off-by: Khaled Emara <[email protected]>
Copy link
Collaborator

@grantspeelman grantspeelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well Done and Thank you 👍🏽

@grantspeelman grantspeelman merged commit 981f8e8 into shakacode:master Jun 22, 2023
@tvongaza
Copy link

Amazing, nice work @KhaledEmaraDev !

const appVcrEjectCassette = async () => {
const context = await contextPromise;

const response = await context.post("/__cypress__/vcr/eject");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be

const response = await context.post("/__e2e__/vcr/eject");

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. Don't know how I missed it. Will create a PR for it.

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

Successfully merging this pull request may close these issues.

Consider Playwright support (or playwright-on-rails)
5 participants