Skip to content

Commit

Permalink
fix(test) avoid flaky instance terminal test
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <david.edler@canonical.com>
  • Loading branch information
edlerd committed Apr 12, 2024
1 parent 6e9fb76 commit f824208
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/instances.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ test("instance terminal operations", async ({ page }) => {
await page.getByLabel("Command").fill("sh");
await page.getByLabel("submit reconnect").click();
await expect(page.getByText("~ #")).toBeVisible();
await page.waitForTimeout(1000); // ensure the terminal is ready
await page.keyboard.type("cat /etc/issue");
await page.keyboard.press("Enter");
await expect(page.locator(".xterm-rows")).toContainText("Alpine Linux");
Expand Down

0 comments on commit f824208

Please sign in to comment.