skillbox/client/cypress/integration/frontend/instruments-page.spec.js

28 lines
709 B
JavaScript

describe('Instruments Page', () => {
beforeEach(() => {
cy.setup();
});
it('opens the instruments page', () => {
cy.mockGraphqlOps({
operations: {
MeQuery: {},
InstrumentsQuery: {
instruments: [
{},
{}
]
}
}
});
cy.visit('instruments/');
cy.getByDataCy('filter-all-instruments').should('exist');
cy.getByDataCy('filter-language-communication').should('exist');
cy.getByDataCy('filter-society').should('exist');
cy.getByDataCy('filter-interdisciplinary').should('exist');
cy.getByDataCy('filter-analysis').should('exist');
cy.getByDataCy('filter-ethics').should('exist');
});
});