Open slice-karven23 opened 3 months ago
Can you provide a reproducible example? I'm not having this issue on a clean project.
@wswebcreation In our project, we utilize a visual regression testing suite that employs Appium with WebDriverIO (wdio/cli 8) and the @wdio/visual-service module. The workflow involves launching our native mobile app where we capture screenshots for comparison against baseline images.
While this setup functions correctly for Android executions, we've encountered an issue specific to iOS. The problem manifests in the inability to save screenshots using the visual-service's save screen function. Despite the identical code and services used across both platforms, this functionality is currently not operational on iOS.
That's why I'm asking for a clean project as an example, I'm not seeing this behaviour for iOS
Closing this as not an issue with the module, but a config issue
I'm debugging this and I'm almost 100% sure this is an Allure issue. From what I can see, Allure doesn't get any context (tests) when the Visual Module registers itself. This is only failing on iOS, not Android (this is the part I need to debug).
I found this error while taking screenshot Error: There isn't any active test!
which is coming from Allure. Because Allure is failing it will not proceed setting up the Visual configuration which makes the Visual module not registering the commands, hence the browser.saveScreen is not a function
It will cost me some more time to debug it and find a solution
checkScreen works if we disable screenshot reporting in Allure, but then we don't have screenshots attached to the report
reporters: [ ... ['allure', { outputDir: 'allure-results', disableWebdriverStepsReporting: true, > disableWebdriverScreenshotsReporting: true, useCucumberStepReporter: true, disableMochaHooks: true, addConsoleLogs: false, }, ], ],
Environment (please complete the following information):
@wdio/visual-service
version: [e.g. 1.0.0]Config of WebdriverIO +
@wdio/visual-service
Package.json
Describe the bug While executing ios automation for the visual regression getting this error whereas same works fine for android execution
Log
Additional context since the old native comparison is deprecated we migrated to this service but blocked on ios automation.