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: {
|
||||
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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue