Skip to content

Commit bcb1bef

Browse files
committed
Update e2e tests to match new strings
1 parent 31d29c3 commit bcb1bef

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

test/e2e/specs/editor/blocks/navigation.spec.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,13 +1202,6 @@ test.describe( 'Navigation block', () => {
12021202
await expect( linkButton ).toContainText(
12031203
url.pathname.replace( /\/$/, '' )
12041204
);
1205-
1206-
// Verify help text
1207-
await expect(
1208-
settingsControls.getByText(
1209-
'Synced with the selected page.'
1210-
)
1211-
).toBeVisible();
12121205
} );
12131206

12141207
await test.step( 'Verify bound link works correctly on frontend', async () => {
@@ -1633,14 +1626,14 @@ test.describe( 'Navigation block', () => {
16331626

16341627
// With LinkControlInspector, unavailable entities show a button with error badge
16351628
const linkButton = settingsControls.getByRole( 'button', {
1636-
name: /No link selected/i,
1629+
name: /Missing page/i,
16371630
} );
16381631

16391632
// Button is enabled (can click to fix the link)
16401633
await expect( linkButton ).toBeEnabled();
16411634

1642-
// Button should show "No link selected" for unavailable entity
1643-
await expect( linkButton ).toContainText( 'No link selected' );
1635+
// Button should show "Missing page" for unavailable entity
1636+
await expect( linkButton ).toContainText( 'Missing page' );
16441637
} );
16451638

16461639
await test.step( 'Verify clicking button with error opens link control for fixing', async () => {
@@ -1649,7 +1642,7 @@ test.describe( 'Navigation block', () => {
16491642
.getByRole( 'tabpanel', { name: 'Settings' } );
16501643

16511644
const linkButton = settingsControls.getByRole( 'button', {
1652-
name: /No link selected/i,
1645+
name: /Missing page/i,
16531646
} );
16541647

16551648
// Click the button to open the link control and fix the link

0 commit comments

Comments
 (0)