webdriverio / visual-testing

Image comparison / visual regression testing for WebdriverIO
https://webdriver.io/docs/visual-testing
MIT License
110 stars 41 forks source link

Visual-service is getting the wrong type in service.js beforetest hook #322

Closed siajangani closed 5 months ago

siajangani commented 5 months ago

Hi,

Running the latest Wdio on my local project and we are using "@wdio/visual-service": 4.1.1. all the tests are passing and the image compare is also working but getting thrown a type exception in node_modules\@wdio\visual-service\dist\service.js file in beforeTest hook as it is expecting "filename" not just "file" - line 61 I am guessing this is coming from jasmine-core/jasmine.js spec "* @property {String} filename - The name of the file the spec was defined in."

the actual error is below:

image

is it just a typo or am I missing something,

I can raise a PR if that is the case.

wswebcreation commented 5 months ago

ahhhh, yeah, it might be that we haven't tested this for all framework adapters 😅 . Feel free to raise a PR. Thanks!

siajangani commented 5 months ago

got a PR out - thanks

siajangani commented 5 months ago

@wswebcreation - could you approve/publish please?

wswebcreation commented 5 months ago

Will be fixed with this PR https://github.com/webdriverio/visual-testing/pull/323