Skip to content

Commit

Permalink
Decouple segmented overview UI tests from menu (#21463)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Nov 2, 2023
1 parent 94c7f23 commit 8664fd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion tests/UI/specs/UIIntegration_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik?

await page.goto("?" + urlBase + "#?" + generalParams + "&category=General_Visitors&subcategory=General_Overview&segment=" + segment);

expect(await page.screenshotSelector('.pageWrap,.top_controls')).to.matchImage('visitors_overview_segment');
// check that segment is selected in selector
const segmentTitle = await page.evaluate(() => $('.segmentationTitle').text());
expect(segmentTitle).to.match(/<script>_x\(\d+\)<\/script>/);

expect(await page.screenshotSelector('#content')).to.matchImage('visitors_overview_segment');
});


Expand Down

0 comments on commit 8664fd7

Please sign in to comment.