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

migrate integration tests to playwright #650

Merged
merged 25 commits into from
Jul 21, 2022
Merged

migrate integration tests to playwright #650

merged 25 commits into from
Jul 21, 2022

Conversation

munnsmunns
Copy link
Collaborator

@munnsmunns munnsmunns commented Jul 12, 2022

Implement Playwright as our engine for integration tests, replacing selenium/helium. This will make it easier to write future tests, and it runs our current tests slightly faster than before.

Also adds the command make test-integration-debug, which runs the integration tests in headed mode with a chrome window and a debugger.

Performance impacts, around 70s vs 130s w/ selenium:

old:
image

new:
Screen Shot 2022-07-21 at 12 50 16 PM |

Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

Nice! looking great, nice to see that net-negative in code :)
image

If it's working locally, but not in CI, I think you'll need to tweak the github actions file, we figured how how to run those tests in LLR if you need a reference

@munnsmunns munnsmunns marked this pull request as ready for review July 14, 2022 15:47
@munnsmunns munnsmunns requested a review from shapiromatron July 14, 2022 16:09
Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

Really nice job. I made a few edits:

  1. rewrote the directly structure from frontend/integration to integration, since they're really two separate things
  2. update docs, specifically the integration tests portion
  3. used built-in fixture from pytest-playwright for setting up the playwright browser

@shapiromatron
Copy link
Owner

@munnsmunns please merge if you're ok w/ my revisions!

@shapiromatron
Copy link
Owner

scratch that; broken in CI.... let me take a look

@shapiromatron
Copy link
Owner

ok, I think it's fixed, ok to merge @munnsmunns if you're happy...

@munnsmunns munnsmunns merged commit f8dae6a into main Jul 21, 2022
@munnsmunns munnsmunns deleted the playwright branch July 21, 2022 18:05
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.

2 participants