Stabilize remaining full e2e slices
This commit is contained in:
@@ -29,6 +29,14 @@ async function triggerMenuHover(locator: Locator) {
|
||||
await locator.dispatchEvent("mouseover");
|
||||
}
|
||||
|
||||
async function hoverMenuTarget(page: Page, locator: Locator) {
|
||||
const box = await locator.boundingBox();
|
||||
expect(box).not.toBeNull();
|
||||
|
||||
await page.mouse.move((box?.x ?? 0) + (box?.width ?? 0) / 2, (box?.y ?? 0) + (box?.height ?? 0) / 2);
|
||||
await triggerMenuHover(locator);
|
||||
}
|
||||
|
||||
function jsonResponse(body: unknown, status = 200) {
|
||||
return {
|
||||
status,
|
||||
@@ -2807,7 +2815,7 @@ test.describe("Admin POS Orders - desktop action menu layout", () => {
|
||||
const emailSection = dropdownContent.getByTestId("action-settings-wheel-section-email-notifications");
|
||||
|
||||
await expect(emailSection).toBeVisible();
|
||||
await triggerMenuHover(emailSection);
|
||||
await hoverMenuTarget(page, emailSection);
|
||||
|
||||
const emailSubmenu = dropdownContent.getByTestId("action-settings-wheel-submenu-email-notifications");
|
||||
await expect(emailSubmenu).toBeVisible();
|
||||
|
||||
@@ -2381,12 +2381,14 @@ test("superusers manage release settings, assignments, integrations, and sync op
|
||||
await page.getByTestId("release-target-form").getByRole("button", { name: "Test access" }).click();
|
||||
await expect(page.getByTestId("release-target-form")).toContainText("accessible");
|
||||
await page.getByTestId("release-target-form").getByRole("button", { name: "Save target" }).click();
|
||||
expect(state.targetPayloads[state.targetPayloads.length - 1].deploy_context).toMatchObject({
|
||||
endpoint_mode: "manual",
|
||||
manual_endpoint_host: "manual-api.truckwash.io",
|
||||
manual_endpoint_port: "8443",
|
||||
coolify_ports_exposes: "8080",
|
||||
});
|
||||
await expect
|
||||
.poll(() => state.targetPayloads.at(-1)?.deploy_context, { timeout: 10_000 })
|
||||
.toMatchObject({
|
||||
endpoint_mode: "manual",
|
||||
manual_endpoint_host: "manual-api.truckwash.io",
|
||||
manual_endpoint_port: "8443",
|
||||
coolify_ports_exposes: "8080",
|
||||
});
|
||||
await expect(page.getByTestId("release-targets-table")).toContainText("truckwash/backend-php#canary");
|
||||
await expect(
|
||||
page.getByTestId("release-targets-table").locator('[data-testid^="release-target-actions-"]').first()
|
||||
|
||||
Reference in New Issue
Block a user