Skip to content
Extraits de code Groupes Projets
Valider 12b9845d rédigé par Brieuc Dubois's avatar Brieuc Dubois
Parcourir les fichiers

Fix test CI

parent 36c7dde8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!51E2e
...@@ -27,16 +27,30 @@ playwright_tests: ...@@ -27,16 +27,30 @@ playwright_tests:
- merge_requests - merge_requests
image: node:lts image: node:lts
before_script: before_script:
- cd e2e-tests # Install Python and pip
- apt-get update -y
- apt-get install -y python3 python3-pip python3-venv
# Set up backend Python environment
- cd backend
- python3 -m venv .env
- source .env/bin/activate
- pip install -r requirements.txt
- cd ../
# Set up frontend Node.js environment
- cd frontend
- npm install -g pnpm - npm install -g pnpm
- pnpm install - pnpm install
- pnpm exec playwright install --with-deps - cd ../
# Set up e2e-tests environment
- cd e2e-tests
- pnpm install
- pnpm exec playwright install chromium --with-deps
script: script:
- pnpm exec playwright test - pnpm exec playwright test
artifacts: artifacts:
when: always when: always
paths: paths:
- playwright-report/ - e2e-tests/playwright-report/
expire_in: 30 days expire_in: 30 days
timeout: 60m timeout: 60m
......
...@@ -95,13 +95,13 @@ test("Register a tutor", async ({ page }) => { ...@@ -95,13 +95,13 @@ test("Register a tutor", async ({ page }) => {
.fill("Une courte biographie"); .fill("Une courte biographie");
await page.getByRole("button", { name: "Envoyer" }).click(); await page.getByRole("button", { name: "Envoyer" }).click();
await page.waitForTimeout(100); await page.waitForTimeout(500);
await page.getByTestId("weekday").selectOption("thursday"); await page.getByTestId("weekday").selectOption("thursday");
await page.getByTestId("startTime").selectOption("10:00"); await page.getByTestId("startTime").selectOption("10:00");
await page.getByTestId("endTime").selectOption("11:00"); await page.getByTestId("endTime").selectOption("11:00");
await page.waitForTimeout(100); await page.waitForTimeout(500);
await page.getByRole("button", { name: "Ajouter disponibilité" }).click(); await page.getByRole("button", { name: "Ajouter disponibilité" }).click();
await page.waitForTimeout(100); await page.waitForTimeout(500);
await page.getByRole("button", { name: "Envoyer" }).click(); await page.getByRole("button", { name: "Envoyer" }).click();
await page.getByRole("link", { name: "LanguageLab" }).click(); await page.getByRole("link", { name: "LanguageLab" }).click();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter