Skip to content

[Testing]: write e2e test for GitHub auth patch #4914

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
jsjoeio opened this issue Feb 25, 2022 · 2 comments
Closed

[Testing]: write e2e test for GitHub auth patch #4914

jsjoeio opened this issue Feb 25, 2022 · 2 comments
Assignees
Labels
testing Anything related to testing

Comments

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2022

May need to talk to @code-asher about this but I'd like to write an e2e in test so #4795 doesn't happen again.

Related

@jsjoeio jsjoeio added the testing Anything related to testing label Feb 25, 2022
@jsjoeio jsjoeio modified the milestones: 4.0.3, March 2022 Feb 25, 2022
@jsjoeio jsjoeio self-assigned this Mar 2, 2022
@jsjoeio jsjoeio modified the milestones: March 2022, April 2022 Mar 22, 2022
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Mar 23, 2022

Notes

e2e tests shouldn't rely on network connections since we want our tests to be deterministic and not fail due to network errors. Therefore my thinking for an e2e test for this is to do something like this:

  1. launch code-server
  2. Command Palette > Publish to GitHub
  3. Select Allow
  4. Assert URL opened includes `auth.code-server.dev``

@code-asher What are your thoughts? Both on this e2e idea and my hypothetical approach.

Or is there a way I could unit test this instead?

My end goal is to prevent regressions and less about how we get there.

@code-asher
Copy link
Member

code-asher commented Mar 31, 2022 via email

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Anything related to testing
Projects
None yet
Development

No branches or pull requests

3 participants