Update frontend test
This commit is contained in:
parent
42201c1b77
commit
c36a90a149
|
|
@ -1,6 +1,9 @@
|
||||||
import {PROJECT_ENTRY_TEMPLATE} from '../../../../src/consts/strings.consts';
|
import {PROJECT_ENTRY_TEMPLATE} from '../../../../src/consts/strings.consts';
|
||||||
|
|
||||||
describe('Project Page', () => {
|
describe('Project Page', () => {
|
||||||
|
const created = '2021-06-01T11:49:00+00:00';
|
||||||
|
const createdLater = '2021-06-01T12:49:00+00:00';
|
||||||
|
|
||||||
const operations = {
|
const operations = {
|
||||||
MeQuery: {
|
MeQuery: {
|
||||||
me: {
|
me: {
|
||||||
|
|
@ -49,7 +52,7 @@ describe('Project Page', () => {
|
||||||
id: 'UHJvamVjdEVudHJ5Tm9kZTo2NQ==',
|
id: 'UHJvamVjdEVudHJ5Tm9kZTo2NQ==',
|
||||||
description: 'Aktivität:\nKill Thanos\n\n\nReflexion:\nHe sucks\n\n\nNächste Schritte:\nGo for the head',
|
description: 'Aktivität:\nKill Thanos\n\n\nReflexion:\nHe sucks\n\n\nNächste Schritte:\nGo for the head',
|
||||||
documentUrl: '',
|
documentUrl: '',
|
||||||
created: '2020-06-01T13:49:31.262510+00:00',
|
created,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
@ -57,10 +60,9 @@ describe('Project Page', () => {
|
||||||
AddProjectEntry: variables => ({
|
AddProjectEntry: variables => ({
|
||||||
addProjectEntry: {
|
addProjectEntry: {
|
||||||
projectEntry: Object.assign({}, variables.input.projectEntry, {
|
projectEntry: Object.assign({}, variables.input.projectEntry, {
|
||||||
created: '2021-01-20T15:26:58.722773+00:00',
|
created: createdLater
|
||||||
}),
|
}),
|
||||||
errors: null,
|
errors: null
|
||||||
__typename: 'AddProjectEntryPayload',
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
UpdateProjectEntry: variables => ({
|
UpdateProjectEntry: variables => ({
|
||||||
|
|
@ -109,7 +111,7 @@ describe('Project Page', () => {
|
||||||
cy.getByDataCy('modal-save-button').click();
|
cy.getByDataCy('modal-save-button').click();
|
||||||
|
|
||||||
cy.get('.project-entry:last-of-type').within(() => {
|
cy.get('.project-entry:last-of-type').within(() => {
|
||||||
cy.get('.project-entry__paragraph:first-of-type').contains('Join the Guardians');
|
cy.get('.project-entry__paragraph:first-of-type').contains('Schwierigkeiten');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Was? Wie? Welche Mittel?
|
||||||
|
|
||||||
|
|
||||||
Reflexion:
|
Reflexion:
|
||||||
Was ging gut? Was hatte ich für Schweirigkeiten? Was habe ich gelernt?
|
Was ging gut? Was hatte ich für Schwierigkeiten? Was habe ich gelernt?
|
||||||
|
|
||||||
|
|
||||||
Nächste Schritte:
|
Nächste Schritte:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue