-
Notifications
You must be signed in to change notification settings - Fork 34
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: add test for using instance terminal [WD-8310] #626
Conversation
Demo starting at https://lxd-ui-626.demos.haus |
tests/instances.spec.ts
Outdated
const terminalInput = page.getByRole("textbox", { name: "Terminal input" }); | ||
await terminalInput.fill("lsb_release -a"); | ||
await terminalInput.press("Enter"); | ||
await expect(page.locator(".xterm-rows")).toContainText("jammy"); |
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 going to change for sure. Maybe check for the text "Distributor ID:", or something else that is not expected to change?
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.
Changed the text check to Ubuntu
. Although in createInstance
we always select a jammy
image, will we update that to the next lts version released?
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 guess we will change it in the future. Maybe it should be a constant? Not sure how to make the test more stable. Or keep with ubuntu it should be fine as well.
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.
Yeah I think for this specific test using Ubuntu should be fine 👍
Signed-off-by: Mason Hu <mason.hu@canonical.com>
64f8187
to
cd25ea3
Compare
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.
LGTM 👍
Done
QA