Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BACKLOG-21795: POC for visibility condition rules in react using CE #1133

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

BACKLOG-21795: POC for visibility condition rules in react using CE

96ac20d
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

BACKLOG-21795: POC for visibility condition rules in react using CE #1133

BACKLOG-21795: POC for visibility condition rules in react using CE
96ac20d
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tests Report cypress.config-pickers.ts failed Dec 22, 2023 in 0s

56 passed, 1 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
tests/artifacts/results/xml_reports/cypress/e2e/pickers/categories.cy.ts.xml 2✔️ 58s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/constraint.cy.ts.xml 1✔️ 24s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/customPicker.cy.ts.xml 2✔️ 42s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/date.cy.ts.xml 4✔️ 79s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/displayActions.cy.ts.xml 1✔️ 58s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/editoriallink.cy.ts.xml 3✔️ 44s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/pages.cy.ts.xml 1✔️ 27s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/pdf.cy.ts.xml 2✔️ 81s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/picker.cy.ts.xml 6✔️ 1❌ 267s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerDefaults.cy.ts.xml 10✔️ 185s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerMultiple.cy.ts.xml 3✔️ 94s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerTree.cy.ts.xml 5✔️ 116s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/richtext.cy.ts.xml 2✔️ 52s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/search.cy.ts.xml 7✔️ 245s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/site.cy.ts.xml 3✔️ 73s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/user.cy.ts.xml 2✔️ 40s
tests/artifacts/results/xml_reports/cypress/e2e/pickers/usergroup.cy.ts.xml 2✔️ 45s

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/categories.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker - Categories 2✔️ 58s
Root Suite 0ms

✔️ Picker - Categories

Categories Picker - Search for transportation - letter by letter
  ✔️ Picker - Categories Categories Picker - Search for transportation - letter by letter
Categories Picker - Select Polymer Manufacturing
  ✔️ Picker - Categories Categories Picker - Select Polymer Manufacturing

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/constraint.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - Constraints 1✔️ 24s
Root Suite 0ms

✔️ Picker tests - Constraints

should see one employee
  ✔️ Picker tests - Constraints should see one employee

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/customPicker.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - custom picker 2✔️ 42s
Root Suite 0ms

✔️ Picker tests - custom picker

should use a custom picker with different root path
  ✔️ Picker tests - custom picker should use a custom picker with different root path
should use an override on editorial picker with different root path and constraints
  ✔️ Picker tests - custom picker should use an override on editorial picker with different root path and constraints

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/date.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Date picker tests 4✔️ 79s
Root Suite 0ms

✔️ Date picker tests

Test Date Picker
  ✔️ Date picker tests Test Date Picker
Test without using picker
  ✔️ Date picker tests Test without using picker
Test Date time Picker without using picker
  ✔️ Date picker tests Test Date time Picker without using picker
Test Date Picker with spanish user
  ✔️ Date picker tests Test Date Picker with spanish user

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/displayActions.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - Display actions 1✔️ 58s
Root Suite 0ms

✔️ Picker tests - Display actions

should refresh picker dialog
  ✔️ Picker tests - Display actions should refresh picker dialog

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/editoriallink.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker - Editorial link 3✔️ 44s
Root Suite 0ms

✔️ Picker - Editorial link

should display editorial link picker
  ✔️ Picker - Editorial link should display editorial link picker
should expand selection and restore tab
  ✔️ Picker - Editorial link should expand selection and restore tab
can select main resource and sub-main resource
  ✔️ Picker - Editorial link can select main resource and sub-main resource

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/pages.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker - Pages 1✔️ 27s
Root Suite 0ms

✔️ Picker - Pages

Page Picker - Ensure we can open navMenuItem like navMenuText element and find sub-pages
  ✔️ Picker - Pages Page Picker - Ensure we can open navMenuItem like navMenuText element and find sub-pages

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/pdf.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker - PDF 2✔️ 81s
Root Suite 0ms

✔️ Picker - PDF

PDF Picker - Only pdf folder display files
  ✔️ Picker - PDF PDF Picker - Only pdf folder display files
PDF Picker - Only pdf files and folder are found by the search
  ✔️ Picker - PDF PDF Picker - Only pdf files and folder are found by the search

❌ tests/artifacts/results/xml_reports/cypress/e2e/pickers/picker.cy.ts.xml

