Update frontend test
This commit is contained in:
parent
81e5704fbe
commit
92885c3494
|
|
@ -28,7 +28,11 @@ const operations = {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MeQuery: {},
|
MeQuery: {
|
||||||
|
me: {
|
||||||
|
onboardingVisited: true
|
||||||
|
}
|
||||||
|
},
|
||||||
AddProject: variables => ({
|
AddProject: variables => ({
|
||||||
addProject: {
|
addProject: {
|
||||||
project: Object.assign({}, variables.input.project),
|
project: Object.assign({}, variables.input.project),
|
||||||
|
|
@ -39,9 +43,7 @@ const operations = {
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('New project', () => {
|
describe('New project', () => {
|
||||||
it('creates a new project and displays it', () => {
|
before(() => {
|
||||||
cy.server();
|
|
||||||
|
|
||||||
cy.task('getSchema').then(schema => {
|
cy.task('getSchema').then(schema => {
|
||||||
cy.mockGraphql({
|
cy.mockGraphql({
|
||||||
schema,
|
schema,
|
||||||
|
|
@ -49,6 +51,10 @@ describe('New project', () => {
|
||||||
operations,
|
operations,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('creates a new project and displays it', () => {
|
||||||
|
cy.server();
|
||||||
|
|
||||||
cy.viewport('macbook-15');
|
cy.viewport('macbook-15');
|
||||||
cy.fakeLogin('rahel.cueni', 'test');
|
cy.fakeLogin('rahel.cueni', 'test');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue