Skip to content

Commit ba903e3

Browse files
Adds UI test for report_mediums
1 parent 5afae5b commit ba903e3

4 files changed

Lines changed: 48 additions & 37 deletions

File tree

tests/UI/CustomAlerts_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ describe("CustomAlerts", function () {
3636
expect(await screenshotPageWrap()).to.matchImage('edit');
3737
});
3838

39+
it('should show the report mediums', async function () {
40+
await page.click('.report-mediums .select-dropdown');
41+
await page.waitForNetworkIdle();
42+
await page.waitForTimeout(350); // wait for animation
43+
expect(await screenshotPageWrap()).to.matchImage('report_mediums');
44+
await page.click('.report-mediums .select-dropdown');
45+
});
46+
3947
it('should reload alert conditions when site is changed', async function () {
4048
await page.evaluate(function() {
4149
$('.siteSelector .dropdown li:contains("Piwik test"):last').click();

0 commit comments

Comments
 (0)