Skip to content

Commit

Permalink
Remove cy.origin
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Apr 21, 2024
1 parent 5ea601f commit f41a715
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test/cypress/e2e/oidc/oidc_auth_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ afterEach(() => {

describe('Log in via OIDC', () => {
const kcLogin = () => {
cy.origin('http://127.0.0.1:8080', () => {
const login = 'admin';
const password = 'admin';

cy.get('#kc-page-title').should('be.visible');
cy.get('input[id=username]').should('be.visible').type(login);
cy.get('input[id=password]').should('be.visible').type(password);
cy.get('#kc-login').click();
});
const login = 'admin';
const password = 'admin';

cy.get('#kc-page-title').should('be.visible');
cy.get('input[id=username]').should('be.visible').type(login);
cy.get('input[id=password]').should('be.visible').type(password);
cy.get('#kc-login').click();
};

it('Login to app/opensearch_dashboards_overview#/ when OIDC is enabled', () => {
Expand Down

0 comments on commit f41a715

Please sign in to comment.