mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
refactor
This commit is contained in:
@@ -46,6 +46,19 @@ module.exports = {
|
||||
this.switchWindow(handle);
|
||||
});
|
||||
},
|
||||
logout() {
|
||||
const embedStream = this.page.embedStream();
|
||||
|
||||
const embed = embedStream
|
||||
.navigate()
|
||||
.getEmbedSection();
|
||||
|
||||
embed
|
||||
.waitForElementVisible('@commentsTabButton')
|
||||
.click('@commentsTabButton')
|
||||
.waitForElementVisible('@logoutButton')
|
||||
.click('@logoutButton');
|
||||
}
|
||||
}],
|
||||
url: function() {
|
||||
return this.api.launchUrl;
|
||||
|
||||
Reference in New Issue
Block a user