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

Update click.js for relative selectors #2747

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

DCoomer
Copy link
Contributor

@DCoomer DCoomer commented Dec 20, 2024

If a Relative Selector is passed in as the third argument inside of click(), it doesn't actually make it down to waitAndGetActionableElement.

We found that await click(element, options, within(withinElement)) doesn't search in the "within" element with the Biome Migration changes

Signed-off-by: DCoomer deshuncoomer@gmail.com

@DCoomer
Copy link
Contributor Author

DCoomer commented Dec 20, 2024

Do I need to re-submit for the DCO?

Edit: I think I figured it out. Let me know if i need to do anything else

If a Relative Selector is passed in as the third argument inside of click(), it doesn't actually make it down to waitAndGetActionableElement.

 We found that `await click(element, options, within(withinElement))`  doesn't search in the "within" element

Signed-off-by: DCoomer <deshuncoomer@gmail.com>
@gaugebot
Copy link

gaugebot bot commented Dec 25, 2024

@DCoomer Thank you for contributing to taiko. Your pull request has been labeled as a release candidate 🎉🎉.

Merging this PR will trigger a release.

Please bump up the version as part of this PR.

Instructions to bump the version can found at CONTRIBUTING.md

If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done.

@@ -49,11 +49,11 @@ async function simulateInputEvents(options) {
}

async function click(selector, options = {}, ...args) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we please add a unit test for this case ?

describe("With proximity selector", () => {
a case with other click option and proximity selector

@NivedhaSenthil
Copy link
Member

Thanks for the PR :)

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>
Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>
@DCoomer
Copy link
Contributor Author

DCoomer commented Dec 26, 2024

Updated the formatting 617b982

@NivedhaSenthil
Copy link
Member

Looks like it is still failing for format

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>
@DCoomer
Copy link
Contributor Author

DCoomer commented Dec 30, 2024

Updated Again

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>
@DCoomer
Copy link
Contributor Author

DCoomer commented Dec 31, 2024

Added the proper HTML for the unit test

@NivedhaSenthil NivedhaSenthil merged commit da6cb92 into getgauge:master Jan 2, 2025
11 checks passed
NivedhaSenthil pushed a commit that referenced this pull request Jan 3, 2025
* Update click.js for relative selectors

If a Relative Selector is passed in as the third argument inside of click(), it doesn't actually make it down to waitAndGetActionableElement.

 We found that `await click(element, options, within(withinElement))`  doesn't search in the "within" element

Signed-off-by: DCoomer <deshuncoomer@gmail.com>

* Updated Unit Test for #2747

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

* Updated Unit Test Formatting for #2747

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

* Updated Unit Test Formatting for #2747

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

* Updated Unit Test HTML  and formatting for #2747

Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

* Bump Version for 2747
Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

* Bump Version for 2747
Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>

---------

Signed-off-by: DCoomer <deshuncoomer@gmail.com>
Signed-off-by: DCoomer <20802896+DCoomer@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants