-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: replace custom test fixture with global setup #3039
Conversation
wesbillman
commented
Oct 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome :D
frontend/console/e2e/global-setup.ts
Outdated
|
||
const browser = await chromium.launch() | ||
|
||
// Create a new browser context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we probably don't need this comment or the one below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree 😂
c7c66ee
to
1cb1238
Compare
Just to clarify... what are we thinking re. testing examples? IMO testing that the examples work is great, is that what we're doing? As opposed to, I guess, using the examples to test that our code works. |
1cb1238
to
31ace5e
Compare
Hmm, ideally we're doing both. We're testing that that |
I don't think it's a good idea for our tests to be tied to the examples, because it means the examples can't evolve without also having to update tests that are unrelated to them. |
Well, you can't have your cake and eat it too :) I think at this point we're basically doing this "IMO testing that the examples work is great" and we're using our existing console tests to do it with the added benefit of making sure the console works e2e with some of our examples. If this starts to become a pain or slows people down with writing examples, we can switch over to the smoketest or something more stable. For the first time we have some confidence in our examples and console, which feels good at the moment. |
We can have our cake and eat it, you do exactly what we've been doing up until this point - have a specific set of modules that are used for your tests. |
Yeah I'm super happy to do that, but it will have the downside of having no idea if our examples work. Plus we'll be continuing to maintain duplicates of lots of module functionality. If that's preferred, then we can just duplicate the examples stuff to use for our e2e tests and deal with examples stability in another way. |