Skip to content

Conversation

juskora
Copy link
Contributor

@juskora juskora commented Aug 19, 2025

🎫 Issue IBX-9519

Related PRs:

Description:

This test suite covers the basic tests for the content tree component:

  • check if the header is loaded
  • check if the item is created in the content tree and displayed
  • check if the item is created under specific location in the content tree and displayed
    Plans for the next iteration (to be discussed):
  • extend with test coverage for collapsing content tree elements
  • extend with test coverage for selecting all elements
  • extend with test coverage for deselecting all elements.

For QA:

Documentation:

| Article2 | art2 | root | eng-GB |
| Article3 | art3 | root | eng-GB |
And I am logged as admin
And I'm on Content view Page for "root/art1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add here a dedicated step to verify items on the content tree?
And I'm on Content view Page for "root/art1" does not verify tree (only main container, breadcrumbs, content name and content type). We need something similar to https://github.com/ibexa/taxonomy/blob/5570a47c15d685381ca6603e27dba6e0a60800d1/features/Taxonomy.feature#L40

| Short title | arttest |
| Intro | TestArticleIntro |
And I perform the "Publish" action
And I should be on Content view Page for "root/art1/arttest" No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Verifying items on the content tree also should be added here.

@juskora juskora force-pushed the IBX-9519-behat-contenttree branch 2 times, most recently from b63fbe9 to c972535 Compare October 6, 2025 12:13
Copy link
Contributor

@katarzynazawada katarzynazawada left a comment

Choose a reason for hiding this comment

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

Please resolve issues reported by phpstan and code style check.
Can you run one regression build for the OSS and one for one of the higher editions to make sure the tests are working correctly? (Content tree differs on OSS edition)

/**
* @Given I wait :number seconds
*/
public function iWait(string $number): void
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems unused, please delete it if so.

Comment on lines +38 to +40
new VisibleCSSLocator('treeItem', '.c-tb-list-item-single__label'),
new VisibleCSSLocator('treeElement', '.ibexa-content-tree-container__root .c-tb-list-item-single__element'),
new VisibleCSSLocator('search', '.c-tb-search .ibexa-input'),
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems unused, please delete it if so.

@juskora juskora force-pushed the IBX-9519-behat-contenttree branch from 8e032a9 to 2836713 Compare October 10, 2025 10:44
Copy link

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