Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1744 from Automattic/update/remove-sleep-post-edi…
Browse files Browse the repository at this point in the history
…tor-sidebar

Remove and address 2 sleep statements in `post-editor-sidebar-component.js`
  • Loading branch information
juliaamosova authored Dec 28, 2018
2 parents 3e9e631 + da0cd7a commit 7ccfb28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/post-editor-sidebar-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ export default class PostEditorSidebarComponent extends AsyncBaseContainer {
const saveCategoryButtonSelector = By.css( 'div.dialog__action-buttons button.is-primary' );
const driver = this.driver;

driver.sleep( 500 );
await driverHelper.waitTillPresentAndDisplayed( driver, addNewCategoryButtonSelector );
await driverHelper.clickWhenClickable( driver, addNewCategoryButtonSelector );
await driverHelper.waitForFieldClearable( driver, categoryNameInputSelector );
driver.sleep( 500 );
await driverHelper.waitTillFocused( driver, categoryNameInputSelector );
await driverHelper.setWhenSettable( driver, categoryNameInputSelector, category );
await driverHelper.clickWhenClickable( driver, saveCategoryButtonSelector );
return await driverHelper.waitTillNotPresent( driver, saveCategoryButtonSelector );
Expand Down

0 comments on commit 7ccfb28

Please sign in to comment.