Skip to content

BACKLOG-22232: Fix release wf #87

BACKLOG-22232: Fix release wf

BACKLOG-22232: Fix release wf #87

GitHub Actions / Tests Report failed Mar 5, 2024 in 0s

9 passed, 8 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml 3✔️ 2❌ 4s
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml 6✔️ 4❌ 9s
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml 2❌ 3s

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

5 tests were completed in 4s with 3 passed, 2 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Default HTML filtering 3✔️ 2❌ 4s
Root Suite 0ms

❌ Default HTML filtering

allows internal links - files
  ✔️ Default HTML filtering allows internal links - files
allows internal links - content
  ✔️ Default HTML filtering allows internal links - content
allows external links
  ✔️ Default HTML filtering allows external links
rejects invalid protocol links
  ❌ Default HTML filtering rejects invalid protocol links
	AssertionError: expected '<p>This is an <a href="javascript://%0aalert(document.location)">xss test</a></p>' to not include '<a'
rejects invalid href links
  ❌ Default HTML filtering rejects invalid href links
	AssertionError: expected '<p>This is an <a href="#javascript:alert(\'hello\')" target="_blank">xss test</a></p>' to not include 'href'

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

10 tests were completed in 9s with 6 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
HTML rich text filtering 6✔️ 4❌ 9s
Root Suite 0ms

❌ HTML rich text filtering

does not apply html filtering to tag when disabled (default)
  ✔️ HTML rich text filtering does not apply html filtering to tag when disabled (default)
does not apply html filtering to attribute when disabled (default)
  ✔️ HTML rich text filtering does not apply html filtering to attribute when disabled (default)
applies default html filtering when enabled
  ❌ HTML rich text filtering applies default html filtering when enabled
	AssertionError: expected '<iframe title="My iframe"></iframe><a title="My link"></a><script> var today= new Date(); </script>' to not include 'iframe'
  ✔️ HTML rich text filtering applies default html filtering when enabled
applies default filtering to html element when enabled
  ✔️ HTML rich text filtering applies default filtering to html element when enabled
applies default filtering to html attributes when enabled
  ❌ HTML rich text filtering applies default filtering to html attributes when enabled
	AssertionError: filtered attribute: expected '<img src="stub.jpg" loading="lazy"><a href="https://localhost:8080">' to not include 'loading'
does not override filtering config for other site
  ✔️ HTML rich text filtering does not override filtering config for other site
can override filtering config for specified site
  ❌ HTML rich text filtering can override filtering config for specified site
	AssertionError: expected '<p>This text<strong>is important!</strong> but not this one</p>' to not include 'strong'
can update config and filter using updated rules
  ❌ HTML rich text filtering can update config and filter using updated rules
	AssertionError: expected '<p>This text<i>is important!</i> but not this one</p>' to not include '<i>'
does not override filtering config for specified site when filtering is disabled
  ✔️ HTML rich text filtering does not override filtering config for specified site when filtering is disabled

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

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

Test suite Passed Failed Skipped Time
HTML rich text filtering API 2❌ 3s
Root Suite 0ms

❌ HTML rich text filtering API

filters via API and reports on removed elements/attributes
  ❌ HTML rich text filtering API filters via API and reports on removed elements/attributes
	TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')
returns a list of configured elements and attributes
  ❌ HTML rich text filtering API returns a list of configured elements and attributes
	TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

Default HTML filtering ► rejects invalid protocol links ► Default HTML filtering rejects invalid protocol links

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml
Error:
  AssertionError: expected '<p>This is an <a href="javascript://%0aalert(document.location)">xss test</a></p>' to not include '<a'
Raw output
AssertionError: expected '<p>This is an <a href="javascript://%0aalert(document.location)">xss test</a></p>' to not include '<a'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/defaultFiltering.cy.ts:69:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

Default HTML filtering ► rejects invalid href links ► Default HTML filtering rejects invalid href links

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/defaultFiltering.cy.ts.xml
Error:
  AssertionError: expected '<p>This is an <a href="#javascript:alert(\'hello\')" target="_blank">xss test</a></p>' to not include 'href'
Raw output
AssertionError: expected '<p>This is an <a href="#javascript:alert(\'hello\')" target="_blank">xss test</a></p>' to not include 'href'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/defaultFiltering.cy.ts:80:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering ► applies default html filtering when enabled ► HTML rich text filtering applies default html filtering when enabled

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
  AssertionError: expected '<iframe title="My iframe"></iframe><a title="My link"></a><script> var today= new Date(); </script>' to not include 'iframe'
Raw output
AssertionError: expected '<iframe title="My iframe"></iframe><a title="My link"></a><script> var today= new Date(); </script>' to not include 'iframe'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filtering.cy.ts:41:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering ► applies default filtering to html attributes when enabled ► HTML rich text filtering applies default filtering to html attributes when enabled

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
  AssertionError: filtered attribute: expected '<img src="stub.jpg" loading="lazy"><a href="https://localhost:8080">' to not include 'loading'
Raw output
AssertionError: filtered attribute: expected '<img src="stub.jpg" loading="lazy"><a href="https://localhost:8080">' to not include 'loading'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filtering.cy.ts:68:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering ► can override filtering config for specified site ► HTML rich text filtering can override filtering config for specified site

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
  AssertionError: expected '<p>This text<strong>is important!</strong> but not this one</p>' to not include 'strong'
Raw output
AssertionError: expected '<p>This text<strong>is important!</strong> but not this one</p>' to not include 'strong'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filtering.cy.ts:83:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering ► can update config and filter using updated rules ► HTML rich text filtering can update config and filter using updated rules

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml
Error:
  AssertionError: expected '<p>This text<i>is important!</i> but not this one</p>' to not include '<i>'
Raw output
AssertionError: expected '<p>This text<i>is important!</i> but not this one</p>' to not include '<i>'
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filtering.cy.ts:92:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering API ► filters via API and reports on removed elements/attributes ► HTML rich text filtering API filters via API and reports on removed elements/attributes

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')
Raw output
TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filteringAPI.cy.ts:28:0)

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

See this annotation in the file changed.

@github-actions github-actions / Tests Report

HTML rich text filtering API ► returns a list of configured elements and attributes ► HTML rich text filtering API returns a list of configured elements and attributes

Failed test found in:
  tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')
Raw output
TypeError: Cannot read properties of undefined (reading 'htmlFilteringConfiguration')
    at Context.eval (webpack://@jahia/html-filtering-cypress/./cypress/e2e/filteringAPI.cy.ts:45:0)