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

fix e2e tests #3950

Merged
merged 3 commits into from
Feb 22, 2024
Merged

fix e2e tests #3950

merged 3 commits into from
Feb 22, 2024

Conversation

joeyorlando
Copy link
Contributor

Which issue(s) this PR fixes

Fix failing e2e tests on dev

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@joeyorlando joeyorlando added pr:no changelog pr:no public docs Added to a PR that does not require public documentation updates labels Feb 22, 2024
@joeyorlando joeyorlando requested a review from a team February 22, 2024 17:56
@@ -13,7 +13,7 @@ export const createOnCallSchedule = async (page: Page, scheduleName: string, use
(await page.waitForSelector('button >> text=Create >> nth=0')).click();

// fill in the name input
await fillInInput(page, 'div[class*="ScheduleForm"] input[name="name"]', scheduleName);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

my guess is that the css class names were changed in #3837 (I'm guessing because of the @emotion/css dependency being added?)

nevertheless, selecting locators based on css class names is fragile and we should prefer data-testid whenever possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

Completely agree, selecting by aria roles, text and/or testids is recommended

@brojd brojd added this pull request to the merge queue Feb 22, 2024
Merged via the queue into dev with commit 182ee2f Feb 22, 2024
21 checks passed
@brojd brojd deleted the jorlando/fix-e2e-tests branch February 22, 2024 19:53
brojd added a commit that referenced this pull request Sep 18, 2024
# Which issue(s) this PR fixes

Fix failing e2e tests on `dev`

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

---------

Co-authored-by: Dominik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants