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`. |
||
|---|---|---|
| .. | ||
| .run | ||
| appsmith-git | ||
| appsmith-interfaces | ||
| appsmith-plugins | ||
| appsmith-server | ||
| envs | ||
| mongo-seed | ||
| reactive-caching | ||
| scripts | ||
| .gitignore | ||
| build.sh | ||
| buildpack-run.sh | ||
| docker-compose.yml | ||
| pom.xml | ||
| Procfile | ||
| README.md | ||
| system.properties | ||
Appsmith Server
This is the server-side repository for the Appsmith framework.
For details on setting up your development machine, please refer to this Setup Guide.