mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
move intercepts to before the login, otherwise they're not always early enough
This commit is contained in:
@@ -4,13 +4,14 @@ import { Options } from 'cypress-axe';
|
|||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
// Must login as an Admin to see the page
|
// Must login as an Admin to see the page
|
||||||
|
cy.intercept('GET', '/server/actuator/health').as('status');
|
||||||
|
cy.intercept('GET', '/server/actuator/info').as('info');
|
||||||
cy.visit('/health');
|
cy.visit('/health');
|
||||||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
|
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Health Page > Status Tab', () => {
|
describe('Health Page > Status Tab', () => {
|
||||||
it('should pass accessibility tests', () => {
|
it('should pass accessibility tests', () => {
|
||||||
cy.intercept('GET', '/server/actuator/health').as('status');
|
|
||||||
cy.wait('@status');
|
cy.wait('@status');
|
||||||
|
|
||||||
cy.get('a[data-test="health-page.status-tab"]').click();
|
cy.get('a[data-test="health-page.status-tab"]').click();
|
||||||
@@ -36,7 +37,6 @@ describe('Health Page > Status Tab', () => {
|
|||||||
|
|
||||||
describe('Health Page > Info Tab', () => {
|
describe('Health Page > Info Tab', () => {
|
||||||
it('should pass accessibility tests', () => {
|
it('should pass accessibility tests', () => {
|
||||||
cy.intercept('GET', '/server/actuator/info').as('info');
|
|
||||||
cy.wait('@info');
|
cy.wait('@info');
|
||||||
|
|
||||||
cy.get('a[data-test="health-page.info-tab"]').click();
|
cy.get('a[data-test="health-page.info-tab"]').click();
|
||||||
|
Reference in New Issue
Block a user