Skip to content

Commit

Permalink
Merge f72bfa0 into 7e34d79
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Nov 29, 2024
2 parents 7e34d79 + f72bfa0 commit 3013e83
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
13 changes: 1 addition & 12 deletions cypress/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"dependencies": {
"@foreachbe/cypress-tinymce": "^1.0.0",
"cypress": "^9.5.1"
}
}
14 changes: 14 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,18 @@ Cypress.Commands.add('loginByCSRF', (username, password) => {

Cypress.Commands.add('mockTiles', (username, password) => {
cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}).as("tiles");
});

Cypress.Commands.add('setTinyMceContent', (tinyMceId, content) => {
cy.window().then((win) => {
const editor = win.tinymce.get(tinyMceId);
editor.setContent(content);
});
});

Cypress.Commands.add('getTinyMceContent', (tinyMceId, content) => {
cy.window().then((win) => {
const editor = win.tinymce.get(tinyMceId);
return editor.getContent();
});
});
3 changes: 1 addition & 2 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
import '@foreachbe/cypress-tinymce'
// require('./commands')
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ django==4.2.16
# django-leaflet
# django-modelcluster
# django-modeltranslation
# django-tinymce
# django-treebeard
# django-weasyprint
# djangorestframework
Expand Down Expand Up @@ -158,7 +159,7 @@ django-modeltranslation==0.18.11
# via mapentity
django-mptt==0.14.0
# via geotrek (setup.py)
django-tinymce==3.5.0
django-tinymce==4.1.0
# via mapentity
django-treebeard==4.7.1
# via geotrek (setup.py)
Expand Down

0 comments on commit 3013e83

Please sign in to comment.