feat: enhance build process and add readiness checks for components
Some checks failed
docker-images / resolve-build-targets (push) Successful in 6s
ui-regression / playwright-regression (push) Failing after 13m44s
docker-images / build-and-push (admin) (push) Successful in 1m13s
docker-images / build-and-push (backend) (push) Successful in 45m36s
docker-images / build-and-push (frontend) (push) Successful in 1m29s
docker-images / submit-indexnow (push) Successful in 18s
Some checks failed
docker-images / resolve-build-targets (push) Successful in 6s
ui-regression / playwright-regression (push) Failing after 13m44s
docker-images / build-and-push (admin) (push) Successful in 1m13s
docker-images / build-and-push (backend) (push) Successful in 45m36s
docker-images / build-and-push (frontend) (push) Successful in 1m29s
docker-images / submit-indexnow (push) Successful in 18s
This commit is contained in:
@@ -33,6 +33,26 @@ export async function patchAdminSiteSettings(
|
||||
return response.json()
|
||||
}
|
||||
|
||||
export async function waitForHomeInteractive(page: Page) {
|
||||
await page.waitForFunction(
|
||||
() => (window as Window & { __termiHomeReady?: boolean }).__termiHomeReady === true,
|
||||
)
|
||||
}
|
||||
|
||||
export async function waitForCommentsReady(page: Page) {
|
||||
await page.waitForFunction(
|
||||
() => (window as Window & { __termiCommentsReady?: boolean }).__termiCommentsReady === true,
|
||||
)
|
||||
}
|
||||
|
||||
export async function waitForSubscriptionPopupReady(page: Page) {
|
||||
await page.waitForFunction(
|
||||
() =>
|
||||
(window as Window & { __termiSubscriptionPopupReady?: boolean })
|
||||
.__termiSubscriptionPopupReady === true,
|
||||
)
|
||||
}
|
||||
|
||||
export async function loginAdmin(page: Page) {
|
||||
await page.goto('/login')
|
||||
await page.getByLabel('用户名').fill('admin')
|
||||
|
||||
Reference in New Issue
Block a user