Skip to content

Commit

Permalink
Tests: Address feedback from review
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jun 25, 2018
1 parent 9dc4350 commit 238c1c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/e2e/specs/plugins-api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import '../support/bootstrap';
import {
clickOnMoreMenuItem,
ensureDocumentSettingsSidebarIsOpened,
openDocumentSettingsSidebar,
newPost,
newDesktopBrowserPage,
} from '../support/utils';
Expand All @@ -24,9 +24,9 @@ describe( 'Using Plugins API', () => {

describe( 'Post Status Info', () => {
it( 'Should render post status info inside Document Setting sidebar', async () => {
await ensureDocumentSettingsSidebarIsOpened();
await openDocumentSettingsSidebar();

const pluginPostStatusInfoText = await page.$eval( '.my-post-status-info-plugin', ( el ) => el.innerText );
const pluginPostStatusInfoText = await page.$eval( '.edit-post-post-status .my-post-status-info-plugin', ( el ) => el.innerText );
expect( pluginPostStatusInfoText ).toBe( 'My post status info' );
} );
} );
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/support/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export async function publishPost() {
/**
* Clicks on the button in the header which opens Document Settings sidebar when it is closed.
*/
export async function ensureDocumentSettingsSidebarIsOpened() {
export async function openDocumentSettingsSidebar() {
const openButton = await page.$( '.edit-post-header__settings button[aria-label="Settings"][aria-expaned="false"]' );

if ( openButton ) {
Expand Down

0 comments on commit 238c1c7

Please sign in to comment.