Skip to content
Snippets Groups Projects
Commit b8828cc0 authored by jurgenhaas's avatar jurgenhaas
Browse files

drupal/profiles/portal#82 Add support for selectors, hideSelectors and...

drupal/profiles/portal#82 Add support for selectors, hideSelectors and removeSelectors in scenarios for backstop tests
parent 10655929
No related branches found
No related tags found
1 merge request!26Merging develop into main
Pipeline #526568 passed
......@@ -772,7 +772,9 @@ class Handler extends BaseHandler {
],
],
'scenarios' => [
'frontpage' => '/',
'frontpage' => [
'path' => '/',
],
],
];
}
......
......@@ -15,8 +15,17 @@
{% set i = 0 %}
{% for label,path in backstop.scenarios %}
{% if i > 0 %},{% endif %}{
"label": "{{ label }}",
"url": "{{ projectprotocol }}://{{ projectdomain }}{{ projectport }}{{ path }}"
"label": "{{ label }}"
,"url": "{{ projectprotocol }}://{{ projectdomain }}{{ projectport }}{{ scenario.path }}"
{% if scenario.selectors %}
,"selectors": ["{{ scenario.selectors|join('","') }}"]
{% endif %}
{% if scenario.hideSelectors %}
,"hideSelectors": ["{{ scenario.hideSelectors|join('","') }}"]
{% endif %}
{% if scenario.removeSelectors %}
,"removeSelectors": ["{{ scenario.removeSelectors|join('","') }}"]
{% endif %}
}
{% set i = i + 1 %}
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment