diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 1d84a1ea..8cccb154 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -5,7 +5,8 @@ Changelog ------------------------ - Fix #525: Fix Space calendar header - Enh #526: New event from the global calendar: display "Select space..." or "Select calendar..." prompt instead of first Space -- Enh: Show the "Filter by types" filter only if a list a type is available +- Enh #528: Show the "Filter by types" filter only if a list a type is available +- Fix #523: Global calendar: display the "My profile" filter only when the module is enabled in for the User account 1.7.1 (January 17, 2025) ------------------------ diff --git a/tests/codeception/acceptance/GlobalCalendarCest.php b/tests/codeception/acceptance/GlobalCalendarCest.php index 8caa0b88..8fd84072 100644 --- a/tests/codeception/acceptance/GlobalCalendarCest.php +++ b/tests/codeception/acceptance/GlobalCalendarCest.php @@ -37,20 +37,6 @@ public function testGlobalCalendarCreateEntry(AcceptanceTester $I) $I->see('Select calendars'); $I->waitForText('Space Event', null, '#calendar'); - // Active space and profile filter - $I->click('.calendar_my_spaces'); - $I->click('.calendar_my_profile'); - - $I->wait(2); - - $I->waitForText('Space Event', null, '#calendar'); - - $I->wantToTest('the global calendar filters'); - $I->amGoingTo('deselect the space clalendar filter'); - $I->click('.calendar_my_spaces'); - $I->wait(2); - $I->cantSee('Space Event', '#calendar'); - $I->amGoingTo('activate the profile calendar module by creating a new event'); $I->click('.fc-today'); $I->expectTo('see the choose calendar modal'); @@ -75,12 +61,19 @@ public function testGlobalCalendarCreateEntry(AcceptanceTester $I) //$I->wait(1); $I->waitForText('My Test Profile Entry', null, '.fc-event-container'); + $I->see('My Test Profile Entry', '.fc-title'); - $I->waitForElementVisible('.calendar_my_spaces'); + // Active space filter + $I->amGoingTo('Select the space calendar filter'); $I->click('.calendar_my_spaces'); + $I->wait(2); + $I->waitForText('Space Event', null, '#calendar'); - $I->waitForText('Space Event'); - $I->see('My Test Profile Entry', '.fc-title'); + $I->wantToTest('the global calendar filters'); + $I->amGoingTo('deselect the space calendar filter'); + $I->click('.calendar_my_spaces'); + $I->wait(2); + $I->waitForText('Space Event', null, '#calendar'); } /** diff --git a/widgets/views/calendarFilterBar.php b/widgets/views/calendarFilterBar.php index 17c2e4ac..e10325b0 100644 --- a/widgets/views/calendarFilterBar.php +++ b/widgets/views/calendarFilterBar.php @@ -36,14 +36,16 @@
-
- -
+ user->identity->moduleManager->isEnabled('calendar')): ?> +
+ +
+