Skip to content

Conversation

@kstekovi
Copy link
Collaborator

@kstekovi kstekovi commented Oct 14, 2025

Changes

Main Refactoring

  • Split cypress.config.ts into modular components (reduced from ~400 to ~100 lines)
  • Created config/ directory structure:
    • config/containers/ - Container configuration (WildFly, databases)
    • config/helpers/ - Utility functions (URL builders, error handlers, container helpers)
    • config/tasks/ - Cypress task implementations (WildFly, Keycloak, database, CLI tasks)
    • config/interfaces.ts - TypeScript interfaces

Code Organization

  • Removed "Task" suffix from function names for cleaner API (createWildflyContainerTaskcreateWildflyContainer)
  • Unified constant naming convention (WILDFLY_WAIT_LOGWILDFLY_STARTED_MSG)
  • Improved module exports and imports structure
  • Added proper TypeScript compilation for root-level files (tsconfig.root.json)

Bug Fixes

  • Fixed OIDC tests to properly handle cross-origin authentication flow
    • Added cy.origin() wrapper in verifyNotLoggedIn() function to handle Keycloak origin switching
    • Added cy.url().should("not.include", keycloak) after login to wait for OIDC redirect completion
    • Added 1-second delay in verifyNotLoggedIn() to ensure Keycloak login page fully loads
  • Updated ESLint configuration to use projectService for better performance

@kstekovi kstekovi force-pushed the EAPQE-4285 branch 6 times, most recently from dbb5e4d to 09e7c55 Compare October 14, 2025 15:01
@kstekovi kstekovi changed the title Eapqe 4285 [EAPQE-4285] Modularize cypress.config.ts and fix OIDC cross-origin tests Oct 15, 2025
@OndrejKotek OndrejKotek changed the title [EAPQE-4285] Modularize cypress.config.ts and fix OIDC cross-origin tests Modularize cypress.config.ts and fix OIDC cross-origin tests Oct 15, 2025
@OndrejKotek OndrejKotek merged commit 09d4111 into hal:main Oct 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants