Skip to content

Commit

Permalink
fix(core/menu-category): adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiashader committed Feb 26, 2024
1 parent af5e602 commit 3e7d309
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions packages/core/src/tests/menu/active/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
SPDX-FileCopyrightText: 2023 Siemens AG
SPDX-License-Identifier: MIT
-->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
name="viewport"
/>
<title>Stencil Component Starter</title>
</head>
<body style="width: 100vw; height: 100vh">
<ix-basic-navigation>
<ix-menu>
<ix-menu-item>Item 1</ix-menu-item>
<ix-menu-category label="Category with a long name">
<ix-menu-item icon="home" notifications="10">Sub 1</ix-menu-item>
<ix-menu-item active="true" notifications="7">Sub 2</ix-menu-item>
<ix-menu-item icon="star">Sub 3</ix-menu-item>
<ix-menu-item>Sub 4</ix-menu-item>
</ix-menu-category>
</ix-menu>
</ix-basic-navigation>
<script src="http://127.0.0.1:8080/scripts/e2e/load-e2e-runtime.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions packages/core/src/tests/menu/menu.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ test.describe('menu', () => {
);

regressionTest(
'category open on expand when initially closed',
'category open on expand when initially closed and activated',
async ({ page }) => {
await page.setViewportSize(viewPorts.lg);
await page.goto('menu/basic');
await page.goto('menu/active');

const basicNavigationElement = page.locator('ix-basic-navigation');

Expand Down
Binary file not shown.
Binary file not shown.
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 3e7d309

Please sign in to comment.