Skip to content

Commit

Permalink
Change "Publish:" to "Publish date:".
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Sep 15, 2020
1 parent 740a6e1 commit b4b2678
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions packages/e2e-tests/specs/editor/various/datepicker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe( 'Datepicker', () => {

it( 'should show the publishing date as "Immediately" if the date is not altered', async () => {
const panelToggle = await findSidebarPanelToggleButtonWithTitle(
'Publish:'
'Publish date:'
);
const publishDate = await panelToggle.$eval(
'.editor-post-publish-panel__link',
Expand All @@ -26,7 +26,7 @@ describe( 'Datepicker', () => {
it( 'should show the publishing date if the date is in the past', async () => {
// Open the datepicker.
const panelToggle = await findSidebarPanelToggleButtonWithTitle(
'Publish:'
'Publish date:'
);
await panelToggle.click();

Expand All @@ -50,7 +50,7 @@ describe( 'Datepicker', () => {
it( 'should show the publishing date if the date is in the future', async () => {
// Open the datepicker.
const panelToggle = await findSidebarPanelToggleButtonWithTitle(
'Publish:'
'Publish date:'
);
await panelToggle.click();

Expand All @@ -76,7 +76,7 @@ describe( 'Datepicker', () => {
it( 'should show the publishing date as "Immediately" if the date is cleared', async () => {
// Open the datepicker.
const panelToggle = await findSidebarPanelToggleButtonWithTitle(
'Publish:'
'Publish date:'
);
await panelToggle.click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe( 'Post visibility', () => {
await openDocumentSettingsSidebar();

// Set a publish date for the next month.
await openSidebarPanel( 'Publish' );
await openSidebarPanel( 'Publish date:' );
await page.click(
'div[aria-label="Move forward to switch to the next month."]'
);
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/various/scheduling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe( 'Scheduling', () => {
};

it( 'Should keep date time UI focused when the previous and next month buttons are clicked', async () => {
await openSidebarPanel( 'Publish:' );
await openSidebarPanel( 'Publish date:' );
await page.click(
'div[aria-label="Move backward to switch to the previous month."]'
);
Expand Down
10 changes: 6 additions & 4 deletions packages/e2e-tests/specs/editor/various/sidebar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ describe( 'Sidebar', () => {
expect(
await findSidebarPanelWithTitle( 'Visibility:' )
).toBeDefined();
expect( await findSidebarPanelWithTitle( 'Publish:' ) ).toBeDefined();
expect(
await findSidebarPanelWithTitle( 'Publish date:' )
).toBeDefined();
expect(
await findSidebarPanelWithTitle( 'Post Format' )
).toBeDefined();
Expand Down Expand Up @@ -168,9 +170,9 @@ describe( 'Sidebar', () => {
expect(
await page.$x( getPanelToggleSelector( 'Visibility:' ) )
).toEqual( [] );
expect( await page.$x( getPanelToggleSelector( 'Publish:' ) ) ).toEqual(
[]
);
expect(
await page.$x( getPanelToggleSelector( 'Publish date:' ) )
).toEqual( [] );
expect(
await page.$x( getPanelToggleSelector( 'Post Format' ) )
).toEqual( [] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function PostSchedule() {
} }
title={
<>
{ __( 'Publish:' ) }
{ __( 'Publish date:' ) }
<span className="editor-post-publish-panel__link">
<PostScheduleLabel />
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function PostPublishPanelPrepublish( {
<PanelBody
initialOpen={ false }
title={ [
__( 'Publish:' ),
__( 'Publish date:' ),
<span
className="editor-post-publish-panel__link"
key="label"
Expand Down

0 comments on commit b4b2678

Please sign in to comment.