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

Add docker stack for e2e tests, remove cypress #524

Merged
merged 26 commits into from
Nov 18, 2024
Merged

Conversation

MattyMay
Copy link
Contributor

@MattyMay MattyMay commented Oct 1, 2024

Add e2e testing configuration and e2e tests for the project settings page
Add docker stack for e2e tests & remove cypress

@MattyMay MattyMay force-pushed the setup-e2e branch 16 times, most recently from a028f4d to 1a8caeb Compare October 7, 2024 20:04
@MattyMay MattyMay marked this pull request as ready for review October 7, 2024 20:13
@MattyMay MattyMay force-pushed the setup-e2e branch 2 times, most recently from e38cea2 to 1a8caeb Compare October 10, 2024 18:25
.first()
.should("contain.text", "closing time");

// make sure error goes away after valid request
Copy link
Contributor

Choose a reason for hiding this comment

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

This suggests that there would be a check such as .get_api_errors().should("have.length", 0), but I don't see that below. Should there be?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah this isn't very clear. save_and_reload() verifies that there are no API errors after saving and after reloading. It's mentioned in the jsdoc but maybe I should rename the action? Or get rid of the action and just call save().get_api_errors() ... refresh().get_api_errors() ... ?

.should("contain.text", "integer")
.get_by_testid(ElementId.save)
.should("be.disabled")
.click({ force: true })
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this basically saying "act as if the user clicked the mouse on the disabled button", with the expectation that nothing happens (i.e., the form is not submitted)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Maybe a silly thing to test 🤷

@james-perretta james-perretta changed the title Setup e2e Add docker stack for e2e tests Nov 18, 2024
@james-perretta james-perretta changed the title Add docker stack for e2e tests Add docker stack for e2e tests, remove cypress Nov 18, 2024
@james-perretta james-perretta merged commit daf78c8 into develop Nov 18, 2024
2 checks passed
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