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 functional tests #106

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Fix functional tests #106

merged 4 commits into from
Oct 31, 2023

Conversation

oscarleonnogales
Copy link
Contributor

@oscarleonnogales oscarleonnogales commented Oct 30, 2023

JIRA ticket

The tests were failing due to 2 reasons:

  1. Chromedriver was out of date so the test suite couldn't run.
  2. We were comparing the results before resolving the promises.

@oscarleonnogales oscarleonnogales requested a review from a team as a code owner October 30, 2023 23:13
expect(actual).toBe(expected);
$("p")
.getText()
.then((actual) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

fwiw if you wanted you could await it since getText returns a promise, but nothing wrong with this approach either just preference.

Copy link
Contributor

@hollabaq86 hollabaq86 left a comment

Choose a reason for hiding this comment

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

🎉

@oscarleonnogales oscarleonnogales merged commit c21ce7b into main Oct 31, 2023
2 checks passed
@oscarleonnogales oscarleonnogales deleted the fix-functional-tests branch October 31, 2023 15:56
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.

3 participants