Skip to content

Commit 95ed271

Browse files
authored
Added CI env variables to disable animation during tests on CI (#6335)
1 parent ac601b3 commit 95ed271

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
env:
17-
CI: true
1817
INFRAHUB_DB_USERNAME: neo4j
1918
INFRAHUB_DB_PASSWORD: admin
2019
INFRAHUB_DB_PROTOCOL: bolt

development/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ RUN poetry config virtualenvs.create false
3636
# STAGE : Frontend
3737
# ****************************************************************
3838
FROM docker.io/node:20-slim AS frontend
39+
ARG CI_ARG
40+
ENV CI=$CI_ARG
3941

4042
RUN mkdir /source
4143

development/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ services:
113113
profiles: [demo, dev]
114114
build:
115115
context: ../
116+
args:
117+
CI_ARG: ${CI:-0}
116118
dockerfile: development/Dockerfile
117119
target: backend
118120
image: "${IMAGE_NAME}:${IMAGE_VER}"

frontend/app/tests/e2e/webhook/webhook.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ test.describe("/objects/CoreWebhook", () => {
5757
.getByRole("link", { name: "Ansible EDA", exact: true })
5858
.click();
5959

60+
await expect(page.getByText("Activities", { exact: true })).toBeVisible();
61+
await expect(page.getByText("Loading...")).toBeHidden();
62+
6063
while (await page.getByText("No activity found for this").isVisible()) {
6164
await page.reload();
6265
await expect(page.getByText("Activities", { exact: true })).toBeVisible();

0 commit comments

Comments
 (0)