7 tests were completed in 267s with 6 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Picker tests 6✔️ 1❌ 267s
Root Suite 0ms

❌ Picker tests

should display content reference picker
  ✔️ Picker tests should display content reference picker
should display file/image reference picker
  ✔️ Picker tests should display file/image reference picker
should go to previous location
  ✔️ Picker tests should go to previous location
should go to root when previous location is not available
  ❌ Picker tests should go to root when previous location is not available
	CypressError: Timed out retrying after 60050ms: `cy.should()` failed because the page updated as a result of this command, but you tried to continue the command chain. The subject is no longer attached to the DOM, and Cypress cannot requery the page after commands such as `cy.should()`.
should be able to switch site
  ✔️ Picker tests should be able to switch site
should be able to browse when there is a selection
  ✔️ Picker tests should be able to browse when there is a selection
should pick thumbnail on double click
  ✔️ Picker tests should pick thumbnail on double click

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerDefaults.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - default 10✔️ 185s
Root Suite 0ms

✔️ Picker tests - default

should open default page picker
  ✔️ Picker tests - default should open default page picker
should open default contentfolder picker
  ✔️ Picker tests - default should open default contentfolder picker
should open default folder picker
  ✔️ Picker tests - default should open default folder picker
should open default file picker
  ✔️ Picker tests - default should open default file picker
should open default image picker
  ✔️ Picker tests - default should open default image picker
should open default editoriallink picker
  ✔️ Picker tests - default should open default editoriallink picker
should open default user picker
  ✔️ Picker tests - default should open default user picker
should open default usergroup picker
  ✔️ Picker tests - default should open default usergroup picker
should open default site picker
  ✔️ Picker tests - default should open default site picker
should open default category picker
  ✔️ Picker tests - default should open default category picker

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerMultiple.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - multiple 3✔️ 94s
Root Suite 0ms

✔️ Picker tests - multiple

should allow multi-select
  ✔️ Picker tests - multiple should allow multi-select
should display selection table
  ✔️ Picker tests - multiple should display selection table
should select/unselect all
  ✔️ Picker tests - multiple should select/unselect all

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/pickerTree.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - Trees 5✔️ 116s
Root Suite 0ms

✔️ Picker tests - Trees

should display a folder picker without tree
  ✔️ Picker tests - Trees should display a folder picker without tree
should display root folder opened
  ✔️ Picker tests - Trees should display root folder opened
should be able to open and close folder
  ✔️ Picker tests - Trees should be able to open and close folder
should be able to select a folder
  ✔️ Picker tests - Trees should be able to select a folder
should be able to switch site
  ✔️ Picker tests - Trees should be able to switch site

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/richtext.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - richtext 2✔️ 52s
Root Suite 0ms

✔️ Picker tests - richtext

Content picker in richtext
  ✔️ Picker tests - richtext Content picker in richtext
File picker in richtext
  ✔️ Picker tests - richtext File picker in richtext

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/search.cy.ts.xml

7 tests were completed in 245s with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Picker tests - Search 7✔️ 245s
Root Suite 0ms

✔️ Picker tests - Search

Media Picker - Search for tab - letter by letter
  ✔️ Picker tests - Search Media Picker - Search for tab - letter by letter
Media Picker - Search for tab - in different context
  ✔️ Picker tests - Search Media Picker - Search for tab - in different context
Media Picker - Search for tab - cancel and reopen - search should be empty
  ✔️ Picker tests - Search Media Picker - Search for tab - cancel and reopen - search should be empty
Editorial Picker- Search for tab - letter by letter
  ✔️ Picker tests - Search Editorial Picker- Search for tab - letter by letter
Editorial Picker- Search for tab - ensure all accordions are closed
  ✔️ Picker tests - Search Editorial Picker- Search for tab - ensure all accordions are closed
Editorial Picker- Search for tab and them empty search - ensure previous context is restored
  ✔️ Picker tests - Search Editorial Picker- Search for tab and them empty search - ensure previous context is restored
Media Picker- Search for xylophone and should find nothing no matter the context
  ✔️ Picker tests - Search Media Picker- Search for xylophone and should find nothing no matter the context

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/site.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - Site 3✔️ 73s
Root Suite 0ms

✔️ Picker tests - Site

