mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Add navigateAndLogin
This commit is contained in:
@@ -33,6 +33,12 @@ module.exports = {
|
||||
.waitForElementVisible('@signOutButton')
|
||||
.click('@signOutButton');
|
||||
},
|
||||
navigateAndLogin(user) {
|
||||
this
|
||||
.navigate()
|
||||
.expect.section('@login').to.be.visible;
|
||||
return this.section.login.login(user);
|
||||
},
|
||||
}],
|
||||
elements: {
|
||||
'drawerButton': '.mdl-layout__drawer-button',
|
||||
@@ -113,6 +119,7 @@ module.exports = {
|
||||
this.parent
|
||||
.click('@drawerOverlay')
|
||||
.waitForElementNotPresent('@drawerOverlay');
|
||||
return this.parent;
|
||||
},
|
||||
}],
|
||||
elements: {
|
||||
|
||||
Reference in New Issue
Block a user