-
Notifications
You must be signed in to change notification settings - Fork 894
chore: enable terraform provisioners in e2e by default #13134
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
Changes from 1 commit
c810759
5294740
ae89373
e12e721
f4dbfb5
2a09af3
736df67
f104148
e82b2c3
de3f81d
8fdaf2c
f4d7c0d
50501e8
c25f6c4
604227e
f5e09cd
3862311
3173a5e
fca5946
d9a8dc7
e34546f
ab2c29f
c521532
2b77082
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,17 +150,42 @@ test("create workspace with disable_param search params", async ({ page }) => { | |
await expect(page.getByLabel(/Second parameter/i)).toBeDisabled(); | ||
}); | ||
|
||
test("docker based workspace", async ({ page }) => { | ||
test("create docker workspace", async ({ page }) => { | ||
test.skip( | ||
true, | ||
"creating docker containers is currently leaky. They are not cleaned up when the tests are over.", | ||
); | ||
Comment on lines
+155
to
+158
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to resolve this in another PR. Terraform provisioners are now working, just need to do some cleanup before I allow this test into the mainstage. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tracked here: #13163 |
||
requiresTerraform(); | ||
const templateName = await createTemplate( | ||
page, | ||
StarterTemplates.STARTER_DOCKER, | ||
const template = await createTemplate(page, StarterTemplates.STARTER_DOCKER); | ||
|
||
const _ = await createWorkspace(page, template); | ||
|
||
// The workspace agents must be ready before we try to interact with the workspace. | ||
await page.waitForSelector( | ||
`//div[@role="status"][@data-testid="agent-status-ready"]`, | ||
{ | ||
state: "visible", | ||
}, | ||
); | ||
|
||
await page.goto(`/templates/${templateName}/workspace`, { | ||
waitUntil: "domcontentloaded", | ||
// Wait for the terminal button to be visible, and click it. | ||
const terminalButton = | ||
"//a[@data-testid='terminal'][normalize-space()='Terminal']"; | ||
await page.waitForSelector(terminalButton, { | ||
state: "visible", | ||
}); | ||
|
||
await expect(page.getByLabel(/First parameter/i)).toBeDisabled(); | ||
await expect(page.getByLabel(/Second parameter/i)).toBeDisabled(); | ||
// We can't click the terminal button because that opens a new tab. | ||
// So grab the href, and manually navigate. | ||
const terminalPageURL = await page.getAttribute(terminalButton, "href"); | ||
Emyrk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
expect(terminalPageURL).not.toBeNull(); | ||
await page.goto(terminalPageURL!, { | ||
waitUntil: "domcontentloaded", | ||
}); | ||
await page.waitForSelector( | ||
`//textarea[contains(@class,"xterm-helper-textarea")]`, | ||
{ | ||
state: "visible", | ||
}, | ||
); | ||
}); |
Uh oh!
There was an error while loading. Please reload this page.