Skip to content

Commit 68ced5e

Browse files
Fix Social E2E tests (#107174)
1 parent d002851 commit 68ced5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/e2e/specs/jetpack/social__editor-features.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe( DataHelper.createSuiteTitle( 'Social: Editor features' ), function ()
118118
const section = await editorPage.expandSection( 'Share this post' );
119119

120120
// Verify that the toggle is enabled.
121-
const toggle = section.getByLabel( 'Share when publishing' );
121+
const toggle = section.getByLabel( 'Auto-share post' );
122122
expect( await toggle.isChecked() ).toBe( true );
123123

124124
// Verify that the message box is editable.
@@ -181,7 +181,7 @@ describe( DataHelper.createSuiteTitle( 'Social: Editor features' ), function ()
181181
section = await editorPage.expandSection( 'Share this post' );
182182

183183
// Verify whether the auto-share toggle is no longer visible.
184-
const toggle = section.getByLabel( 'Share when publishing' );
184+
const toggle = section.getByLabel( 'Auto-share post' );
185185
expect( await toggle.isVisible() ).toBe( false );
186186

187187
// Check if the Preview & Share button is visible based on resharing feature

test/e2e/specs/jetpack/social__editor-smoke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ skipDescribeIf( isPrivateSite )(
5151

5252
const editorParent = await editorPage.getEditorParent();
5353

54-
const toggle = editorParent.getByLabel( 'Share when publishing' );
54+
const toggle = editorParent.getByLabel( 'Auto-share post' );
5555

5656
await toggle.waitFor();
5757
} );

0 commit comments

Comments
 (0)