diff options
Diffstat (limited to 'plugins/DBStats/tests/UI')
-rw-r--r-- | plugins/DBStats/tests/UI/DBStats_spec.js | 11 | ||||
-rw-r--r-- | plugins/DBStats/tests/UI/expected-screenshots/DBStats_admin_page.png | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/plugins/DBStats/tests/UI/DBStats_spec.js b/plugins/DBStats/tests/UI/DBStats_spec.js index 11ce66cffa..24d841aaac 100644 --- a/plugins/DBStats/tests/UI/DBStats_spec.js +++ b/plugins/DBStats/tests/UI/DBStats_spec.js @@ -10,11 +10,12 @@ describe("DBStats", function () { this.timeout(0); - var url = "?module=DBStats&action=index&idSite=1&period=day&date=yesterday"; + const url = "?module=DBStats&action=index&idSite=1&period=day&date=yesterday"; - it("should load correctly", function (done) { - expect.screenshot('admin_page').to.be.captureSelector('#content', function (page) { - page.load(url); - }, done); + it("should load correctly", async function() { + await page.goto(url); + + const content = await page.$('#content'); + expect(await content.screenshot()).to.matchImage('admin_page'); }); });
\ No newline at end of file diff --git a/plugins/DBStats/tests/UI/expected-screenshots/DBStats_admin_page.png b/plugins/DBStats/tests/UI/expected-screenshots/DBStats_admin_page.png index 8206489358..fbf3c5719d 100644 --- a/plugins/DBStats/tests/UI/expected-screenshots/DBStats_admin_page.png +++ b/plugins/DBStats/tests/UI/expected-screenshots/DBStats_admin_page.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:df2c045ece25d4892202f685cffe5831b98e4c37474e92ff3243521a4030f30f -size 233737 +oid sha256:3af86879a34e7b1ffdac3aca90b0881e1c7bd44cdb0c4080fab34abaf238c9ff +size 226770 |