FEATURE: initial implementation of generic filters for reports
This commit is contained in:
@@ -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"
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user