This repository has been archived by the owner on Feb 8, 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.
- Loading branch information
1 parent
bb4bc6c
commit f232e2a
Showing
7 changed files
with
79 additions
and
27 deletions.
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ chromedriver.log | |
libpeerconnection.log | ||
changes.sh | ||
xmloutput* | ||
.DS_Store |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ libpeerconnection.log | |
changes.sh | ||
xmloutput* | ||
.travis.yml | ||
.DS_Store |
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
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
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,45 @@ | ||
module.exports = { | ||
|
||
/** | ||
* @return Promise | ||
*/ | ||
loginWithPassword: function(user, password) { | ||
var driver = this && this.driver || browser && browser.driver; | ||
return driver.executeScriptAsync(function() { | ||
var callback = arguments[arguments.length - 1]; | ||
Meteor.loginWithPassword(user, password, callback); | ||
}); | ||
}, | ||
|
||
/** | ||
* @return Promise | ||
*/ | ||
logout: function() { | ||
var driver = this && this.driver || browser && browser.driver; | ||
return driver.executeScriptAsync(function() { | ||
var callback = arguments[arguments.length - 1]; | ||
Meteor.logout(callback); | ||
}); | ||
}, | ||
|
||
/** | ||
* @return Promise | ||
*/ | ||
userId: function() { | ||
var driver = this && this.driver || browser && browser.driver; | ||
return driver.executeScript(function() { | ||
return Meteor.userId(); | ||
}); | ||
}, | ||
|
||
/** | ||
* @return Promise | ||
*/ | ||
user: function() { | ||
var driver = this && this.driver || browser && browser.driver; | ||
return driver.executeScript(function() { | ||
return Meteor.user(); | ||
}); | ||
} | ||
|
||
}; |
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
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