mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 15:49:46 +02:00
26 lines
632 B
JavaScript
26 lines
632 B
JavaScript
module.exports = {
|
|
url: function () {
|
|
return this.api.launchUrl + "/login";
|
|
},
|
|
commands: {
|
|
logIn: function (email, password) {
|
|
return this.waitForElementVisible("@emailInput")
|
|
.setValue("@emailInput", email)
|
|
.waitForElementVisible("@passwordInput")
|
|
.setValue("@passwordInput", password)
|
|
.waitForElementVisible("@loginBtn")
|
|
.click("@loginBtn");
|
|
},
|
|
},
|
|
elements: {
|
|
emailInput: {
|
|
selector: "input[name=emailOrUsername]",
|
|
},
|
|
passwordInput: {
|
|
selector: "input[name=password]",
|
|
},
|
|
loginBtn: {
|
|
selector: "form button",
|
|
},
|
|
},
|
|
};
|