From 9c417d5fdbe540de6a2b3a4f60568b8eebce688f Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Tue, 8 Nov 2022 17:23:08 +0545 Subject: [PATCH] seperate step defs --- tests/e2e/pageObjects/NextcloudLoginPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/pageObjects/NextcloudLoginPage.js b/tests/e2e/pageObjects/NextcloudLoginPage.js index 4beaa837d..b23141e68 100644 --- a/tests/e2e/pageObjects/NextcloudLoginPage.js +++ b/tests/e2e/pageObjects/NextcloudLoginPage.js @@ -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