Skip to content

Commit

Permalink
Only screenshot relevant parts in some Login UI tests (#21608)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Nov 29, 2023
1 parent 272984c commit 053acd4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plugins/Login/tests/UI/Login_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe("Login", function () {

await page.goto(bruteForceLogUrl);

expect(await page.screenshot({ fullPage: true })).to.matchImage('bruteforcelog_noentries');
expect(await page.screenshotSelector('#content')).to.matchImage('bruteforcelog_noentries');
});

it("should show brute force log url when there are entries", async function () {
Expand All @@ -247,7 +247,7 @@ describe("Login", function () {

await page.goto(bruteForceLogUrl);

expect(await page.screenshot({ fullPage: true })).to.matchImage('bruteforcelog_withentries');
expect(await page.screenshotSelector('#content')).to.matchImage('bruteforcelog_withentries');
});

it("should show error when trying to attempt a log in through API", async function () {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 053acd4

Please sign in to comment.