Files
lucia-frontend/cypress/e2e/pasteUrlLoginRedirect.cy.js
Cindy Chang 314670eafd fix #216. Add base5
encode. Also add cypress.
2024-06-11 12:23:17 +08:00

18 lines
695 B
JavaScript

const urlUnderTest = `https://REDACTED-HOST/login?return-to=aHR0cHM6Ly9sdWNpYS1kZXYuZHNwLmltL2Rpc2NvdmVyL2NvbmZvcm1hbmNlL2xvZy8xODU1MjQ3OTcvY29uZm9ybWFuY2U=`;
describe('Conformance', ()=>{
beforeEach(() => {
cy.visit(urlUnderTest);
});
it('After pasting discover/conformance/log/ page, frontend should redirect to corresponding\
page, not login page', () => {
cy.get('#account').clear().type(` ${Cypress.env('user').username} `);
cy.get('#password').clear().type(` ${Cypress.env('user').password} `);
cy.get('.btn-lg').click();
cy.get('form').submit();
cy.contains('Conformance Checking Results').should('be.visible');
})
});