This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetpack: Adds a check that related posts are shown in the customizer (#…
…349)
- Loading branch information
1 parent
155ca56
commit 7721500
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { By as by, until } from 'selenium-webdriver'; | ||
import BaseContainer from '../../base-container'; | ||
|
||
// import * as driverHelper from '../../driver-helper'; | ||
// import * as driverManager from '../../driver-manager'; | ||
|
||
export default class WpAdminCustomizerPage extends BaseContainer { | ||
constructor( driver ) { | ||
const expectedElementSelector = by.css( '.wp-customizer' ); | ||
super( driver, expectedElementSelector ); | ||
} | ||
|
||
relatedPostsSectionShown() { | ||
let present = false; | ||
|
||
present = this.driver.wait( until.elementLocated( by.css( '#sub-accordion-section-jetpack_relatedposts' ) ), this.explicitWaitMS ).then( () => { | ||
return true; | ||
}, ( ) => { | ||
return false; | ||
} ); | ||
return present; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters