Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianTurner committed Jul 4, 2024
1 parent df8b952 commit dc96d7e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
13 changes: 8 additions & 5 deletions apps/party-time-frontend-17/-e2e/src/e2e/F007.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ const invitationReceivedGroup = 'Einladung erhalten';
describe(invitationReceivedGroup, () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login();
cy.visit('/events');
cy.login();
cy.visit('/events');
});

const eventDetails =
'Einladungen sollten alle relevanten Informationen zum Event enthalten.';
it(eventDetails, () => {
cy.screenshot(getScreenshotPath(requirement, invitationReceivedGroup, '1'), {
overwrite: true,
});
cy.screenshot(
getScreenshotPath(requirement, invitationReceivedGroup, '1'),
{
overwrite: true,
}
);
});
const inviteDecline =
'Teilnehmer sollten in der Lage sein, Einladungen anzunehmen oder abzulehnen.';
Expand Down
13 changes: 4 additions & 9 deletions apps/party-time-frontend-17/-e2e/src/e2e/F008.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ describe(eventAcceptanceGroup, () => {
cy.login();
cy.visit('/events');
});

const acceptInvitation =
'Teilnehmer sollten in der Lage sein, ihre Zusage zum Event auf der Plattform zu geben, indem sie auf eine Schaltfläche klicken.';
'Teilnehmer sollten in der Lage sein, ihre Zusage zum Event auf der Plattform zu geben, indem sie auf eine Schaltfläche klicken.';
it(acceptInvitation, () => {
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
overwrite: true,
});
cy.get('[data-cy="participate-button"]').first().click();
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
overwrite: true,
});

cy.get('[data-cy="decline-button"]').first().click();
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
cy.get('[data-cy="participate-button"]').first().click();
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
overwrite: true,
});
});
Expand Down
14 changes: 7 additions & 7 deletions apps/party-time-frontend-17/-e2e/src/e2e/F009.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ const requirement = 'F009';
const eventCancelation = 'Absage zum Event geben';
describe(eventCancelation, () => {
beforeEach(() => {
cy.visit('/');
cy.viewport(1920, 1080);
cy.login();
cy.visit('/events');
});

const declineInvitation =
'Teilnehmer sollten in der Lage sein, ihre Absage zum Event auf der Plattform zu geben, indem sie auf eine Schaltfläche klicken.';
it(declineInvitation, () => {
cy.screenshot(
getScreenshotPath(requirement, eventCancelation, declineInvitation),
{
overwrite: true,
}
);
cy.get('[data-cy="decline-button"]').first().click();
cy.screenshot(getScreenshotPath(requirement, eventCancelation, '1'), {
overwrite: true,
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/requirements-src/F008/Zusage zum Event geben -- 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc96d7e

Please sign in to comment.