Skip to content

Commit 4c930e7

Browse files
committed
Fix text jank
1 parent 99411af commit 4c930e7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

e2e/tests/functional/plugins/displayLayout/displayLayout.e2e.spec.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ import { expect, test } from '../../../../pluginFixtures.js';
3535
const CHILD_LAYOUT_STORAGE_STATE_PATH = fileURLToPath(
3636
new URL('../../../../test-data/display_layout_with_child_layouts.json', import.meta.url)
3737
);
38+
const TEST_DISPLAY_LAYOUT_ID = {
39+
namespace: '',
40+
key: '712d07f1-3585-465a-a6db-3c40a9edcde7'
41+
};
3842
const CHILD_PLOT_STORAGE_STATE_PATH = fileURLToPath(
3943
new URL('../../../../test-data/display_layout_with_child_overlay_plot.json', import.meta.url)
4044
);
@@ -54,13 +58,15 @@ test.describe('Display Layout Sub-object Actions @localStorage', () => {
5458
test.beforeEach(async ({ page }) => {
5559
await page.goto('./', { waitUntil: 'domcontentloaded' });
5660
await page.getByLabel('Expand My Items folder').click();
57-
const waitForMyItemsNavigation = page.waitForURL(`**/mine/?*`);
61+
const waitForDisplayLayoutNavigation = page.waitForURL(
62+
new RegExp(`.*/${TEST_DISPLAY_LAYOUT_ID.key}/\?.*`)
63+
);
5864
await page
5965
.getByLabel('Main Tree')
6066
.getByLabel('Navigate to Parent Display Layout layout Object')
6167
.click();
6268
// Wait for the URL to change to the display layout
63-
await waitForMyItemsNavigation;
69+
await waitForDisplayLayoutNavigation;
6470
});
6571
test('Open in New Tab action preserves time bounds @2p', async ({ page }) => {
6672
test.info().annotations.push({

0 commit comments

Comments
 (0)