Skip to content

Commit

Permalink
Merge changes from 2.4 branch into 2.5 (#6784)
Browse files Browse the repository at this point in the history
* Setup @testing-library/react as replacement for enzyme (#6711)

* Fix webspace name with special characters in it (#6714)

* Migrate enzyme Badge tests to React Testing Library (#6719)

* Migrate enzyme ButtonGroup tests to React Testing Library (#6726)

* Migrate enzyme Card & CardCollection tests to React Testing Library (#6727)

* Migrate enzyme Button tests to React Testing Library (#6721)

* Migrate enzyme CharacterCounter tests to React Testing Library (#6730)

* Fix ImageMap with custom admin path (#6729)

* Migrate enzyme CirclularProgressbar tests to React Testing Library (#6733)

* Migrate enzyme Chip tests to React Testing Library (#6732)

* Migrate enzyme Checkbox & CheckboxGroup tests to React Testing Library (#6731)

* Migrate enzyme CroppedText tests to React Testing Library (#6735)

* Migrate enzyme Breadcrumb tests to React Testing Library (#6725)

* Migrate enzyme Divider tests to React Testing Library (#6736)

* Migrate enzyme DropdownButton tests to React Testing Library (#6737)

* Migrate enzyme Folder & FolderList tests to React Testing Library (#6742)

* Migrate enzyme Field, Form & Section tests to React Testing Library (#6743)

* Migrate enzyme GhostIndicator tests to React Testing Library (#6745)

* Migrate enzyme Heading tests to React Testing Library (#6747)

* Migrate enzyme Loader tests to React Testing Library (#6750)

* Migrate enzyme Masonry tests to React Testing Library (#6752)

* Migrate enzyme Menu tests to React Testing Library (#6754)

* Migrate enzyme PermissionHint tests to React Testing Library (#6755)

* Migrate enzyme Toggler tests to React Testing Library (#6756)

* Migrate enzyme Snackbar tests to React Testing Library (#6757)

* Migrate enzyme Backdrop tests to React Testing Library (#6758)

* Migrate enzyme AutoCompletePopover tests to React Testing Library  (#6713)

* Migrate enzyme Block tests to React Testing Library (#6720)

* Migrate enzyme Grid tests to React Testing Library (#6746)

* Migrate enzyme Matrix tests to React Testing Library (#6762)

* Fix code style after php-cs-fixer update (#6772)

* Fix code styl eof PhpWebspaceCollectionDumperTest

* Fix php-cs-fix

* Fix php-cs

* Migrate enzyme Email tests to React Testing Library (#6738)

* added enzyme duplicate test file

* WIP migrated tests, added snapshots

* added comment

* added icon click test

* WIP added test

* migrated redirect test

* fixed snapshots

* fixed review

* Update src/Sulu/Bundle/AdminBundle/Resources/js/components/Input/Input.js

Co-authored-by: niklasnatter <niklas.natter@gmail.com>

* Migrate enzyme Icon tests to React Testing Library (#6748)

* added duplicate enzyme test file

* WIP added icon tests

* finished test migration

* Migrate enzyme Input tests to React Testing Library (#6751)

* added duplicate enzyme test file

* migrated first tests

* migrated render tests

* WIP added partial change test

* WIP added alternative solution

* WIP adapted input change test

* added input callback test

* finally fixed input somehow

* removed enzyme duplicate test file

* added missing snapshots

* Migrate enzyme PublishIndicator tests to React Testing Library (#6759)

migrated tests

* Migrate enzyme Dialog tests to React Testing Library (#6760)

* Migrate enzyme Dialog tests to React Testing Library

* migrated dialog tests

* udpated test

* added disabled test

* adde large class test

* added loading test

* removed unused destructured variable

* added closed test

* added click callback test

* added cancel callback test

* added snackbar test

* added unknown error display test

* migrated snackbar click callback test, fixed snapshot, removed duplicate enzyme test file

* fixed dialog snapshot & updated getByText queries to regex

* Migrate enzyme TextArea tests to React Testing Library (#6766)

* Migrate enzyme TextArea tests to React Testing Library

* added snapshot tests

* migrated tests

* Migrate enzyme Phone tests to React Testing Library (#6770)

* Migrate enzyme Phone tests to React Testing Library

* added iconclick test

* added iconclick test

* migrated tests

* removed duplicate enzyme test file & fixed snapshots

* Migrate enzyme Url tests to React Testing Library (#6771)

* Migrate enzyme Url tests to React Testing Library

* migrated protocol and path init test

* migrated tests

* migrated invalid url test

* added reset undefined test

* migrated remove error on valid email change test

* migrated remove error on change field test

* migrate onchange callback protocol change test

* migrate onchange callback on path change

* added migrated tests

* migrated undefined email test

* added correct email test

* migrate test

* migrate blur test

* migrate onblur change test

* added default prop call tests

* removed duplicate enzyme test file & update snapshots

* Migrate enzyme Switch tests to React Testing Library (#6775)

* Migrate enzyme Switch tests to React Testing Library

* removed stopPropagation test

* removed duplicate enzyme test file & fixed snapshots

* Migrate enzyme SingleItemSelection tests to React Testing Library (#6776)

* migrated snapshot tests

* migrated tests, fixed snapshots, removed duplicate enzyme test file

* Migrate enzyme PasswordConfirmation tests to React Testing Library (#6778)

* Migrate enzyme PasswordConfirmation tests to React Testing Library

* migrated passwordconfirmation tests

* added snapshots

* Migrate enzyme Navigation tests to React Testing Library (#6779)

* Migrate enzyme Navigation tests to React Testing Library

* migrated navigation component unit tests

* migrated usersection enzyme tests to RTL

* updated by text queries to regex

* Migrate enzyme SegmentCounter tests to React Testing Library (#6780)

* Fix eslint errors in javascript test cases (#6782)

* Use userEvent instead of fireEvent for simulating user interactions in javascript tests (#6783)

* Update snackbar snapshot

* Update Input snapshots

* Update email snapshots

* Update checkbox snapshots

* Update phone snapshots

* Update PasswordConfirmation snapshots

* Update Block Snapshots

* Migrate missing enzyme Block tests to React Testing Library (#6786)

* Migrate enzyme Radio tests to React Testing Library (#6777)

* Migrate enzyme SingleSelect tests to React Testing Library (#6781)

* Update phpstan-baseline.neon

* Fix merge error in RadioGroup.test.js

Co-authored-by: mamazu <14860264+mamazu@users.noreply.github.com>
Co-authored-by: Behemoth <54234287+b3h3m0th@users.noreply.github.com>
Co-authored-by: Luca Colombo <luca.colombo@newvisibility.it>
Co-authored-by: Simon Ostini <simonostini@gmail.com>
Co-authored-by: Alexander Schranz <alexander@sulu.io>
  • Loading branch information
6 people committed Aug 15, 2022
1 parent c4867cb commit d34bfe1
Show file tree
Hide file tree
Showing 176 changed files with 6,246 additions and 5,020 deletions.
12 changes: 9 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended"
"plugin:flowtype/recommended",
"plugin:testing-library/react",
"plugin:jest-dom/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
Expand All @@ -32,7 +34,8 @@
"react": {
"version": "detect",
"flowVersion": "0.142.0"
}
},
"testing-library/utils-module": "off"
},
"rules": {
"indent": [
Expand Down Expand Up @@ -234,7 +237,10 @@
"flowtype/sort-keys": "error",
"babel/semi": "error",
"jsx-a11y/no-static-element-interactions": "error",
"react/button-has-type": "error"
"react/button-has-type": "error",
"testing-library/no-node-access": "off",
"testing-library/prefer-explicit-assert": "error",
"testing-library/prefer-user-event": "error"
},
"reportUnusedDisableDirectives": true
}

0 comments on commit d34bfe1

Please sign in to comment.