mirror of
https://github.com/plankanban/planka.git
synced 2025-08-04 13:05:24 +02:00
test: Setup UI test using BDD approach (#152)
This commit is contained in:
parent
01a7e3a57d
commit
df7746f896
7 changed files with 131 additions and 1 deletions
20
client/tests/acceptance/pageObjects/dashboardPage.js
Normal file
20
client/tests/acceptance/pageObjects/dashboardPage.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
module.exports = {
|
||||
url: function () {
|
||||
return this.api.launchUrl + "/dashboard";
|
||||
},
|
||||
commands: {
|
||||
isDashboardPage: async function () {
|
||||
let result = false;
|
||||
await this.waitForElementVisible("@dashboardHeader");
|
||||
await this.isVisible("@dashboardHeader", (res) => {
|
||||
result = res.value;
|
||||
});
|
||||
return result;
|
||||
},
|
||||
},
|
||||
elements: {
|
||||
dashboardHeader: {
|
||||
selector: "a.Header_title__3SEjb",
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue