You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow these steps to take screenshots in GHA and archive it
The following code VSBrowser.instance.takeScreenshot("fileName") will take screenshot of the existing browser window.
The screenshot will be saved in a temporary location. We have to copy the same to a known location in the project folder screenshots. For this use afterAll() hook to copy the screenshot from the temporary location to a new location.
We can get the temporary location of the screen shot from VSBrowser.instance.getScreenshotsDir().
For archiving screenshots in GHA, an additional step needs to be added which is Archive screenshots. An example is shown below:
Investigate how to get videos/screenshots of failed tests in GHA using VScode extension tester.
https://github.com/redhat-developer/vscode-extension-tester
The text was updated successfully, but these errors were encountered: