- Notifications
You must be signed in to change notification settings - Fork1k
fix(site): watch build logs while job is pending or running#15341
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -324,14 +324,13 @@ test("display pending badge and update it to running when status changes", async | ||
}, | ||
}; | ||
letrunning =false; | ||
server.use( | ||
http.get( | ||
"/api/v2/organizations/:org/templates/:template/versions/:version", | ||
() => { | ||
return HttpResponse.json( | ||
running ? MockRunningTemplateVersion : MockPendingTemplateVersion, | ||
MemberAuthor
| ||
); | ||
}, | ||
), | ||
@@ -348,6 +347,10 @@ test("display pending badge and update it to running when status changes", async | ||
const status = await screen.findByRole("status"); | ||
expect(status).toHaveTextContent("Pending"); | ||
// Manually update the endpoint, as to not rely on the editor page | ||
// making a specific number of requests. | ||
running = true; | ||
await waitFor( | ||
() => { | ||
expect(status).toHaveTextContent("Running"); | ||
Uh oh!
There was an error while loading.Please reload this page.