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-only] E2e. changing user #8602

Merged
merged 1 commit into from
Mar 14, 2023
Merged

[test-only] E2e. changing user #8602

merged 1 commit into from
Mar 14, 2023

Conversation

ScharfViktor
Copy link
Contributor

@ScharfViktor ScharfViktor commented Mar 13, 2023

created test for editing user

  • name
  • displayName
  • email
  • password
  • role

@update-docs
Copy link

update-docs bot commented Mar 13, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders
Copy link
Contributor

Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/33582/11/1

💥 To see the trace, please open the link in the console ...

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/33582/tracing/user-should-be-able-to-read-and-dismiss-notifications-alice-2023-3-13-12-50-27.zip

npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/33582/tracing/user-should-be-able-to-read-and-dismiss-notifications-brian-2023-3-13-12-50-33.zip

💥 The e2e-oc10 tests pipeline failed. The build has been cancelled.

@ScharfViktor ScharfViktor force-pushed the changeUser branch 2 times, most recently from badb527 to 4d3ec38 Compare March 13, 2023 14:35
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Comment on lines +260 to +268
const newUser = this.usersEnvironment.createUser({
key: value,
user: {
id: value,
displayName: '',
password: 'password',
email: ''
}
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity: why not call this.usersEnvironment.getUser() here instead?

Copy link
Contributor Author

@ScharfViktor ScharfViktor Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then we get error user with key anna not found.
https://github.com/owncloud/web/blob/master/tests/e2e/support/environment/userManagement.ts#L8-L9
We need create anna in the store before deleting

@ScharfViktor ScharfViktor merged commit 0cb0d6c into master Mar 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the changeUser branch March 14, 2023 09:07
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.

3 participants