Site Picker - base display
  ✔️ Picker tests - Site Site Picker - base display
Site Picker - select site
  ✔️ Picker tests - Site Site Picker - select site
Site Picker - select site - multiple
  ✔️ Picker tests - Site Site Picker - select site - multiple

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/user.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - User 2✔️ 40s
Root Suite 0ms

✔️ Picker tests - User

User Picker - base display
  ✔️ Picker tests - User User Picker - base display
User Picker - search
  ✔️ Picker tests - User User Picker - search

✔️ tests/artifacts/results/xml_reports/cypress/e2e/pickers/usergroup.cy.ts.xml

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

Test suite Passed Failed Skipped Time
Picker tests - Usergroup 2✔️ 45s
Root Suite 0ms

✔️ Picker tests - Usergroup

Usergroup Picker - Search for admin
  ✔️ Picker tests - Usergroup Usergroup Picker - Search for admin
Usergroup Picker - Select administrators
  ✔️ Picker tests - Usergroup Usergroup Picker - Select administrators

Annotations

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

See this annotation in the file changed.

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

Picker tests ► should go to root when previous location is not available ► Picker tests should go to root when previous location is not available

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/pickers/picker.cy.ts.xml
Error:
  CypressError: Timed out retrying after 60050ms: `cy.should()` failed because the page updated as a result of this command, but you tried to continue the command chain. The subject is no longer attached to the DOM, and Cypress cannot requery the page after commands such as `cy.should()`.
Raw output
CypressError: Timed out retrying after 60050ms: `cy.should()` failed because the page updated as a result of this command, but you tried to continue the command chain. The subject is no longer attached to the DOM, and Cypress cannot requery the page after commands such as `cy.should()`.

Common situations why this happens:
  - Your JS framework re-rendered asynchronously
  - Your app code reacted to an event firing and removed the element

You can typically solve this by breaking up a chain. For example, rewrite:

> `cy.get('button').click().should('have.class', 'active')`

to

> `cy.get('button').as('btn').click()`
> `cy.get('@btn').should('have.class', 'active')`

https://on.cypress.io/element-has-detached-from-dom
    at Object.isAttached (http://jahia:8080/__cypress/runner/cypress_runner.js:161629:66)
    at applyChainers (http://jahia:8080/__cypress/runner/cypress_runner.js:144870:24)
    at tryCatcher (http://jahia:8080/__cypress/runner/cypress_runner.js:18744:23)
    at Promise.attempt.Promise.try (http://jahia:8080/__cypress/runner/cypress_runner.js:16018:29)
    at Context.shouldFn (http://jahia:8080/__cypress/runner/cypress_runner.js:144898:63)
    at Context.should (http://jahia:8080/__cypress/runner/cypress_runner.js:144915:23)
    at <unknown> (http://jahia:8080/__cypress/runner/cypress_runner.js:140385:39)
    at assertions (http://jahia:8080/__cypress/runner/cypress_runner.js:140634:16)
    at tryCatcher (http://jahia:8080/__cypress/runner/cypress_runner.js:18744:23)
    at Object.gotValue (http://jahia:8080/__cypress/runner/cypress_runner.js:17888:18)
    at Object.gotAccum (http://jahia:8080/__cypress/runner/cypress_runner.js:17875:25)
    at Object.tryCatcher (http://jahia:8080/__cypress/runner/cypress_runner.js:18744:23)
    at Promise._settlePromiseFromHandler (http://jahia:8080/__cypress/runner/cypress_runner.js:16679:31)
    at Promise._settlePromise (http://jahia:8080/__cypress/runner/cypress_runner.js:16736:18)
    at Promise._settlePromiseCtx (http://jahia:8080/__cypress/runner/cypress_runner.js:16773:10)
    at _drainQueueStep (http://jahia:8080/__cypress/runner/cypress_runner.js:13455:12)
    at _drainQueue (http://jahia:8080/__cypress/runner/cypress_runner.js:13444:9)
    at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://jahia:8080/__cypress/runner/cypress_runner.js:13460:5)
    at Async.drainQueues (http://jahia:8080/__cypress/runner/cypress_runner.js:13330:14)
From Your Spec Code:
    at Context.eval (webpack:///./cypress/e2e/pickers/picker.cy.ts:168:55)