Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UI/specs/Menus_spec.js')
-rw-r--r--tests/UI/specs/Menus_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/UI/specs/Menus_spec.js b/tests/UI/specs/Menus_spec.js
index 56f5fffbb1..d40011cbcd 100644
--- a/tests/UI/specs/Menus_spec.js
+++ b/tests/UI/specs/Menus_spec.js
@@ -50,6 +50,15 @@ describe("Menus", function () {
expect(await element.screenshot()).to.matchImage('admin_loaded');
});
+ it('should toggle the submenu visibility when main item is clicked', async function() {
+ await openMenuItem(page, 'Website');
+ await page.mouse.move(0, 0);
+ await page.waitFor(500); // wait for animation
+
+ const element = await page.jQuery('#secondNavBar');
+ expect(await element.screenshot()).to.matchImage('admin_websites');
+ });
+
it('should change the admin page correctly when an admin menu item is clicked', async function() {
await openMenuItem(page, 'Manage');
await page.waitForNetworkIdle();