Skip to content

Commit 9cdbec3

Browse files
committed
fixed tests
1 parent b685a4a commit 9cdbec3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Mealz/MealBundle/Tests/Controller/EventControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testJoin(): void
156156
$partRepo = self::getContainer()->get(ParticipantRepositoryInterface::class);
157157

158158
/** @var Participant $part */
159-
$part = $partRepo->findOneBy(['event' => $eventPart->getId()]);
159+
$part = $partRepo->findOneBy(['event_participation' => $eventPart->getId()]);
160160
$this->assertNotNull($part);
161161

162162
$this->assertEquals(self::USER_KITCHEN_STAFF, $part->getProfile()->getUsername());
@@ -194,7 +194,7 @@ public function testLeave(): void
194194
$partRepo = self::getContainer()->get(ParticipantRepositoryInterface::class);
195195

196196
/** @var Participant $part */
197-
$part = $partRepo->findOneBy(['event' => $eventPart->getId()]);
197+
$part = $partRepo->findOneBy(['event_participation' => $eventPart->getId()]);
198198
$this->assertNull($part);
199199
}
200200

tests/e2e/cypress/e2e/Menu.cy.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('Test Weeks View', () => {
2525
cy.wait(['@getDishesCount', '@getCategories', '@getDishes', '@getEvents', '@getLockdates']);
2626

2727
cy.url().should('include', '/menu');
28-
cy.get('h2').should('contain', 'Woche bearbeiten #28 (08.07. - 12.07.)');
28+
cy.get('h2').should('contain', 'Woche bearbeiten #28 (07.07. - 11.07.)');
2929

3030
// change input
3131
cy.get('input')
@@ -41,7 +41,7 @@ describe('Test Weeks View', () => {
4141
.parent().parent()
4242
.find('li').contains('Lammhaxxe in Biersoße mit Klößen')
4343
.click();
44-
cy.get('h2').should('contain', 'Woche bearbeiten #28 (08.07. - 12.07.)').click();
44+
cy.get('h2').should('contain', 'Woche bearbeiten #28 (07.07. - 11.07.)').click();
4545

4646
// change event
4747
cy.get('input')
@@ -93,7 +93,7 @@ describe('Test Weeks View', () => {
9393
.clear()
9494
.type('17');
9595
cy.get('span').contains('Limit').parent().find('svg').click();
96-
cy.get('h2').should('contain', 'Woche bearbeiten #28 (08.07. - 12.07.)').click();
96+
cy.get('h2').should('contain', 'Woche bearbeiten #28 (07.07. - 11.07.)').click();
9797

9898
// change lock date
9999
cy.get('input')
@@ -112,7 +112,7 @@ describe('Test Weeks View', () => {
112112
.contains(new RegExp(/^7$/))
113113
.click()
114114
cy.get('span').contains('Sperren').parent().find('svg').click();
115-
cy.get('h2').should('contain', 'Woche bearbeiten #28 (08.07. - 12.07.)').click();
115+
cy.get('h2').should('contain', 'Woche bearbeiten #28 (07.07. - 11.07.)').click();
116116

117117
// change input
118118
cy.get('input')
@@ -130,7 +130,7 @@ describe('Test Weeks View', () => {
130130
.click();
131131
cy.get('button').contains('Variation').click();
132132
cy.get('span').contains('Innards DE #v1').click();
133-
cy.get('h2').should('contain', 'Woche bearbeiten #28 (08.07. - 12.07.)').click();
133+
cy.get('h2').should('contain', 'Woche bearbeiten #28 (07.07. - 11.07.)').click();
134134

135135
cy.contains('input', 'Speichern').click();
136136

0 commit comments

Comments
 (0)