Add new test, update naming

This commit is contained in:
Ramon Wenger 2021-10-18 17:46:45 +02:00
parent 60e3cc264c
commit 3c03e3c741
3 changed files with 24 additions and 11 deletions

View File

@ -0,0 +1,17 @@
describe('Instruments Page', () => {
beforeEach(() => {
cy.setup();
});
it('opens the instruments page', () => {
cy.mockGraphqlOps({
operations: {
MeQuery: {},
InstrumentsQuery: {
instruments: []
}
}
});
cy.visit('instruments/');
});
});

View File

@ -1,4 +1,4 @@
query InstrumentQuery($type: String!){ query InstrumentsQuery($type: String!){
instruments(type: $type) { instruments(type: $type) {
edges { edges {
node { node {

View File

@ -1,13 +1,9 @@
query InstrumentQuery { query InstrumentsQuery {
instruments { instruments {
edges { id
node { title
id contents
title slug
contents type
slug
type
}
}
} }
} }