The test has a `@WithUserDetails(value = "admin@solutiontest.com")` annotation, which means that's the logged-in user for the test's scope. But the setup method calls `inviteUserToWorkspaceWithViewAccess`, which tries to invite `usertest@usertest.com` and `admin@solutiontest.com` to a just-created workspace. But since the workspace was just created by `admin@solutiontest.com`, that user is already an admin on the workpace. So we get this error: ``` com.appsmith.server.exceptions.AppsmithException: The user admin@solutiontest.com has already been added to the workspace with role Administrator - Source Workspace. To change the role, please navigate to `Manage users` page. ``` The test method's doesn't even get called. This error is from the `setup` phase. This PR fixes it by using `api_user` for the session instead of `admin@solutiontest.com`. |
||
|---|---|---|
| .. | ||
| src | ||
| auth-notes | ||
| pom.xml | ||