Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianTurner committed Jul 5, 2024
1 parent 4f4af47 commit c4c444a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/party-time-frontend-17/-e2e/src/e2e/F005.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const requirement = 'F005';
const uninviteGuest = 'Gäste ausladen';
describe(uninviteGuest, () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login();
cy.visit('/events');
});
Expand Down
25 changes: 23 additions & 2 deletions apps/party-time-frontend-17/-e2e/src/e2e/F011.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,35 @@ const requirement = 'F011';
const login_account_success = 'Konto anmelden';
describe(login_account_success, () => {
beforeEach(() => {
cy.visit('/');
cy.viewport(1920, 1080);

cy.visit('/auth/login');
});

const loginFormTest =
'Nutzer müssen ein Anmeldeformular ausfüllen, das ihre E-Mail-Adresse und ein Passwort erfordert.';
it(loginFormTest, () => {
cy.screenshot(
getScreenshotPath(requirement, login_account_success, loginFormTest),
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.screenshot(
getScreenshotPath(requirement, login_account_success, "2"),
{
overwrite: true,
capture: 'viewport',
}
);
cy.get('[data-cy="login-button"]').click();
cy.screenshot(
getScreenshotPath(requirement, login_account_success, "3"),
{
overwrite: true,
capture: 'viewport',
Expand Down
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.

0 comments on commit c4c444a

Please sign in to comment.