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) {
|
instruments(type: $type) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
query InstrumentQuery {
|
query InstrumentsQuery {
|
||||||
instruments {
|
instruments {
|
||||||
edges {
|
id
|
||||||
node {
|
title
|
||||||
id
|
contents
|
||||||
title
|
slug
|
||||||
contents
|
type
|
||||||
slug
|
|
||||||
type
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue