Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 22, 2024
1 parent 825df30 commit 89eb000
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: npm install && npm run build

- name: Start containers
run: docker-compose -f "docker-compose.yml" up -d --build
run: docker-compose -f "tests/UI/docker-compose.yml" up -d --build

- name: Install dependencies
run: npm ci
Expand All @@ -43,5 +43,5 @@ jobs:
if: always()
with:
name: playwright-report
path: playwright-report/
path: tests/UI/reports/
retention-days: 30
8 changes: 7 additions & 1 deletion tests/UI/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
target: /var/www/html/modules/blockwishlist
ports:
- 8000:80
networks:
prestashop:

mysql:
image: mariadb:lts
Expand All @@ -38,4 +40,8 @@ services:
- MYSQL_PASSWORD=prestashop
- MYSQL_ROOT_PASSWORD=prestashop
- MYSQL_PORT=3306
- MYSQL_DATABASE=prestashop
- MYSQL_DATABASE=prestashop
networks:
prestashop:
external: true
name: ui_default
14 changes: 3 additions & 11 deletions tests/UI/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';

function loadGlobal(): void {
global.FO = {
URL: process.env.URL_FO || 'http://localhost/prestashop/',
URL: process.env.URL_FO || 'http://localhost:8000/',
};

/*
Expand All @@ -14,8 +14,8 @@ function loadGlobal(): void {

global.BO = {
URL: process.env.URL_BO || `${global.FO.URL}admin-dev/`,
EMAIL: process.env.LOGIN || 'demo@prestashop.com',
PASSWD: process.env.PASSWD || 'Correct Horse Battery Staple',
EMAIL: process.env.LOGIN || 'admin@prestashop.com',
PASSWD: process.env.PASSWD || 'prestashop',
FIRSTNAME: process.env.FIRSTNAME || 'Marc',
LASTNAME: process.env.LASTNAME || 'Beier',
};
Expand Down Expand Up @@ -64,14 +64,6 @@ function loadGlobal(): void {
smtpServer: process.env.SMTP_SERVER || 'localhost',
silent: true,
};

global.keycloakConfig = {
keycloakExternalUrl: process.env.KEYCLOAK_URL_EXTERNAL || 'http://127.0.0.1:8003',
keycloakInternalUrl: process.env.KEYCLOAK_URL_INTERNAL || 'http://keycloak:8080',
keycloakAdminUser: process.env.KEYCLOAK_ADMIN_USER || 'admin',
keycloakAdminPass: process.env.KEYCLOAK_ADMIN_PASS || 'admin',
keycloakClientId: process.env.KEYCLOAK_CLIENT_ID || 'KEYCLOAK_CLIENT_ID',
};
}

/**
Expand Down

0 comments on commit 89eb000

Please sign in to comment.