garris / garris/BackstopJS

Check slider content using backstopjs

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

Description

I have used bxslider and want to check the 2nd and 3rd child of the slider using backstopjs.
I checked using the delay event in both the backstop.json and the bxslider script.
it generates references for the child content of the slider. but fails to generate appropriate references of the items.

1) This is my html

```






```

2) bxslider initialize script

```
$('.bxslider').bxSlider({
auto: true,
autoDelay: 900
});
```

3) this is my backstopjs script

```
{
"viewports": [
{
"name": "desktop",
"width": 1600,
"height": 900
}
],
"scenarios": [
{
"label": "Bxslider",
"url": "http://localhost/jquery-bxslider/",
"hideSelectors": [],
"removeSelectors": [],
"selectors": [
"section ul li:nth-of-type(1)",
"section ul li:nth-of-type(2)",
"section ul li:nth-of-type(3)"
],
"readyEvent": null,
"delay": 1000,
"misMatchThreshold" : 0.1,
"onReadyScript": "onReady.js"
}
]
}
```

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.