Skip to content

Commit

Permalink
TC-47 Test cypress e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Jan 17, 2025
1 parent 427ffe0 commit d5e1de8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/oxid-esales/cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ check_docker_compose() {
}


"$SCRIPT_DIR/set_shop_url.sh" https://oxideshop.lacal
"$SCRIPT_DIR/set_shop_url.sh" https://oxideshop.local
echo "Setting module configuration..."
mkdir -p source/var/configuration/environment/shops/1/modules/
cp "$SCRIPT_DIR/config/osc_telecash.yaml" source/var/configuration/environment/shops/1/modules/osc_telecash.yaml
Expand Down Expand Up @@ -102,7 +102,7 @@ docker compose exec mysql sh -c 'until mysqladmin ping --silent; do sleep 2; don
echo "Running database scripts..."
chmod +x "$SCRIPT_DIR/db_backup.sh"
"$SCRIPT_DIR/db_backup.sh" backup
"$SCRIPT_DIR/db_backup.sh" import_test_db
#"$SCRIPT_DIR/db_backup.sh" import_test_db

echo "Validating docker-compose.yml..."
docker compose config || {
Expand Down Expand Up @@ -148,7 +148,7 @@ echo "Waiting for services to stabilize..."
sleep 60

#"$SCRIPT_DIR/db_backup.sh" restore
"$SCRIPT_DIR/set_shop_url.sh" https://oxideshop.lacal
"$SCRIPT_DIR/set_shop_url.sh" https://oxideshop.local

echo "Displaying Cypress logs..."
docker compose logs cypress || echo -e "${RED}No logs available for Cypress.${NC}"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
e2e: {
baseUrl: 'https://daniil.oxiddev.de', // Replace with your actual base URL
baseUrl: 'https://oxideshop.local', // Replace with your actual base URL
specPattern: 'cypress/frontend_tests/**/*.cy.js', // Test file pattern
supportFile: false, // Disable the default support file
video: true,
Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/cypress/_data/dump.sql

Large diffs are not rendered by default.

0 comments on commit d5e1de8

Please sign in to comment.