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 it's possible to create content items under specific location in the content tree
    Plans for the next iteration:
  • 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:

@juskora juskora force-pushed the IBX-9519-behat-contenttree branch from 578649c to baa9975 Compare September 4, 2025 09:21
Copy link

sonarqubecloud bot commented Sep 4, 2025

@juskora juskora marked this pull request as ready for review September 4, 2025 10:41
@juskora juskora requested a review from a team September 4, 2025 10:41
@ezrobot ezrobot requested review from micszo, pawlakadrian, barbaragr, katarzynazawada, tomaszszopinski and KamilSznajdrowicz and removed request for a team September 4, 2025 10:41
| 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

When I start creating a new content "Article"
And I set content fields
| label | value |
| Title | Arttest |
Copy link
Contributor

Choose a reason for hiding this comment

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

| needs to be aligned

| Short title | arttest |
| Intro | TestArticleIntro |
And I perform the "Publish" action
And I should be on Content view Page for "root/art1/arttest"
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.

new VisibleCSSLocator('header', '.ibexa-content-tree-container .c-tb-header__name-content,.c-header .c-header__name'),
// new VisibleCSSLocator('optionsButton', '.c-tb-contextual-menu__toggler'),
// new VisibleCSSLocator('menuOption', '.c-tb-action-list__item'),
// new VisibleCSSLocator('item', '.c-tb-list-item-single__element .c-tb-list-item-single__element--main')
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove comments :)

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.

6 participants