blob: 140b152ddfb3d6ce2db8e2e76c3a1adcee7a44c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*!
* Matomo - free/libre analytics platform
*
* Screenshot integration tests.
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
describe("UserCountry", function () {
afterEach(function () {
delete testEnvironment.pluginsToUnload;
testEnvironment.save();
});
it('should show geolocation admin without additional providers', async function () {
testEnvironment.pluginsToUnload = ['GeoIp2'];
testEnvironment.save();
await page.goto("?module=UserCountry&action=adminIndex");
expect(await page.screenshotSelector('#content')).to.matchImage('admin_no_providers');
});
it('should show geolocation admin with GeoIP2 providers', async function () {
testEnvironment.pluginsToLoad = ['GeoIp2'];
testEnvironment.save();
await page.goto("?module=UserCountry&action=adminIndex");
expect(await page.screenshotSelector('#content')).to.matchImage('admin_geoip2');
});
});
|