Commit Graph

53 Commits (615f33b0f9f565535d1d2e2bd7397506e457de36)

Author SHA1 Message Date
Timo Dittmann 6bf68e575d Enhancement: Add text anchor to texts 2020-12-08 12:05:06 +01:00
JFH 28019eef07
Refactor canvas in multiple pieces to increase maintainability (#446)
* #refactor-canvas getJsonFromSvgElement and svgroot code moved to separate file
* #refactor-canvas build files changes
* #refactor-canvas addSVGElementsFromJson move to json file
* #refactor-canvas selected element option function move separate file
* #refactor-canvas moveUpDownSelected move to select-elem
* ##refactor-canvas build file updated
* #refactor-canvas moveSelectedElements  move to selected-elem
* #refactor-canvas cloneSelectedElements move to slected-elem
* #refactor-canvas alignSelectedElements move to selected-elem
* #refactor-canvas deleteSelectedElements move to selected-elem
* #refactor-canvas copySelectedElements and groupSelectedElements move to selected-elem
* #refactor-canvas pushGroupProperty, ungroupSelectedElement move to selected-elem
* #refactor-canvas comment changes
* #refactor-canvas UndoManager move to separate file
* #refactor-canvas event file move to mouseMove, mouseUpEvent and dblClickEvent
* #refactor-canvas mouseDown move to event
* #refactor-canvas move to undo file
* #refactor alignment changes  and set function revert return
* #refactor-canvas textaction move to separate file
* #refactor-canvas paste-element function move to separate file
* #refactor-canvas set and get  method move to separate file
* #refactor-canvas set and get function moved changes
* #refactor clear file import and regaring function moved changes changes
* #refactor-canvas svg related function move to separate file
* #refactor-canvas setBackground methos move to elem-get-set file
* #refactor-canvas getBsplinePoint method move to event file
* #refactor-canvas export functions move to svg-exec
* #refactor-canvas svg related function moved separate file
* #refactor-canvas updateCanvas,  cycleElement move to selected-elem file
* #refactor-canvas removeUnusedDefElems move to svg-exec file
* #refactor-canvas blur method move to separate file blur-event.js
* #refactor-canvas selection related function move to separate file slection.js
* #refactor-canvas convertGradients, mousewheelmove event bind function move to other files
* #refactor-canvas extension function move to selection file
* #refactor-canvas svg tag long string changes to es6 format
* eslint fixes
* eslint and test fixes
* add netlify logo per their requirements
* #refactor-canvas path file separate to path-method.js and path-actions.js
* #refactor-canvas lint issue fixed
* #refactor-canvas path.js file class and const move to path-method.js
* #refactor-canvas eslint issue fixed. 'jsdoc/check-examples': 'off' already so removed eslint-disable jsdoc/check-examples
* #refactor-canvas path class moved changes and copy-elem.js file cypress test issue fixed
* #refactor-canvas UI - Clipboard paste element  cypress issue fixed
* #refactor-canvas cypress test cases issue fixed changes
* #refactor-canvas cypress test cases issue fixed changes
* #refactor-canvas cypress test case issue fixed
* npm update and fix a few eslint new errors
* fix snapshot and run tests
* add star tool to cypress
* #refactor-canvas shapelibrary, star, polygon and panning tool issue fixed
* build
* Update layer.js
* revert proper declarations

Authored-by OptimistikSAS
2020-11-11 11:38:45 +01:00
jfh 8f859537ef update snapshots 2020-10-17 00:51:22 +02:00
jfh 8a1607a8cd make snapshot more robust 2020-10-16 23:59:30 +02:00
jfh 1552f13958 fix an issue with tool selection test 2020-10-16 23:22:31 +02:00
jfh cfbb5a5ec8 npm update + fix linked to this update
found an issue with eslint when empty comments were used.
2020-10-04 23:07:31 +02:00
jfh f663898dfd add a small test in scenario.js 2020-09-22 00:18:52 +02:00
jfh 359a161ff2 remove external folder in favor of npm dependencies 2020-09-19 15:21:30 +02:00
jfh fa516488eb added delay necessary to pass this test 2020-09-19 12:55:19 +02:00
jfh b88691d1f3 fix issue with the snapshot 2020-09-13 23:56:45 +02:00
jfh e05a6aeb33 focus on the svg content to test snapshots 2020-09-13 14:07:19 +02:00
jfh 6379335d6a start a UI scenario to test various part of svgedit 2020-09-13 11:26:26 +02:00
jfh a61cfdf553 add a cypress scenario 2020-09-13 01:32:13 +02:00
jfh 4643bab371 fix editor start with src and dist using es-dev-server 2020-09-01 00:15:18 +02:00
jfh 0bfee46b33 make test run with systemjs build 2020-08-29 01:20:37 +02:00
JFH 06c48ec088 fix integration tests after cypress update 2020-08-07 22:01:23 +02:00
JFH fd6cf3889f fix integration tests 2020-08-06 21:46:30 +02:00
JFH 92635ba721 restore all eslint rules 2020-08-01 01:23:28 +02:00
JFH d399e8f5de remove unused script 2020-07-30 14:40:58 +02:00
JFH 42fbe6a1ba put back accessibility tests ignoring issues 2020-07-26 22:48:59 +02:00
JFH 2bd4da081a Merge branch 'refactor-folders' of https://github.com/SVG-Edit/svgedit into refactor-folders 2020-07-26 20:16:56 +02:00
JFH 89e20d49e6 eslint/browser list/accessibility test 2020-07-26 20:11:18 +02:00
Brett Zamir 41f9d801bf - Linting: For non-jQuery methods, apply no-fn-reference-in-iterator rule (though still keep rule disabled due to numerous jQuery false positives)
- Linting: With num. of warnings set to 0, probably need to disable `check-examples` for those environments having problems
- Linting: Reenable Unicorn rules now that updated
2020-07-26 10:36:10 +08:00
JFH 48212c8384 fix bug in unapply for batch command 2020-07-25 19:33:44 +02:00
JFH 61b4a4accb skip accessibility tests (at least temporarly) 2020-07-25 19:32:28 +02:00
JFH 232995ba1a adapt import in cy tests 2020-07-14 18:06:33 +02:00
JFH 14cf560ab7 Create issue-423.js 2020-07-12 23:50:12 +02:00
JFH 61591f6a2e fix issue with undo because this.elem was overwritten with node.remove() 2020-06-28 21:52:27 +02:00
JFH 60115ee602
Update issue-408.js 2020-06-21 11:05:48 +02:00
JFH 957d34fc9a
Update issue-407.js 2020-06-21 11:04:48 +02:00
JFH 0c1c7d5b12 add cypress tests for issues #407 and #408 2020-06-20 13:12:19 +02:00
Brett Zamir 4b92acc790 - Update: Cypress code coverage plugin
- Linting: Update as per latest ash-nazg
- npm: Update devDeps.
2020-04-12 10:45:03 +08:00
Brett Zamir 8096f0750f - Testing: Use more precise/semantic chai assertion methods 2020-02-27 07:25:58 +08:00
Brett Zamir 9fac8ecc58 - Linting (ESLint): Add `fintechstudieos/eslint-plugin-chai-as-promised`,
`eslint-plugin-chai-expect-keywords`, and `eslint-plugin-mocha-cleanup`
    plugins
2020-02-26 14:34:42 +08:00
Brett Zamir e60812e196 - Linting (ESLint): Check eslintrc file itself
- Linting: Add linting plugins (mocha, chai-expect, chai-friendly, cypress)
- Testing: Change cypress plugins file to ESM (so can set up any needed unit testing tasks)
2020-02-21 16:34:55 +08:00
Neil Fraser b1ceb3c911 Add Clipboard unit tests 2020-02-21 14:51:09 +08:00
Brett Zamir 8f2d50873e - Testing (UI): Add `force: true` and longer timeout to get tests passing 2020-02-21 10:33:56 +08:00
Brett Zamir 03a56e035d - Testing: Clarify 2020-01-21 12:05:29 +08:00
Brett Zamir fd77dc2b30 - Testing: Add key commands test 2020-01-21 11:50:06 +08:00
cuixiping e69fd11766 Testing: add testing for convertPath function 2020-01-16 14:20:19 +08:00
Brett Zamir 92f8a5be57 - Refactoring: Avoid redundant creation of text node for strings when passing to `append` 2020-01-04 16:43:03 +08:00
Brett Zamir d9d4d94976 - Linting (ESLint): Apply per latest ash-nazg (jsdoc: complete sentence descriptions)
- npm: Update devDeps
2019-12-31 15:27:16 +08:00
cuixiping f03cdc98a4 Testing: Fix the selector of editor preferences 2019-12-25 15:53:27 +08:00
Brett Zamir fc41ea7a43 - Testing: Separate tests into unit/ui; split UI tests by specific domain;
setup browser-bug folder and ui issues folder
- Testing: Create test utilities for selecting English and visiting and
  approving storage
- Testing: Add test for tool selection
2019-12-23 18:47:17 +08:00
Brett Zamir 4792426221 - Refactoring: Move out coverage badge generation to own repo
- npm: Update devDep
2019-12-20 16:38:08 +08:00
Brett Zamir a6f65cec0b - Docs: Use SVG-based coverage badge on README in place of PNG 2019-12-18 21:32:44 +08:00
Brett Zamir 3200e0ab8e - Docs/Build: Script to build coverage badge 2019-11-25 08:40:37 +08:00
Brett Zamir c3c9b0f54d - Testing: Migrate remaining HTML tests to Cypress 2019-11-24 16:53:10 +08:00
Brett Zamir 2b3cf0129c - Avoid giving coverage for bundled, but ensure included in instrumented path 2019-11-23 23:50:56 +08:00
Brett Zamir ddb0fc3ef6 - Run tests against instrumented version, fixing instrumentation 2019-11-23 23:32:22 +08:00