Update frontend test

This commit is contained in:
Ramon Wenger 2021-03-17 22:28:28 +01:00
parent 81e5704fbe
commit 92885c3494
1 changed files with 10 additions and 4 deletions

View File

@ -28,7 +28,11 @@ const operations = {
],
},
},
MeQuery: {},
MeQuery: {
me: {
onboardingVisited: true
}
},
AddProject: variables => ({
addProject: {
project: Object.assign({}, variables.input.project),
@ -39,9 +43,7 @@ const operations = {
};
describe('New project', () => {
it('creates a new project and displays it', () => {
cy.server();
before(() => {
cy.task('getSchema').then(schema => {
cy.mockGraphql({
schema,
@ -49,6 +51,10 @@ describe('New project', () => {
operations,
});
});
});
it('creates a new project and displays it', () => {
cy.server();
cy.viewport('macbook-15');
cy.fakeLogin('rahel.cueni', 'test');