Skip to content

Commit

Permalink
seperate step defs
Browse files Browse the repository at this point in the history
  • Loading branch information
SwikritiT committed Nov 9, 2022
1 parent dd4d2b5 commit 9c417d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/pageObjects/NextcloudLoginPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ class NextcloudLoginPage {
}

async userLogsInNextcloud(username, password) {
await pageNC.goto(config.baseUrlNC);
await pageNC.goto(config.baseUrlNC)
await pageNC.fill(this.usernameSelector, username)
await pageNC.fill(this.passwordSelector,password)
await pageNC.click(this.submitButtonSelector)
}
}
module.exports = { NextcloudLoginPage };
// export default NextcloudLoginPage

0 comments on commit 9c417d5

Please sign in to comment.