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

Handle empty parameter conversion #186

Merged
merged 7 commits into from
Jul 2, 2024
Merged

Handle empty parameter conversion #186

merged 7 commits into from
Jul 2, 2024

Conversation

zabil
Copy link
Member

@zabil zabil commented Jul 1, 2024

Noticed an issue with parameter conversion while running the test case in Taiko

https://github.com/getgauge/taiko/blob/b4b6fbccf34c0faed59c38664faf48ade0e292e0/test/functional-tests/specs/pageActions.spec#L92

Empty text get's converted to number.

For example in the original logic

Number("  ") === 0

This causes the wrong type to be passed.

Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
@zabil zabil requested a review from BugDiver July 1, 2024 13:48
@zabil zabil marked this pull request as ready for review July 1, 2024 13:48
zabil added 4 commits July 1, 2024 14:49
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
@zabil zabil added the ReleaseCandidate If a PR is tagged with this label, after merging it will be released label Jul 1, 2024
@gaugebot
Copy link

gaugebot bot commented Jul 1, 2024

@zabil Thank you for contributing to gauge-ts. 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.

zabil added 2 commits July 1, 2024 16:18
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
@zabil
Copy link
Member Author

zabil commented Jul 2, 2024

@BugDiver is this change ok?

@BugDiver
Copy link
Member

BugDiver commented Jul 2, 2024

@BugDiver is this change ok?

Looks good to me

@zabil zabil merged commit a34fb72 into main Jul 2, 2024
17 checks passed
@BugDiver BugDiver deleted the stringparameterconversion branch July 2, 2024 12:32
@mholetzko
Copy link

Hey @zabil @BugDiver ,

this change is creating a bunch of issues in our code base. I recorded the problems in this issue: #187

cc @lbockstaller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ReleaseCandidate If a PR is tagged with this label, after merging it will be released
Development

Successfully merging this pull request may close these issues.

3 participants