Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Test/nightwatch v3 #889

wants to merge 8 commits into from

Conversation

acdmft
Copy link
Collaborator

@acdmft acdmft commented Jul 28, 2023

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

@acdmft acdmft requested a review from zak39 July 28, 2023 15:32
@zak39 zak39 assigned zak39 and acdmft and unassigned zak39 Jul 28, 2023
Copy link
Collaborator

@zak39 zak39 left a 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 !!!! 😉

@@ -0,0 +1,17 @@
describe('Login into nextcloud end-to-end test', function() {
Copy link
Collaborator

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 Show resolved Hide resolved
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) {
Copy link
Collaborator

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 ?

.setValue('input#password', browser.globals.adminPwd)
.click('button[type=submit]')
})
it('verifies that workspace icon is present', function(browser) {
Copy link
Collaborator

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 ?

@@ -0,0 +1,29 @@
describe('Create, rename and remove workspaces', function() {
Copy link
Collaborator

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

acdmft added 2 commits July 31, 2023 11:23
divided wsManagement tests in two describe  blocks, added indentations and improved descriptions in login.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants