Skip to content

Commit

Permalink
Merge pull request #132 from daniel-frak/fix_e2e_tests_for_ci
Browse files Browse the repository at this point in the history
chore: Make Cypress tests pass in CI
  • Loading branch information
daniel-frak authored Nov 12, 2023
2 parents a855ca0 + ce581f3 commit 619226e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/e2e/cypress/e2e/migrating_users.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ describe('user migration plugin', () => {
function configureMigrationPlugin() {
visitMigrationConfigPage();
cy.get('#kc-ui-display-name')
.focus()
.invoke('val', '') // clear() doesn't seem to work here for some reason
.type('RESTclientprovider');
cy.get('#URI').clear().type(LEGACY_SYSTEM_URL);
Expand All @@ -84,10 +83,9 @@ describe('user migration plugin', () => {
cy.visit('/admin/master/console/#/master/user-federation');
cy.get("h1").should('contain', 'User federation');
cy.wait("@realm");
// Wait for provider list to load
cy.wait(1000);
cy.get('div[class="pf-l-gallery pf-m-gutter"]')
.get('*[data-testid="keycloak-card-title"] a', {timeout: 40000})
// Either add provider, or edit existing:
cy.get('*[data-testid="User migration using a REST client-card"], ' +
'div[class="pf-l-gallery pf-m-gutter"] *[data-testid="keycloak-card-title"] a')
.first()
.click({force: true});
cy.get("h1").should('contain', 'User migration using a REST client');
Expand Down

0 comments on commit 619226e

Please sign in to comment.