Skip to content
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

Issue: about a backstop.json file #1580

Open
autotest-web opened this issue Aug 7, 2024 · 2 comments
Open

Issue: about a backstop.json file #1580

autotest-web opened this issue Aug 7, 2024 · 2 comments

Comments

@autotest-web
Copy link

We are unable to capture the screenshot as per the selectors, and after the login page, it is not capturing the screenshot
Here we passed the correct cookies path also but it captured only the login home page screenshot after login to app it is not capturing the screenshot

{
"id": "automation",
"viewports": [
{
"name": "desktop",
"width": 1024,
"height": 768
}
],

"scenarios": [
{
"label": "login",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "https://dewdrops-rp.zycus.com",
"selectors": ["document","dewdrops-home-left-panel"],
"misMatchThreshold": 0.1,
"delay": 60000,
"readySelector": "",
"selectorExpansion": true,
"requireSameDimensions": true,
"onReadyScript": "puppet/onReadyLogin.js"
},
{
"label": "home",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "https://dewdrops-rp.zycus.com/home/auth",
"selectors": ["document","dew-footer"],
"misMatchThreshold": 0.1,
"delay": 50000,
"readySelector": "",
"onReadyScript": "puppet/onReadyHome.js"
},
{
"label": "online-store",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "https://dewdrops-rp.zycus.com/eproc/online-store",
"selectors": ["document"],
"misMatchThreshold": 0.1,
"delay": 50000,
"readySelector": "",
"onReadyScript": "puppet/onReadyOnlineStore.js"
}
],
"engine": "puppeteer",
"engineOptions": {
"args": [
"--no-sandbox",
"--disable-setuid-sandbox"
]

},
"report": ["browser"],
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"asyncCaptureLimit": 5,
"asyncCompareLimit": 5,
"debug": false,
"debugWindow": false,
"archiveReport": true,
"scenarioLogsInReports": false,
"selectorExpansion": false
}

@autotest-web
Copy link
Author

One more issue I'm facing is that when capturing the reference screenshot and running BackstopJS tests, a new browser instance opens, which is not expected. How can this be handled with WebDriver? The screenshot should be captured using the currently running automation browser.

@autotest-web
Copy link
Author

autotest-web commented Aug 8, 2024

@maciej-siola @garris
Can u pls help here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant