Skip to content

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

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

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

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

84 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/addMixinChoicelistInitializers.cy.ts.xml 2✔️ 93s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/choiceTree.cy.ts.xml 1✔️ 1❌ 24s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/constraints.cy.ts.xml 6✔️ 99s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/contentEditorForm.cy.ts.xml 15✔️ 288s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/contentMultiLanguage.cy.ts.xml 1✔️ 41s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/copyFromOneLanguageToCurrentLanguage.cy.ts.xml 1✔️ 36s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/createContent.cy.ts.xml 5✔️ 156s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/createContentI18N.cy.ts.xml 4✔️ 184s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/editContent.cy.ts.xml 2✔️ 51s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/editorUrl.cy.ts.xml 12✔️ 591s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/hidePreview.cy.ts.xml 4✔️ 108s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/language.cy.ts.xml 4✔️ 90s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/listOrdering.cy.ts.xml 1✔️ 16s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/orderableValues.cy.ts.xml 2✔️ 33s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/pageAsModel.cy.ts.xml 1✔️ 32s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/permissions.cy.ts.xml 1✔️ 14s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/previewContent.cy.ts.xml 3✔️ 68s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/richText.cy.ts.xml 2✔️ 20s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/savePublishButtonsFlow.cy.ts.xml 1✔️ 47s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/systemNameTest.cy.ts.xml 8✔️ 168s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/textFieldInitializerTest.cy.ts.xml 1✔️ 72s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/textRegexInDefinition.cy.ts.xml 1✔️ 28s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/usagesScreen.cy.ts.xml 2✔️ 57s
tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/validation.cy.ts.xml 4✔️ 28s

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/addMixinChoicelistInitializers.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Add Mixin by using choice list initializers (Image Reference) 2✔️ 93s
Root Suite 0ms

✔️ Add Mixin by using choice list initializers (Image Reference)

Can create a document manager image reference link
  ✔️ Add Mixin by using choice list initializers (Image Reference) Can create a document manager image reference link
Can edit a document manager image reference link
  ✔️ Add Mixin by using choice list initializers (Image Reference) Can edit a document manager image reference link

❌ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/choiceTree.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test Choicetree selector type 1✔️ 1❌ 24s

❌ Test Choicetree selector type

can handle choice tree selector with a custom root path
  ✔️ Test Choicetree selector type can handle choice tree selector with a custom root path
"before each" hook for "can handle choice tree selector for multiple types"
  ❌ Test Choicetree selector type "before each" hook for "can handle choice tree selector for multiple types"
	CypressError: `cy.visit()` failed trying to load:

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/constraints.cy.ts.xml

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

Test suite Passed Failed Skipped Time
constraints 6✔️ 99s
Root Suite 0ms

✔️ constraints

can set restrictions on content list
  ✔️ constraints can set restrictions on content list
can set restrictions on content folder
  ✔️ constraints can set restrictions on content folder
can create restricted content
  ✔️ constraints can create restricted content
can inherit restricted content to subfolders
  ✔️ constraints can inherit restricted content to subfolders
can add to current restrictions
  ✔️ constraints can add to current restrictions
can create another added restricted content
  ✔️ constraints can create another added restricted content

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/contentEditorForm.cy.ts.xml

15 tests were completed in 288s with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Content editor form 15✔️ 288s
Root Suite 0ms

✔️ Content editor form

Should display custom title label and error message
  ✔️ Content editor form Should display custom title label and error message
Should display overridden title label for boolean buttons
  ✔️ Content editor form Should display overridden title label for boolean buttons
Should display overridden property in correct section
  ✔️ Content editor form Should display overridden property in correct section
Should update dependent property "j:subNodesView" in content retrieval when changing "j:type"
  ✔️ Content editor form Should update dependent property "j:subNodesView" in content retrieval when changing "j:type"
Should use site default template value
  ✔️ Content editor form Should use site default template value
Should display hidden property with overridden hide flag
  ✔️ Content editor form Should display hidden property with overridden hide flag
Should display overridden title label and description label from json overrides define by labelKey and descriptionKey
  ✔️ Content editor form Should display overridden title label and description label from json overrides define by labelKey and descriptionKey
Should display overridden system name and description labels from json overrides
  ✔️ Content editor form Should display overridden system name and description labels from json overrides
Should enable automatically cemix:testAutoActivatedMixin on jnt:bigText for create
  ✔️ Content editor form Should enable automatically cemix:testAutoActivatedMixin on jnt:bigText for create
Should enable automatically cemix:testAutoAlwaysActivatedMixin on jnt:bigText for edit
  ✔️ Content editor form Should enable automatically cemix:testAutoAlwaysActivatedMixin on jnt:bigText for edit
Should not enable automatically cemix:testAutoActivatedMixin on jnt:simpleText for create
  ✔️ Content editor form Should not enable automatically cemix:testAutoActivatedMixin on jnt:simpleText for create
Should not see readonly text field for reviewer
  ✔️ Content editor form Should not see readonly text field for reviewer
Should not see see field for reviewer
  ✔️ Content editor form Should not see see field for reviewer
Should render only one title field
  ✔️ Content editor form Should render only one title field
should display default resource key when module is disabled
  ✔️ Content editor form should display default resource key when module is disabled

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/contentMultiLanguage.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Create multi language content and verify that it is different in all languages 1✔️ 41s
Root Suite 0ms

✔️ Create multi language content and verify that it is different in all languages

Can create content in 3 languages
  ✔️ Create multi language content and verify that it is different in all languages Can create content in 3 languages

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/copyFromOneLanguageToCurrentLanguage.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
test copyFromOneLanguageToCurrentLanguage 1✔️ 36s

✔️ test copyFromOneLanguageToCurrentLanguage

test
  ✔️ test copyFromOneLanguageToCurrentLanguage test

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

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

Test suite Passed Failed Skipped Time
Create content tests 5✔️ 156s
Root Suite 0ms

✔️ Create content tests

Can create content
  ✔️ Create content tests Can create content
Can create multiple content in same modal
  ✔️ Create content tests Can create multiple content in same modal
Can create work in progress content
  ✔️ Create content tests Can create work in progress content
Can create a news and edit it from the successful alert
  ✔️ Create content tests Can create a news and edit it from the successful alert
keeps "create another" checkbox state after save
  ✔️ Create content tests keeps "create another" checkbox state after save

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/createContentI18N.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Create content tests in I18N site 4✔️ 184s
Root Suite 0ms

✔️ Create content tests in I18N site

Can create work in progress content for en/fr properties
  ✔️ Create content tests in I18N site Can create work in progress content for en/fr properties
keeps "create another" checkbox state when switching languages 
  ✔️ Create content tests in I18N site keeps "create another" checkbox state when switching languages
Can create a news in en -> fr and then create a new one in en only 
  ✔️ Create content tests in I18N site Can create a news in en -> fr and then create a new one in en only
Correctly handles i18n title with jcr:title property on the node itself
  ✔️ Create content tests in I18N site Correctly handles i18n title with jcr:title property on the node itself

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/editContent.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Create content tests 2✔️ 51s
Root Suite 0ms

✔️ Create content tests

can edit content
  ✔️ Create content tests can edit content
can edit source ref
  ✔️ Create content tests can edit source ref

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/editorUrl.cy.ts.xml

12 tests were completed in 591s with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Editor url test 12✔️ 591s
Root Suite 0ms

✔️ Editor url test

should open editor
  ✔️ Editor url test should open editor
Should open editor upon login
  ✔️ Editor url test Should open editor upon login
Should open editor already logged in
  ✔️ Editor url test Should open editor already logged in
Should create hash
  ✔️ Editor url test Should create hash
History is handled consistently
  ✔️ Editor url test History is handled consistently
Handles breadcrumb in GWT correctly
  ✔️ Editor url test Handles breadcrumb in GWT correctly
Should not show error modal for valid uuid
  ✔️ Editor url test Should not show error modal for valid uuid
Should show error modal for opening CE url for invalid UUID
  ✔️ Editor url test Should show error modal for opening CE url for invalid UUID
should break all inheritance for node
  ✔️ Editor url test should break all inheritance for node
Should show error modal for opening CE url for user with no permission
  ✔️ Editor url test Should show error modal for opening CE url for user with no permission
Should restore all inheritance for node
  ✔️ Editor url test Should restore all inheritance for node
Should show error modal for opening CE url for missing/invalid params
  ✔️ Editor url test Should show error modal for opening CE url for missing/invalid params

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/hidePreview.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Hide Preview testsuite 4✔️ 108s
Root Suite 0ms

✔️ Hide Preview testsuite

Preview shouldn't exist for a site
  ✔️ Hide Preview testsuite Preview shouldn't exist for a site
Preview shouldn't exist for a content folder
  ✔️ Hide Preview testsuite Preview shouldn't exist for a content folder
Preview should be visible for a content
  ✔️ Hide Preview testsuite Preview should be visible for a content
Preview shouldn't be shown in Category Manager
  ✔️ Hide Preview testsuite Preview shouldn't be shown in Category Manager

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/language.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Language switcher tests 4✔️ 90s
Root Suite 0ms

✔️ Language switcher tests

Create content - should have all language options in "Create translation" group
  ✔️ Language switcher tests Create content - should have all language options in "Create translation" group
Create content - should have edited language in "View language" group after edit
  ✔️ Language switcher tests Create content - should have edited language in "View language" group after edit
Edit content - Should have edited language in "View language" group
  ✔️ Language switcher tests Edit content - Should have edited language in "View language" group
Create content - saves multiple languages
  ✔️ Language switcher tests Create content - saves multiple languages

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/listOrdering.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test list ordering 1✔️ 16s

✔️ Test list ordering

Verifies that list ordering section is available
  ✔️ Test list ordering Verifies that list ordering section is available

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/orderableValues.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test ordering properties with multiple values 2✔️ 33s

✔️ Test ordering properties with multiple values

Drag value test2=2 in shared small text over test1=1
  ✔️ Test ordering properties with multiple values Drag value test2=2 in shared small text over test1=1
Can add a new value test3=3 and drag it between test2=2 and test1=1
  ✔️ Test ordering properties with multiple values Can add a new value test3=3 and drag it between test2=2 and test1=1

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/pageAsModel.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Page as model 1✔️ 32s
Root Suite 0ms

✔️ Page as model

Creates and uses page as model successfully
  ✔️ Page as model Creates and uses page as model successfully

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/permissions.cy.ts.xml

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

Test suite Passed Failed Skipped Time
permissions 1✔️ 14s
Root Suite 0ms

✔️ permissions

can edit rich text with editor
  ✔️ permissions can edit rich text with editor

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/previewContent.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Preview tests 3✔️ 68s
Root Suite 0ms

✔️ Preview tests

It shows correctly preview of edited page even if not the one currently rendered in PageComposer
  ✔️ Preview tests It shows correctly preview of edited page even if not the one currently rendered in PageComposer
renders template:include properly
  ✔️ Preview tests renders template:include properly
It shows correctly preview of edited page even if the parent node name have special character
  ✔️ Preview tests It shows correctly preview of edited page even if the parent node name have special character

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/richText.cy.ts.xml

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

Test suite Passed Failed Skipped Time
richText 2✔️ 20s
Root Suite 0ms

✔️ richText

can edit rich text with ckeditor
  ✔️ richText can edit rich text with ckeditor
shows ckeditor notifications
  ✔️ richText shows ckeditor notifications

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/savePublishButtonsFlow.cy.ts.xml

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

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

✔️ Test the save publish buttons flow

Check save publish buttons flow
  ✔️ Test the save publish buttons flow Check save publish buttons flow

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/systemNameTest.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
System name test 8✔️ 168s

✔️ System name test

Cannot save with invalid system name
  ✔️ System name test Cannot save with invalid system name
Create a page with chinese characters
  ✔️ System name test Create a page with chinese characters
Create a page with a reserved word
  ✔️ System name test Create a page with a reserved word
Create a page with an accented characters
  ✔️ System name test Create a page with an accented characters
Create a page with special characters
  ✔️ System name test Create a page with special characters
Create a page with ".."
  ✔️ System name test Create a page with ".."
Check system name sync
  ✔️ System name test Check system name sync
Should limit the system name of content to 128 characters
  ✔️ System name test Should limit the system name of content to 128 characters

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/textFieldInitializerTest.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test the text field initializer 1✔️ 72s

✔️ Test the text field initializer

Check text field initializer
  ✔️ Test the text field initializer Check text field initializer

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/textRegexInDefinition.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test the consistency of the validation of regular expressions added to the definition 1✔️ 28s

✔️ Test the consistency of the validation of regular expressions added to the definition

Check consistencies of RegExp validation pattern
  ✔️ Test the consistency of the validation of regular expressions added to the definition Check consistencies of RegExp validation pattern

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/usagesScreen.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Create content tests 2✔️ 57s
Root Suite 0ms

✔️ Create content tests

display 16 usages
  ✔️ Create content tests display 16 usages
displays 31 usages and restriction message
  ✔️ Create content tests displays 31 usages and restriction message

✔️ tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/validation.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Root Suite 0ms
Test the text field initializer 4✔️ 28s

✔️ Test the text field initializer

should handle constraint on create/normal prop
  ✔️ Test the text field initializer should handle constraint on create/normal prop
should handle constraint on edit/normal prop
  ✔️ Test the text field initializer should handle constraint on edit/normal prop
should handle constraint on create/i18n prop
  ✔️ Test the text field initializer should handle constraint on create/i18n prop
should handle constraint on edit/i18n prop
  ✔️ Test the text field initializer should handle constraint on edit/i18n prop

Annotations

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

See this annotation in the file changed.

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

Test Choicetree selector type ► "before each" hook for "can handle choice tree selector for multiple types" ► Test Choicetree selector type "before each" hook for "can handle choice tree selector for multiple types"

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/contentEditor/choiceTree.cy.ts.xml
Error:
  CypressError: `cy.visit()` failed trying to load:
Raw output
CypressError: `cy.visit()` failed trying to load:

http://jahia:8080/jahia/jcontent/choiceTreeSelectorSite/en/content-folders/contents

The response we received from your web server was:

  > 401: Unauthorized

This was considered a failure because the status code was not `2xx`.

If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`

Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Test Choicetree selector type`
    at <unknown> (http://jahia:8080/__cypress/runner/cypress_runner.js:131634:76)
    at visitFailedByErr (http://jahia:8080/__cypress/runner/cypress_runner.js:131049:12)
    at <unknown> (http://jahia:8080/__cypress/runner/cypress_runner.js:131617:13)
    at tryCatcher (http://jahia:8080/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://jahia:8080/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://jahia:8080/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://jahia:8080/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://jahia:8080/__cypress/runner/cypress_runner.js:1697:18)
    at _drainQueueStep (http://jahia:8080/__cypress/runner/cypress_runner.js:2407:12)
    at _drainQueue (http://jahia:8080/__cypress/runner/cypress_runner.js:2400:9)
    at Async._drainQueues (http://jahia:8080/__cypress/runner/cypress_runner.js:2416:5)
    at Async.drainQueues (http://jahia:8080/__cypress/runner/cypress_runner.js:2286:14)
From Your Spec Code:
    at __webpack_modules__../cypress/page-object/jcontent.ts.JContent.visit (webpack://@jahia/jcontent-cypress/./cypress/page-object/jcontent.ts:34:11)
    at Context.eval (webpack://@jahia/jcontent-cypress/./cypress/e2e/contentEditor/choiceTree.cy.ts:73:28)