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
The "search within" facet test doesn't check if a facet is collapsed before running the test. If the input is inside the collapsed element, this makes the test fail. The "search within" input won't always be inside a collapsed element, but I think to avoid conflicts, we should toggle the facet open before testing the input. In my own code, I did this right after line 312 here: https://github.com/searchspring/snapfu-template-preact/blob/production/tests/cypress/integration/results.spec.js#L312.
Might be a better way to do this, but seemed to work well for me.
// toggle open facet for search within
if (store.facets[obj.index] && store.facets[obj.index].collapsed) {
store.facets[obj.index].toggleCollapse();
}
The text was updated successfully, but these errors were encountered:
The "search within" facet test doesn't check if a facet is collapsed before running the test. If the input is inside the collapsed element, this makes the test fail. The "search within" input won't always be inside a collapsed element, but I think to avoid conflicts, we should toggle the facet open before testing the input. In my own code, I did this right after line 312 here: https://github.com/searchspring/snapfu-template-preact/blob/production/tests/cypress/integration/results.spec.js#L312.
Might be a better way to do this, but seemed to work well for me.
The text was updated successfully, but these errors were encountered: