FEATURE: initial implementation of generic filters for reports

This commit is contained in:
Joffrey JAFFEUX
2019-04-26 12:17:10 +02:00
committed by GitHub
parent 4b455e741e
commit bcca2b5d73
33 changed files with 361 additions and 314 deletions
@@ -4,6 +4,18 @@ acceptance("Dashboard", {
loggedIn: true,
settings: {
dashboard_general_tab_activity_metrics: "page_view_total_reqs"
},
site: {
groups: [
{
id: 88,
name: "tl1"
},
{
id: 89,
name: "tl2"
}
]
}
});
@@ -86,3 +98,17 @@ QUnit.test("reports tab", async assert => {
"filter is case insensitive"
);
});
QUnit.test("report filters", async assert => {
await visit(
'/admin/reports/signups?end_date=2018-07-16&filters=%7B"group"%3A88%7D&start_date=2018-06-16'
);
const groupFilter = selectKit(".group-filter .combo-box");
assert.equal(
groupFilter.header().value(),
88,
"its set the value of the filter from the query params"
);
});