Skip to content

Conversation

@pawlakadrian
Copy link
Contributor

🎫 Issue IBX-10333

Description:

New scenario for hide later content coverage

For QA:

Documentation:

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2025

@pawlakadrian
Copy link
Contributor Author

Regression:
OSS: ibexa/oss#243 👍
Commerce: ibexa/commerce#1528 👍

@pawlakadrian pawlakadrian requested a review from a team October 3, 2025 12:40
@ezrobot ezrobot requested review from KamilSznajdrowicz, barbaragr, juskora, katarzynazawada, micszo and tomaszszopinski and removed request for a team October 3, 2025 12:40
Copy link
Contributor

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nitpicks :)

| title | short_title | intro |
| TestArticleToHideLater | TestArticleToHideLater | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToHideLater"
When I perform the "Hide" action
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets only use When/Then once per scenario. Focus of this scenario should a be a scheduler run.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, fixed.

| title | short_title | intro |
| TestArticleToCancelHideLater | TestArticleToCancelHideLater | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToCancelHideLater"
When I perform the "Hide" action
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Contributor Author

@pawlakadrian pawlakadrian Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed too

use Ibexa\Behat\Browser\Element\Criterion\ElementTextCriterion;
use Ibexa\Behat\Browser\Locator\VisibleCSSLocator;

class CancelContentDialog extends Dialog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that Dialog component should be enough here.
This locator https://github.com/ibexa/admin-ui/blob/main/src/lib/Behat/Component/Dialog.php#L35C47-L35C177 covers Cancel scheduled hiding button
Screenshot 2025-10-06 at 12 22 15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, working as expected.

@pawlakadrian pawlakadrian force-pushed the IBX-10333-hide-later-content branch 2 times, most recently from 4c7194b to 5d86a63 Compare November 18, 2025 12:16
@pawlakadrian pawlakadrian force-pushed the IBX-10333-hide-later-content branch from da2886f to 12685f2 Compare November 18, 2025 14:47
@pawlakadrian pawlakadrian changed the title IBX-10333 Added scenario for hide later coverage IBX-10333 [Behat] Added scenario for hide later coverage Nov 19, 2025
@pawlakadrian pawlakadrian force-pushed the IBX-10333-hide-later-content branch from 202c3ed to e5a5753 Compare November 19, 2025 12:25

Ibexa\AdminUi\Behat\Component\TrashSearch: ~

Ibexa\AdminUi\Behat\Component\CancelContentDialog: ~
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary after removing CancelContentDialog

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I missed that :) Already removed.

@sonarqubecloud
Copy link

Copy link
Contributor

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Ive got only one small concern, did you check what time is suggested in 'Hide later'? Usually its 1hr earlier (is by default -1hr or it depends on timezones?), so it works now, but would it be possible for the tests to fail somehow? This is just theoretical rambling from me just to be clear 😉

@pawlakadrian
Copy link
Contributor Author

👍 Ive got only one small concern, did you check what time is suggested in 'Hide later'? Usually its 1hr earlier (is by default -1hr or it depends on timezones?), so it works now, but would it be possible for the tests to fail somehow? This is just theoretical rambling from me just to be clear 😉

I'm not sure that it's depends on timezone, but we can see it's -1hr. To avoid complicating the tests, this can be accepted and the expected result obtained. However, if we wanted to interfere with the dates, we would have to wait for the time to change before moving on, which would prolong the tests. Hope it's ok for you? :)

@tomaszszopinski
Copy link
Contributor

Yes, i just worry that the fact that its -1hr is a little too convenient :D

@micszo micszo merged commit 021ad26 into 4.6 Nov 20, 2025
28 checks passed
@micszo micszo deleted the IBX-10333-hide-later-content branch November 20, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants