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

Commit

Permalink
People: Update CSS selectors for Role to match Automattic/wp-calypso#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sixhours committed Mar 29, 2019
1 parent 886e56a commit 5aaded9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/invite-people-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import * as DriverHelper from '../driver-helper.js';

export default class InvitePeoplePage extends AsyncBaseContainer {
constructor( driver ) {
super( driver, By.css( 'select#role' ) );
super( driver, By.css( 'fieldset#role' ) );
}

async inviteNewUser( email, role, message = '' ) {
if ( role === 'viewer' ) {
role = 'follower'; //the select input option uses follower for viewer
}

const roleSelector = By.css( `select#role option[value=${ role }]` );
const roleSelector = By.css( `fieldset#role input[value=${ role }]` );

await DriverHelper.setWhenSettable( this.driver, By.css( 'input.token-field__input' ), email );
await DriverHelper.waitTillPresentAndDisplayed( this.driver, roleSelector );
Expand Down

0 comments on commit 5aaded9

Please sign in to comment.