• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

divio / django-cms / #27485
77%

Build:
DEFAULT BRANCH: develop
Ran 23 Jun 2023 09:03AM UTC
Jobs 1
Files 25
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#27485

push

travis-ci

web-flow
fix: JS issues with running CMS under cypress (#7591)

* fix: JS issues with running CMS under cypress

For the CMS to work under cypress like test automation tools, there were
some issues in JS. As CMS runs majorly in iframe, there are many places
in CMS where the JS is used to detect that. However, the detection
assumes that CMS itself is not run inside an iframe (which is common
when it is run from a test automation tool like cypress).
So in these cases, CMS got many crashes and was not able to do some
actions as the JS was not correct and it was trying to access the
`window.CMS`and `window.CMS.$` and `window.CMS.API`.

The fix basically checks all these cases and makes that these JS code
invoked only when CMS is run in the iframe from CMS and not when running
under cypress.

Authored-by: Vinit Kumar <vinit.kumar@kidskonnect.nl>
Signed-off-by: Vinit Kumar <vinit.kumar@kidskonnect.nl>

* fix: wrong if condition to check the CMS attributes

* fix: typo

* fix: codespell lint error

---------

Signed-off-by: Vinit Kumar <vinit.kumar@kidskonnect.nl>

1083 of 1564 branches covered (69.25%)

15 of 15 new or added lines in 3 files covered. (100.0%)

2560 of 3310 relevant lines covered (77.34%)

32.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #27485.1 23 Jun 2023 09:03AM UTC 25
77.34
Source Files on build #27485
  • Tree
  • List 25
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • ce4c2994 on github
  • Prev Build on develop
  • Next Build on develop
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc