Skip to content

Commit

Permalink
improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianTurner committed Jul 10, 2024
1 parent 08d6f85 commit b13be43
Show file tree
Hide file tree
Showing 35 changed files with 46 additions and 23 deletions.
6 changes: 3 additions & 3 deletions apps/party-time-frontend-17/-e2e/src/e2e/F004.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ describe(inviteGuests, () => {
cy.screenshot(getScreenshotPath(requirement, inviteGuests, '3'), {
overwrite: true,
});
cy.get('[data-cy="decline-button"]').each(($button) => {
cy.wrap($button).click();
});
// cy.get('[data-cy="decline-button"]').each(($button) => {
// cy.wrap($button).click();
// });
cy.screenshot(getScreenshotPath(requirement, inviteGuests, '4'), {
overwrite: true,
});
Expand Down
24 changes: 13 additions & 11 deletions apps/party-time-frontend-17/-e2e/src/e2e/F007.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe(invitationReceivedGroup, () => {
const eventDetails =
'Einladungen sollten alle relevanten Informationen zum Event enthalten.';
it(eventDetails, () => {
cy.scrollTo('top');
cy.screenshot(
getScreenshotPath(requirement, invitationReceivedGroup, '1'),
{
Expand All @@ -20,15 +21,16 @@ describe(invitationReceivedGroup, () => {
}
);
});
const inviteDecline =
'Teilnehmer sollten in der Lage sein, Einladungen anzunehmen oder abzulehnen.';
it(inviteDecline, () => {
cy.screenshot(
getScreenshotPath(requirement, invitationReceivedGroup, '2'),
{
overwrite: true,
capture: 'viewport',
}
);
});
// const inviteDecline =
// 'Teilnehmer sollten in der Lage sein, Einladungen anzunehmen oder abzulehnen.';
// it(inviteDecline, () => {
// cy.scrollTo('top');
// cy.screenshot(
// getScreenshotPath(requirement, invitationReceivedGroup, '2'),
// {
// overwrite: true,
// capture: 'viewport',
// }
// );
// });
});
2 changes: 2 additions & 0 deletions apps/party-time-frontend-17/-e2e/src/e2e/F008.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ describe(eventAcceptanceGroup, () => {
const acceptInvitation =
'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.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
overwrite: true,
capture: 'viewport',
});
cy.get('[data-cy="participate-button"]').first().click();
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, eventAcceptanceGroup, '1'), {
overwrite: true,
capture: 'viewport',
Expand Down
1 change: 1 addition & 0 deletions apps/party-time-frontend-17/-e2e/src/e2e/F009.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe(eventCancelation, () => {
'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.get('[data-cy="decline-button"]').first().click();
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, eventCancelation, '1'), {
overwrite: true,
capture: 'viewport',
Expand Down
4 changes: 3 additions & 1 deletion apps/party-time-frontend-17/-e2e/src/e2e/F010.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ describe(createAccountGroup, () => {
);
cy.get('[data-cy="password-input"]').type('Hallo123!party');
cy.get('[data-cy="register-submit-btn"]').click();

// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(500);
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, createAccountGroup, '1'), {
overwrite: true,
capture: 'viewport',
Expand Down
6 changes: 5 additions & 1 deletion apps/party-time-frontend-17/-e2e/src/e2e/F011.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ describe(login_account_success, () => {
const loginFormTest =
'Nutzer müssen ein Anmeldeformular ausfüllen, das ihre E-Mail-Adresse und ein Passwort erfordert.';
it(loginFormTest, () => {
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, login_account_success, '1'), {
overwrite: true,
capture: 'viewport',
});

cy.get('[data-cy="email-input"]').type('[email protected]');
cy.get('[data-cy="password-input"]').type('Hallo123!party');

cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, login_account_success, '2'), {
overwrite: true,
capture: 'viewport',
});
cy.get('[data-cy="login-button"]').click();
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(500);
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, login_account_success, '3'), {
overwrite: true,
capture: 'viewport',
Expand Down
6 changes: 4 additions & 2 deletions apps/party-time-frontend-17/-e2e/src/e2e/F012.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ describe(signOutGroup, () => {
cy.visit('/');

cy.get('[data-cy="user-menu"]').click();

cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, signOutGroup, '1'), {
overwrite: true,
capture: 'viewport',
});

cy.get('[data-cy="sign-out-button"]').click();

cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, signOutGroup, '2'), {
overwrite: true,
capture: 'viewport',
Expand All @@ -33,11 +33,13 @@ describe(signOutGroup, () => {
' Nachdem ein Benutzer sich abgemeldet hat, kann er auf keine persönlichen Daten zugreifen, bis er sich nicht wieder angemeldet hat.';
it(unavailableDataAfterLogout, () => {
cy.visit('/');
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, signOutGroup, '3'), {
overwrite: true,
capture: 'viewport',
});
cy.get('[data-cy="create-event-button"]').click();
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, signOutGroup, '4'), {
overwrite: true,
capture: 'viewport',
Expand Down
11 changes: 10 additions & 1 deletion apps/party-time-frontend-17/-e2e/src/e2e/F013.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe(passwordChange, () => {
'Benutzer sollten in der Lage sein, ihr aktuelles Passwort einzugeben, um ihre Identität zu bestätigen.';
it(confirmPassword, () => {
cy.get('[data-cy="old-password-input"]').type('Hallo123!party');
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, passwordChange, '1'), {
overwrite: true,
capture: 'viewport',
Expand All @@ -22,9 +23,12 @@ describe(passwordChange, () => {
const newPasswordConstraints =
' Das neue Passwort muss bestimmte Anforderungen erfüllen, z. B. eine Mindestlänge und die Verwendung von Sonderzeichen.';
it(newPasswordConstraints, () => {

cy.get('[data-cy="old-password-input"]').type('Hallo123!party');
cy.get('[data-cy="new-password-input"]').type('prty');
cy.get('[data-cy="old-password-input"]').focus();

cy.scrollTo('top');
cy.wait(500);
cy.screenshot(getScreenshotPath(requirement, passwordChange, '2'), {
overwrite: true,
capture: 'viewport',
Expand All @@ -33,7 +37,9 @@ describe(passwordChange, () => {
const newPassword =
'Benutzer sollten in der Lage sein, ein neues Passwort einzugeben und zu bestätigen.';
it(newPassword, () => {
cy.get('[data-cy="old-password-input"]').type('Hallo123!party');
cy.get('[data-cy="new-password-input"]').type('Hallo123!party');
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, passwordChange, '3'), {
overwrite: true,
capture: 'viewport',
Expand All @@ -45,11 +51,14 @@ describe(passwordChange, () => {
it(passwordChangeLogout, () => {
cy.get('[data-cy="old-password-input"]').type('Hallo123!party');
cy.get('[data-cy="new-password-input"]').type('Hallo123!party');
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, passwordChange, '4'), {
overwrite: true,
capture: 'viewport',
});
cy.get('[data-cy="submit-button"]').click();
cy.scrollTo('top');
cy.wait(500);
cy.screenshot(getScreenshotPath(requirement, passwordChange, '5'), {
overwrite: true,
capture: 'viewport',
Expand Down
3 changes: 2 additions & 1 deletion apps/party-time-frontend-17/-e2e/src/e2e/F014.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ describe(verifyAccount, () => {
cy.get('[data-cy="token-input"]').type(
'4edc2ee0-260b-43d2-877a-e2016c14d164'
);
cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, verifyAccount, '1'), {
overwrite: true,
capture: 'viewport',
});
cy.get('[data-cy="verify-button"]').click();

cy.scrollTo('top');
cy.screenshot(getScreenshotPath(requirement, verifyAccount, '2'), {
overwrite: true,
capture: 'viewport',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import { MatIconModule } from '@angular/material/icon';
<section
class="m-5 max-w-md rounded-md border-2"
[ngClass]="{
'bg-blue-500':
'border-blue-500':
participantEvent.invitationDetailsDTO.status === Status.INVITED,
'bg-green-500':
'border-green-500':
participantEvent.invitationDetailsDTO.status ===
Status.PARTICIPATING,
'bg-red-500':
'border-red-500':
participantEvent.invitationDetailsDTO.status === Status.DECLINED
}"
>
Expand Down
Binary file modified docs/requirements-src/F005/F005 - Gäste ausladen -- 1.png
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/F005/F005 - Gäste ausladen -- 2.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.
Binary file modified docs/requirements-src/F007/F007 - Einladung erhalten -- 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.
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/F010/F010 - Konto erstellen -- 1.png
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/F011/F011 - Konto anmelden -- 1.png
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/F011/F011 - Konto anmelden -- 2.png
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/F011/F011 - Konto anmelden -- 3.png
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/F012/F012 - Konto abmelden -- 1.png
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/F012/F012 - Konto abmelden -- 2.png
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/F012/F012 - Konto abmelden -- 3.png
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/F012/F012 - Konto abmelden -- 4.png
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/F013/F013 - Passwort ändern -- 1.png
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/F013/F013 - Passwort ändern -- 2.png
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/F013/F013 - Passwort ändern -- 3.png
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/F013/F013 - Passwort ändern -- 4.png
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/F013/F013 - Passwort ändern -- 5.png
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/F014/F014 - Konto verifizieren -- 1.png
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/F014/F014 - Konto verifizieren -- 2.png
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/F015/F015 - Konto löschen -- 2.png
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/F016/F016 - Events überblicken -- 1.png
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/F016/F016 - Events überblicken -- 2.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 b13be43

Please sign in to comment.