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

divio / django-cms / #27485 / 1
77%
develop: 77%

Build:
DEFAULT BRANCH: develop
Ran 23 Jun 2023 09:03AM UTC
Files 25
Run time 0s
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

23 Jun 2023 09:03AM UTC coverage: 77.341% (+0.01%) from 77.328%
#27485.1

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%)

2560 of 3310 relevant lines covered (77.34%)

32.98 hits per line

Source Files on job #27485.1
  • 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 Build 27485
  • ce4c2994 on github
  • Prev Job for on develop (##27478.1)
  • Next Job for on develop (##27493.1)
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