-
-
Notifications
You must be signed in to change notification settings - Fork 55
Fix for issues_657 and issue_983 #989
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 9fe32a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
ff8e154
to
f67f623
Compare
d134e42
to
9fe32a8
Compare
Thanks for this PR. I'm currently in the middle of a large refactor that would "simplify" a lot for the Visual package. See also #982. I want to release this in the coming days. Can you do me a favor? First of all split all adjustments into "smaller" PR's that are connected to each service separately. So we can release them as separate fixes? It would be great if you can create a PR for the Visual Service based on #982 (I know, a big ass one). But then we can release it as one fix. Thanks again! |
Hi @wswebcreation, I'm not sure I've correctly understood what you expect from me (especially for the base branch of fixes for other packages than I retrieved your PR 982,
I didn't tried this time to update the type of executor/ExecuteScript to be compatible with the change done in this webdriverio commit because it was related to Best regards, |
Hello
📝 Description
Attempt to fix:
💡 Explanation
In the previous version of the code, the OCR function was added first to each instance of the browser and then to the browser object.
The problem is,
@wdio\utils\build\index.js
(line 388) already add the command to each instance so the commande added to each instance was overwritten by the one containing the loop of each instance.→ Resulting in the issue 983
This issue was also the reason of the loop from issue 657, because each instance called the multi remote version of the command when we use:
browserInstance[commandName].apply(browserInstance, args)
✏️ Modifications
→ I'm not really confident about this part
Change the addCommand order for Multi Remote
In both ocr-service and visual-service
Inside the package.json of visual reporter:
"clean": "rimraf coverage build *.tsbuildinfo"
is replaced by:
"clean": "rimraf coverage build --glob *.tsbuildinfo"
Because without that, it will fail on Windows in pathArg check :
I'm not a javascript/typescript expert so maybe:
But at least it work with both calls from
Browser
orMultiRemoteBrowser
and no longer loop.Best regard,
Paul