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

Playwright #3374

Closed
wants to merge 3 commits into from
Closed

Playwright #3374

wants to merge 3 commits into from

Conversation

alexcottner
Copy link
Contributor

@alexcottner alexcottner commented Jan 30, 2024

Fixes #3341 - Replacing selenium browser-test with playwright

This replaces the existing browser test with a very simple test that verifies we can login to the site and see the expected home page. We will add more detailed testing to the kinto-admin project.

  • Add documentation.
  • Add tests.

I propose we make the same change in remote-settings, then start working on a comprehensive test suite in the kinto-admin project. Created Kinto/kinto-admin#3147 as followup.

This was done in node in an attempt to keep our UI testing code consistent. However, if we prefer to do that in python (since this is a python project) I can change it pretty easily.

@alexcottner alexcottner marked this pull request as ready for review January 30, 2024 16:28
@grahamalama
Copy link
Contributor

Nice! A step in the right direction.

Was there a reason you opted for the Javascript version of playwright instead of the Python version? It'd be nice to stick to one language in this repo

@alexcottner
Copy link
Contributor Author

alexcottner commented Jan 30, 2024

Was there a reason you opted for the Javascript version of playwright instead of the Python version? It'd be nice to stick to one language in this repo

I forgot to mention that in the PR body. I can change this to python pretty easily, my initial thought was keeping the testing framework/language consistent was slightly more beneficial. But I'm ~51/49 on that particular fence and it's not like the tests in here or remote-settings will be all that complex.

@grahamalama
Copy link
Contributor

grahamalama commented Jan 31, 2024

my initial thought was keeping the testing framework/language consistent

Here do you mean consistent across different repos? Like we'll be using Playwright here (a Python project) and Kinto Admin (a JS project), so it's better to have Playwright tests be consistently written than match the predominant language in a repo?

@alexcottner
Copy link
Contributor Author

Here do you mean consistent across different repos?

Correct, I thought that having a consistent pattern there was slightly better than switching to fit the language of the project. I will hopefully have a python version up tomorrow for comparison. It'll still be pretty simple, just got sidetracked today.

@leplatrem
Copy link
Contributor

Yes, I agree with Graham. I'm sorry for the lost energy, but for the convenience of contributors it would be better to spare the usage of npm

@alexcottner alexcottner closed this Feb 2, 2024
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.

Investigate selenium test errors
3 participants