e2e tests integration
delivery of the e2e tests for data explorer by redpelicans (forfeit).
this ticket is about checking for the PM team the expected usecases (demo to organize) and the integration in the pipeline (scripts & commands are part of the forfeit).
integration is about adding a step in the pipeline and investigate how to consolidate test coverage with unit tests.
-
search by facet - render home page [wait until complete]
- open the home facet 'Topics'
- click on the facet value 'Government' [wait until complete]
- open the facet 'Measure'
- search for 'tourism' in the spotlight
- select the facet value Tourism trips' [wait until complete]
- compare results with expected results
-
search by free text (optional) - render home page [wait until complete]
- input 'tourism' in the free text search
- press on enter key [wait until complete]
- compare results with expected results
- compare highlights with expected highlights for the first result
-
switch locale in search (optional) - render home page [wait until complete]
- click on 'Français' in the header [wait until complete]
- open the home facet 'Thème'
- click on the facet value 'Administrations'
- click on 'English' in the header [wait until complete]
- expect to go back to home page
-
reset search render home page [wait until complete] open the home facet 'Topics' - click on the facet value 'Government' [wait until complete]
- click on 'Clear all filters' tag cross [wait until complete]
- expect to go back to home page
- open the home facet 'Topics'
- click on the facet value 'Government' [wait until complete]
- input 'tourism' in the free text search
- press on enter key [wait until complete]
- click on the cross in the free text input [wait until complete]
- expect to return to home page
-
used filters in search - render search page with the following url (free text + 1 facets with 1 value + 2 facet with 2 values) [wait until complete]
- expect x results
- click on 'Government' tag cross [wait until complete]
- expect a new search without the facet value, 'Topics' facet has been removed from Used filters
- click on 'Consumption' tag cross [wait until complete]
- expect a new search without the facet value, 'Consumption' value has been removed from Used filters
- click on 'Trip type' tag cross [wait until complete]
- expect a new search, 'Trip type' facet has been removed from Used filters
- click on Clear all filters tag cross [wait until complete]
- expect a new search, no Used filters
-
from search to viz - render search page with the following url(4 facets with 1 value in addition to 'Topics' facet with 'Government') [wait until complete]
- click on the first dataflow
- expect to go to viz page [wait until complete]
- expect to have User Filters filled without 'Topics' (not a dimension)
- expect to have the 4 facets with their values mapped to Filters
- expect a viewer header containing at least all dimensions with a single selected value
- expect a table to be rendered
-
customize table in viz - render viz page with the following url [wait until complete]
- expand 'Trip type' in the filters column
- select 'Same-day visitors' [wait until complete]
- click on 'Customize'
- drag and drop 'Reporting country' to rows in first position
- click on 'Apply layout'
- expect a table to be rendered
-
check popovers (optional) - render viz page with the following url [wait until complete]
- click on ‘Chart’ in the toolbar
- select ‘Barchart’ [wait until complete]
- click on ‘Download’ in the toolbar
- select ‘Download CSV’ [wait until complete]
- expect a file to be downloaded
Edited by Nicolas Briemant