Thanks to visit codestin.com
Credit goes to github.com

Skip to content

E2E Testing for Workspace lifecycle #1532

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

Closed
misskniss opened this issue May 17, 2022 · 3 comments
Closed

E2E Testing for Workspace lifecycle #1532

misskniss opened this issue May 17, 2022 · 3 comments
Labels
needs decision Needs a higher-level decision to be unblocked. site Area: frontend dashboard

Comments

@misskniss
Copy link

misskniss commented May 17, 2022

Developer Story

Our bread-and-butter critical path in Coder is:

  • Can I create a workspace?
  • Does it build?
  • Can I stop that workspace?

Furthermore, it's desirable to ensure that this critical path is operating as expected with all combinations of user roles.

We want to E2E test these paths.

V1

In V1, we E2E tested that workspaces could be created and cancelled. We used an xstate model to generate all paths.
We also had a matrix of users with various roles.

MVP

An MVP of this ticket does not need to consider the entire matrix that we'd like to cover, but we do want some automated
coverage that we can up/down workspaces. One such test could even bypass the UI at the start and simply use the API.

Acceptance Criteria

  • We have a MVP E2E test that issues up/down (start/stop) on a workspace
  • It is not required to step through the UI at the start
  • It is not required to create a matrix for all user roles

Considerations

  • we use playwright and have an e2e package in progress
  • coderd binary can be run directly, and have these tests performed against them
  • Add in checks to ensure workspaces are not left hanging.
@misskniss misskniss added Community MVP 🏁 site Area: frontend dashboard labels May 17, 2022
@misskniss misskniss added this to the Community MVP milestone May 17, 2022
@greyscaled greyscaled changed the title E2E Testing for Workspace timelines E2E Testing for Workspace lifecycle May 18, 2022
@kylecarbs kylecarbs removed the ci 🤖 label Jun 7, 2022
@misskniss
Copy link
Author

Sync with Dean or Kyle on what running test in CI look like today. Any gotchas?

@greyscaled greyscaled removed this from the Community MVP milestone Jun 9, 2022
@greyscaled greyscaled added needs rfc needs decision Needs a higher-level decision to be unblocked. labels Jun 9, 2022
@greyscaled
Copy link
Contributor

we don't yet have a satisfactory ticket but this is essentially blocked by further infrastructure talks (hence needs rfc)

@kylecarbs
Copy link
Member

This description doesn't seem actionable.

@kylecarbs kylecarbs closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs decision Needs a higher-level decision to be unblocked. site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

4 participants