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

Commit

Permalink
Remove and address 2 sleep statements
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaamosova committed Dec 27, 2018
1 parent 3035b81 commit da0cd7a
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 da0cd7a

Please sign in to comment.