Add new test, update naming
This commit is contained in:
parent
60e3cc264c
commit
3c03e3c741
|
|
@ -0,0 +1,17 @@
|
|||
describe('Instruments Page', () => {
|
||||
beforeEach(() => {
|
||||
cy.setup();
|
||||
});
|
||||
|
||||
it('opens the instruments page', () => {
|
||||
cy.mockGraphqlOps({
|
||||
operations: {
|
||||
MeQuery: {},
|
||||
InstrumentsQuery: {
|
||||
instruments: []
|
||||
}
|
||||
}
|
||||
});
|
||||
cy.visit('instruments/');
|
||||
});
|
||||
});
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
query InstrumentQuery($type: String!){
|
||||
query InstrumentsQuery($type: String!){
|
||||
instruments(type: $type) {
|
||||
edges {
|
||||
node {
|
||||
|
|
|
|||
|
|
@ -1,13 +1,9 @@
|
|||
query InstrumentQuery {
|
||||
query InstrumentsQuery {
|
||||
instruments {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
title
|
||||
contents
|
||||
slug
|
||||
type
|
||||
}
|
||||
}
|
||||
id
|
||||
title
|
||||
contents
|
||||
slug
|
||||
type
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue