Skip to content

QA-15348: Fixes for the condition property of json overrides #1733

QA-15348: Fixes for the condition property of json overrides

QA-15348: Fixes for the condition property of json overrides #1733

GitHub Actions / Tests Report cypress.config-jcontent.ts failed Oct 31, 2024 in 0s

87 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/accordions.cy.ts.xml 2✔️ 78s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/breadcrumbs.cy.ts.xml 5✔️ 205s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/breadcrumbsPageBuilder.cy.ts.xml 2✔️ 70s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/contentFolder.cy.ts.xml 1✔️ 27s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/createContent.cy.ts.xml 3✔️ 126s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/createMedia.cy.ts.xml 10✔️ 363s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/customContentBar.cy.ts.xml 2✔️ 25s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/errorDisplay.cy.ts.xml 4✔️ 39s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/header.cy.ts.xml 1✔️ 24s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/links.cy.ts.xml 9✔️ 127s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/mainResource.cy.ts.xml 6✔️ 50s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/menu.cy.ts.xml 3✔️ 38s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/navigation.cy.ts.xml 6✔️ 54s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/preview.cy.ts.xml 2✔️ 39s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/publicationStatus.cy.ts.xml 1✔️ 33s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/publishAcrossViews.cy.ts.xml 1✔️ 24s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/registryLabels.cy.ts.xml 1✔️ 8s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/search.cy.ts.xml 9✔️ 1❌ 118s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/selection.cy.ts.xml 18✔️ 91s
tests/artifacts/results/xml_reports/cypress/e2e/jcontent/tableViews.cy.ts.xml 1✔️ 13s

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/accordions.cy.ts.xml

2 tests were completed in 78s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test accordions 2✔️ 78s

✔️ Test accordions

Check consistencies of RegExp validation pattern
  ✔️ Test accordions Check consistencies of RegExp validation pattern
Adds and displays accordion without permission
  ✔️ Test accordions Adds and displays accordion without permission

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/breadcrumbs.cy.ts.xml

5 tests were completed in 205s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Breadcrumb navigation test 5✔️ 205s
Root Suite 0ms

✔️ Breadcrumb navigation test

Display popup when navigating to list and render list view when selected
  ✔️ Breadcrumb navigation test Display popup when navigating to list and render list view when selected
Display popup when navigating to list and render parent page when selected
  ✔️ Breadcrumb navigation test Display popup when navigating to list and render parent page when selected
Do not display popup when navigating to page
  ✔️ Breadcrumb navigation test Do not display popup when navigating to page
Do not display popup when navigating to list in list view
  ✔️ Breadcrumb navigation test Do not display popup when navigating to list in list view
Display same items as tree content selection
  ✔️ Breadcrumb navigation test Display same items as tree content selection

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/breadcrumbsPageBuilder.cy.ts.xml

2 tests were completed in 70s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Breadcrumbs inside boxes of page builder 2✔️ 70s
Root Suite 0ms

✔️ Breadcrumbs inside boxes of page builder

Verifies breadcrumbs are displayed and can be used to make selection
  ✔️ Breadcrumbs inside boxes of page builder Verifies breadcrumbs are displayed and can be used to make selection
Selects multiple elements
  ✔️ Breadcrumbs inside boxes of page builder Selects multiple elements

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/contentFolder.cy.ts.xml

1 tests were completed in 27s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Content folder 1✔️ 27s
Root Suite 0ms

✔️ Content folder

Open content folders correctly
  ✔️ Content folder Open content folders correctly

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/createContent.cy.ts.xml

3 tests were completed in 126s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Content Folders creation 1✔️ 50s
Create content tests 0ms
Page Builder Creation 2✔️ 74s
Root Suite 0ms

✔️ Content Folders creation

Can create content in content folders
  ✔️ Create content tests Content Folders creation Can create content in content folders

✔️ Page Builder Creation

Create content in page builder
  ✔️ Create content tests Page Builder Creation Create content in page builder
Update newly created content
  ✔️ Create content tests Page Builder Creation Update newly created content

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/createMedia.cy.ts.xml

10 tests were completed in 363s with 10 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Create media tests 10✔️ 363s
Root Suite 0ms

✔️ Create media tests

Can create and delete basic folder
  ✔️ Create media tests Can create and delete basic folder
Can create and delete chinese folder
  ✔️ Create media tests Can create and delete chinese folder
Can create and delete reserved word folder
  ✔️ Create media tests Can create and delete reserved word folder
Can create and delete reserved characters folder
  ✔️ Create media tests Can create and delete reserved characters folder
Can upload, download, rename and delete basic file
  ✔️ Create media tests Can upload, download, rename and delete basic file
Can upload, download, rename and delete accented file
  ✔️ Create media tests Can upload, download, rename and delete accented file
Can upload, rename and delete chinese file
  ✔️ Create media tests Can upload, rename and delete chinese file
Can upload, rename and delete special characters file
  ✔️ Create media tests Can upload, rename and delete special characters file
Can upload, rename and delete file with too much characters in filename
  ✔️ Create media tests Can upload, rename and delete file with too much characters in filename
Can open created file in advanced mode with preview
  ✔️ Create media tests Can open created file in advanced mode with preview

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/customContentBar.cy.ts.xml

2 tests were completed in 25s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Custom content bar test 2✔️ 25s
Root Suite 0ms

✔️ Custom content bar test

Check if custom bar is always displayed in page builder for cent:defaultValueTest
  ✔️ Custom content bar test Check if custom bar is always displayed in page builder for cent:defaultValueTest
Check if custom bar is always displayed in page builder for cemix:withCustomBar
  ✔️ Custom content bar test Check if custom bar is always displayed in page builder for cemix:withCustomBar

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/errorDisplay.cy.ts.xml

4 tests were completed in 39s with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Root Suite 0ms
Validate error handling 4✔️ 39s

✔️ Validate error handling

Displays a 404 when reaching non existing page
  ✔️ Validate error handling Displays a 404 when reaching non existing page
Displays a 404 when reaching non existing folder
  ✔️ Validate error handling Displays a 404 when reaching non existing folder
Displays a 404 when reaching non existing page and allow to navigate back to existing page
  ✔️ Validate error handling Displays a 404 when reaching non existing page and allow to navigate back to existing page
Displays a 404 when reaching non existing site and allow to navigate back to existing page
  ✔️ Validate error handling Displays a 404 when reaching non existing site and allow to navigate back to existing page

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/header.cy.ts.xml

1 tests were completed in 24s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
jContent header tests 1✔️ 23s
Root Suite 0ms

✔️ jContent header tests

Should open preview in french in new tab
  ✔️ jContent header tests Should open preview in french in new tab

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/links.cy.ts.xml

9 tests were completed in 127s with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Links in jcontent 9✔️ 127s
Root Suite 0ms

✔️ Links in jcontent

Do not open modal when clicking on internal link
  ✔️ Links in jcontent Do not open modal when clicking on internal link
Open modal when clicking on other site link
  ✔️ Links in jcontent Open modal when clicking on other site link
Open modal when clicking on external link
  ✔️ Links in jcontent Open modal when clicking on external link
Should open link modal and edit page when clicking on same site link from left navigation
  ✔️ Links in jcontent Should open link modal and edit page when clicking on same site link from left navigation
Should open link modal and edit page when clicking on other site link from left navigation
  ✔️ Links in jcontent Should open link modal and edit page when clicking on other site link from left navigation
Should open link modal when clicking on external link from left navigation
  ✔️ Links in jcontent Should open link modal when clicking on external link from left navigation
Open modal when clicking on menu title
  ✔️ Links in jcontent Open modal when clicking on menu title
Open modal when clicking on menu title and can edit entry from list view
  ✔️ Links in jcontent Open modal when clicking on menu title and can edit entry from list view
Trying to access legacy page composer redirect to page builder
  ✔️ Links in jcontent Trying to access legacy page composer redirect to page builder

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/mainResource.cy.ts.xml

6 tests were completed in 50s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Main resource menu display 6✔️ 50s
Root Suite 0ms

✔️ Main resource menu display

Should not display main resource in menu
  ✔️ Main resource menu display Should not display main resource in menu
Should show event in menu
  ✔️ Main resource menu display Should show event in menu
  ✔️ Main resource menu display Should show event in menu
Should not show event in menu
  ✔️ Main resource menu display Should not show event in menu
  ✔️ Main resource menu display Should not show event in menu
Should not display event in content folders menu
  ✔️ Main resource menu display Should not display event in content folders menu

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/menu.cy.ts.xml

3 tests were completed in 38s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Menu tests 3✔️ 38s
Root Suite 0ms

✔️ Menu tests

Can edit content
  ✔️ Menu tests Can edit content
Can download file
  ✔️ Menu tests Can download file
Can create a page at same level as home
  ✔️ Menu tests Can create a page at same level as home

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/navigation.cy.ts.xml

6 tests were completed in 54s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Content navigation 6✔️ 54s
Root Suite 0ms

✔️ Content navigation

Should display custom accordion when enabled on site
  ✔️ Content navigation Should display custom accordion when enabled on site
Should not display custom accordion when not enabled on site
  ✔️ Content navigation Should not display custom accordion when not enabled on site
can open page with special chars in page builder
  ✔️ Content navigation can open page with special chars in page builder
can open page with the correct view mode selection
  ✔️ Content navigation can open page with the correct view mode selection
can open news in page builder
  ✔️ Content navigation can open news in page builder
Display popup when navigating to list and render list view when selected
  ✔️ Content navigation Display popup when navigating to list and render list view when selected

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/preview.cy.ts.xml

2 tests were completed in 39s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
JContent preview tests 2✔️ 39s
Root Suite 0ms

✔️ JContent preview tests

should honor the j:view property when previewing content
  ✔️ JContent preview tests should honor the j:view property when previewing content
should open preview with url
  ✔️ JContent preview tests should open preview with url

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/publicationStatus.cy.ts.xml

1 tests were completed in 33s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Publication status badge test 1✔️ 33s
Root Suite 0ms

✔️ Publication status badge test

should show the last publisher, not the last editor
  ✔️ Publication status badge test should show the last publisher, not the last editor

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/publishAcrossViews.cy.ts.xml

1 tests were completed in 24s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test the save publish buttons flow 1✔️ 24s

✔️ Test the save publish buttons flow

Publish deletion in structured view
  ✔️ Test the save publish buttons flow Publish deletion in structured view

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/registryLabels.cy.ts.xml

1 tests were completed in 8s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Registry labels test 1✔️ 8s
Root Suite 0ms

✔️ Registry labels test

Shows labels on required elements
  ✔️ Registry labels test Shows labels on required elements

❌ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/search.cy.ts.xml

10 tests were completed in 118s with 9 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
advanced search 1❌ 67s
after close 3✔️ 26s
from jcontent 6✔️ 25s
Root Suite 0ms
Search tests 0ms

❌ advanced search

should find event by from 
  ❌ Search tests advanced search should find event by from
	AssertionError: Timed out retrying after 60000ms: Expected to find element: `.moonstone-secondaryNav_wrapper`, but never found it.

✔️ after close

should go back to content-folders after close
  ✔️ Search tests after close should go back to content-folders after close
should go back to pages after close
  ✔️ Search tests after close should go back to pages after close
should go back to default
  ✔️ Search tests after close should go back to default

✔️ from jcontent

Test basic search in current folder
  ✔️ Search tests from jcontent Test basic search in current folder
Test basic search in current site
  ✔️ Search tests from jcontent Test basic search in current site
Test search with type
  ✔️ Search tests from jcontent Test search with type
Test search edit
  ✔️ Search tests from jcontent Test search edit
Test search system name
  ✔️ Search tests from jcontent Test search system name
Test search tags
  ✔️ Search tests from jcontent Test search tags

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/selection.cy.ts.xml

18 tests were completed in 91s with 18 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Multi-selection tests 0ms
Root Suite 0ms
test selection in thumbnails view 7✔️ 25s
test selection when switching modes 4✔️ 46s
test simple select/unselect on files 7✔️ 20s

✔️ test selection in thumbnails view

should be able to select item
  ✔️ Multi-selection tests test selection in thumbnails view should be able to select item
should switch selection
  ✔️ Multi-selection tests test selection in thumbnails view should switch selection
should select multiple
  ✔️ Multi-selection tests test selection in thumbnails view should select multiple
should be able to unselect
  ✔️ Multi-selection tests test selection in thumbnails view should be able to unselect
should have dedicated context menu
  ✔️ Multi-selection tests test selection in thumbnails view should have dedicated context menu
  ✔️ Multi-selection tests test selection in thumbnails view should have dedicated context menu
should not select anything if preview is opened
  ✔️ Multi-selection tests test selection in thumbnails view should not select anything if preview is opened

✔️ test selection when switching modes

Maintains selection when navigating back and forth from different modes
  ✔️ Multi-selection tests test selection when switching modes Maintains selection when navigating back and forth from different modes
opens selected items when navigating to structured view
  ✔️ Multi-selection tests test selection when switching modes opens selected items when navigating to structured view
remove selection when navigating to a mode where item is not visible
  ✔️ Multi-selection tests test selection when switching modes remove selection when navigating to a mode where item is not visible
remove selection when navigating to empty folder
  ✔️ Multi-selection tests test selection when switching modes remove selection when navigating to empty folder

✔️ test simple select/unselect on files

Can clear selection
  ✔️ Multi-selection tests test simple select/unselect on files Can clear selection
Can select/de-select items in list mode
  ✔️ Multi-selection tests test simple select/unselect on files Can select/de-select items in list mode
Can select/de-select items in dropdown
  ✔️ Multi-selection tests test simple select/unselect on files Can select/de-select items in dropdown
Can select items in list mode and clear selection
  ✔️ Multi-selection tests test simple select/unselect on files Can select items in list mode and clear selection
Can select items with right-click
  ✔️ Multi-selection tests test simple select/unselect on files Can select items with right-click
should not show "add to selection" if nothing is selected
  ✔️ Multi-selection tests test simple select/unselect on files should not show "add to selection" if nothing is selected
should show number of items selected in conrtext menu
  ✔️ Multi-selection tests test simple select/unselect on files should show number of items selected in conrtext menu

✔️ tests/artifacts/results/xml_reports/cypress/e2e/jcontent/tableViews.cy.ts.xml

1 tests were completed in 13s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Root Suite 0ms
Table view tests 1✔️ 13s

✔️ Table view tests

Validate structured view columns are not sortable
  ✔️ Table view tests Validate structured view columns are not sortable

Annotations

Check failure on line 0 in tests/artifacts/results/xml_reports/cypress/e2e/jcontent/search.cy.ts.xml

See this annotation in the file changed.

@github-actions github-actions / Tests Report cypress.config-jcontent.ts

advanced search ► should find event by from ► Search tests advanced search should find event by from

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/jcontent/search.cy.ts.xml
Error:
  AssertionError: Timed out retrying after 60000ms: Expected to find element: `.moonstone-secondaryNav_wrapper`, but never found it.
Raw output
AssertionError: Timed out retrying after 60000ms: Expected to find element: `.moonstone-secondaryNav_wrapper`, but never found it.
    at getElement (webpack://@jahia/jcontent-cypress/./node_modules/@jahia/cypress/dist/page-object/utils.js:5:0)
    at getComponentBySelector (webpack://@jahia/jcontent-cypress/./node_modules/@jahia/cypress/dist/page-object/utils.js:13:0)
    at getComponent (webpack://@jahia/jcontent-cypress/./node_modules/@jahia/cypress/dist/page-object/utils.js:17:0)
    at __webpack_modules__../cypress/page-object/jcontent.ts.JContent.getSecondaryNav (webpack://@jahia/jcontent-cypress/./cypress/page-object/jcontent.ts:47:45)
    at __webpack_modules__../cypress/page-object/jcontent.ts.JContent.getSecondaryNavAccordion (webpack://@jahia/jcontent-cypress/./cypress/page-object/jcontent.ts:55:58)
    at __webpack_modules__../cypress/page-object/jcontent.ts.JContent.selectAccordion (webpack://@jahia/jcontent-cypress/./cypress/page-object/jcontent.ts:129:13)
    at Context.eval (webpack://@jahia/jcontent-cypress/./cypress/e2e/jcontent/search.cy.ts:123:21)