1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-04 13:05:24 +02:00

add the config.js file

Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
This commit is contained in:
nabim777 2024-10-07 16:33:44 +05:45
parent db81ebcc7f
commit 9670bd01f8
No known key found for this signature in database
GPG key ID: 6EBA146273BEC371
4 changed files with 27 additions and 10 deletions

View file

@ -1,9 +1,12 @@
const config = require(`../config`);
class LoginPage {
constructor() {
// url
this.homeUrl = 'http://localhost:1337';
this.loginUrl = `${this.homeUrl}/login`;
this.homeUrl = config.baseUrl;
this.loginUrl = `${this.homeUrl}login`;
// selectors
this.loginButtonSelector = `//i[@class="right arrow icon"]`;
this.usernameSelector = `//input[@name='emailOrUsername']`;
this.passwordSelector = `//input[@name='password']`;