Merged
Conversation
3 tasks
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Christian Bromann <git@bromann.dev>
Contributor
Author
|
I'll look at adding smoke tests next week. It's Friday, i gotta hit the gym and then start a weekend-long happy hour |
christian-bromann
approved these changes
Jul 22, 2023
hammzj
pushed a commit
to hammzj/webdriverio
that referenced
this pull request
Jul 24, 2023
8 tasks
christian-bromann
pushed a commit
that referenced
this pull request
Jul 24, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Fix for Issue 7735
Updated
getPickleIdsto allow setting line numbers on Cucumber features. This method would pass in the absolute URI of the feature into thepickleFilter.matchesmethod; thematchesmethod expects a relative URI, so it will skip checking for line numbers if an absolute URI is passed in.I did not add any new tests for it as there are relatively little within the
cucumberEventListener.test.tsfile. However, I provided my validations on the Cucumber feature example below:Normal test
Test with `--spec` option
Test with single line number
Test with `--spec` and multiple line numbers
The only issue I faced is that I could not run more than two scenarios at a time this way:
This StackOverflow answer said it should be possible, but this might be a Cucumber-js issue and not a WDIO issue.
Small updates to Cucumber tests
GitHub's website changed, so I updated the
my-feature.featuretest document. These test are incredibly flaky since they rely on an third-party website to validate. It would make more sense to validate against a WebDriverIO test website or homepage where the maintainers know what changes are made to their website.As well, these steps should move away from regular expressions in favor of Cucumber Expressions. See here.
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/project-committers