garris / garris/BackstopJS

event execution

Open
#1,335 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

Hi

So I am having a problem with the execution of the events , I need the "clickSelectors" to execute after "keyPressSelectors"

below is my code :

{
"id": "backstop_default",
"viewports": [

{
"label": "MAC",
"width": 1900,
"height": 1600
}

],
"onBeforeScript": "puppet/onBefore.js",
"onReadyScript": "puppet/onReady.js",
"clickAndHoverScript": "puppet/clickAndHoverHelper.js",
"scenarios": [

{
"label": "cookie test",
"cookiePath": "backstop_data/engine_scripts/cookies.json",
"url": "removed url for security reasons ",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 5000,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelectors": "#account-selector h4",
"postInteractionWait": 5000,
"selectors": [],
"keyPressSelectors": [
{
"selector": "#accounts-search",
"keyPress": "EOIN"
}


],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.1,
"requireSameDimensions": true
}

],
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"report": [
"browser"
],
"engine": "puppeteer",
"engineOptions": {
"ignoreHTTPSErrors": false,
"args": ["--no-sandbox", "--disable-setuid-sandbox"]
},
"asyncCaptureLimit": 5,
"asyncCompareLimit": 50,
"debug": false,
"debugWindow": true
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.