Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorisFokkinga committed Dec 5, 2024
1 parent f1a130d commit 7a95b9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ context('WayfMouseBehaviour', () => {
// Ensure some elements are NOT on the page
cy.notOnPage('Identity providers without access').should('not.exist');
cy.notOnPage('Remember my choice');
cy.notOnPage('Return to service provider');
cy.notOnPage('Return to application');

});

Expand All @@ -38,15 +38,15 @@ context('WayfMouseBehaviour', () => {
it('Should show the return to service link when configured', () => {
cy.visit('https://engine.vm.openconext.org/functional-testing/wayf?connectedIdps=5&backLink=true');
cy.onPage('Select an organisation to log in to the application');
cy.onPage('Return to service provider');
cy.onPage('Return to application');

// Ensure some elements are NOT on the page
cy.notOnPage('Identity providers without access');
cy.notOnPage('Remember my choice');

// To be more precise, the links should be in the header and footer
cy.get('.mod-header .comp-links li:nth-child(1) a').should('have.text', 'Return to service provider');
cy.get('.footer-menu .comp-links li:nth-child(2) a').should('have.text', 'Return to service provider');
cy.get('.mod-header .comp-links li:nth-child(1) a').should('have.text', 'Return to application');
cy.get('.footer-menu .comp-links li:nth-child(2) a').should('have.text', 'Return to application');
});

it('Should show the remember my choice option', () => {
Expand All @@ -56,6 +56,6 @@ context('WayfMouseBehaviour', () => {
cy.onPage('Remember my choice');
// Ensure some elements are NOT on the page
cy.notOnPage('Identity providers without access');
cy.notOnPage('Return to service provideraccess');
cy.notOnPage('Return to applicationaccess');
});
})
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('WAYF behaviour not tied to mouse / keyboard navigation', () => {
cy.visit('https://engine.vm.openconext.org/functional-testing/wayf');
cy.notOnPage('Identity providers without access').should('not.exist');
cy.notOnPage('Remember my choice');
cy.notOnPage('Return to service provider');
cy.notOnPage('Return to application');
});

it('Should show ten connected IdPs', () => {
Expand Down Expand Up @@ -190,7 +190,7 @@ context('WAYF behaviour not tied to mouse / keyboard navigation', () => {
it('Ensure some elements are NOT on the page', () => {
cy.visit('https://engine.vm.openconext.org/functional-testing/wayf?connectedIdps=5&rememberChoiceFeature=true');
cy.notOnPage('Identity providers without access');
cy.notOnPage('Return to service provideraccess');
cy.notOnPage('Return to applicationaccess');
});
});

Expand Down

0 comments on commit 7a95b9c

Please sign in to comment.