Skip to content

BACKLOG-22157 Update api, add dry run property, add tests #14

BACKLOG-22157 Update api, add dry run property, add tests

BACKLOG-22157 Update api, add dry run property, add tests #14

GitHub Actions / Tests Report (Standalone) succeeded Jan 15, 2024 in 1s

Tests Report (Standalone) ✅

Tests failed

Report Passed Failed Skipped Time
tests/artifacts/results/xml_reports/cypress/e2e/filtering.cy.ts.xml 7✅ 5s
tests/artifacts/results/xml_reports/cypress/e2e/filteringAPI.cy.ts.xml 1✅ 1❌ 2s

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

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

Test suite Passed Failed Skipped Time
HTML rich text filtering 7✅ 5s
Root Suite 0ms

✅ HTML rich text filtering

does not apply html filtering when disabled (default)
  ✅ HTML rich text filtering does not apply html filtering 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
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
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

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

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

Test suite Passed Failed Skipped Time
HTML rich text filtering API 1✅ 1❌ 2s
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
returns a list of configured elements and attributes
  ❌ HTML rich text filtering API returns a list of configured elements and attributes
	AssertionError: expected { Object (attribute, elements, ...) } to deeply equal { Object (attribute, elements, ...) }

Annotations

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 (Standalone)

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:
  AssertionError: expected { Object (attribute, elements, ...) } to deeply equal { Object (attribute, elements, ...) }
Raw output
AssertionError: expected { Object (attribute, elements, ...) } to deeply equal { Object (attribute, elements, ...) }
    at Context.eval (webpack://@jahia/richtext-config-cypress/./cypress/e2e/filteringAPI.cy.ts:47:155)

      + expected - actual

       { attribute: 'class',
         elements: [],
         isGlobal: true,
      -  pattern: '(myclass1|myclass2)',
      +  pattern: '(myclass1|myclass2ss)',
         __typename: 'GqlRichTextConfigAttribute' }