-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test/nightwatch v3 #889
base: main
Are you sure you want to change the base?
Test/nightwatch v3 #889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a script in the package.json
to run the nightwatch, please ?
Thank you for your job !!!! 😉
tests/nightwatch/login.js
Outdated
@@ -0,0 +1,17 @@ | |||
describe('Login into nextcloud end-to-end test', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace 'Login into nextcloud end-to-end test'
by `Chek if the workspace app is present', please ?
tests/nightwatch/login.js
Outdated
describe('Login into nextcloud end-to-end test', function() { | ||
before(browser => browser.navigateTo(browser.launchUrl)) | ||
|
||
it('arrives on the home page and submits credentials with login form', function(browser) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace arrives on the home page and submits credentials with login form
by login as admin
, please ?
tests/nightwatch/login.js
Outdated
.setValue('input#password', browser.globals.adminPwd) | ||
.click('button[type=submit]') | ||
}) | ||
it('verifies that workspace icon is present', function(browser) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace 'verifies that workspace icon is present'
by check that workspace icon is present
please ?
tests/nightwatch/wsManagement.js
Outdated
@@ -0,0 +1,29 @@ | |||
describe('Create, rename and remove workspaces', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split in three describes please ?
Create workspaces
Rename workspaces
Remove workspaces
divided wsManagement tests in two describe blocks, added indentations and improved descriptions in login.js
this PR contains almost the same code as test/nightwatch-e-2-e-tests except that it uses Nightwatch v. 3.1.1 and launchUrl variables in place of the hardcoded url parameters