@mtes-mct/monitor-ui 12.1.1 → 12.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +15 -8
- package/cypress/index.js +8 -17
- package/cypress/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## [12.1.2](https://github.com/MTES-MCT/monitor-ui/compare/v12.1.1...v12.1.2) (2024-02-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **cypress:** target right input during fill() search for MultiSelect ([1692c0b](https://github.com/MTES-MCT/monitor-ui/commit/1692c0bce324eeb172c58d77e0bb268d918226c8))
|
|
7
|
+
|
|
8
|
+
## [12.1.1](https://github.com/MTES-MCT/monitor-ui/compare/v12.1.0...v12.1.1) (2024-02-28)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **cypress:** fix inner findElementParentBySelector() util ([a2dc379](https://github.com/MTES-MCT/monitor-ui/commit/a2dc37935989c54f4151d5fc47fde6956707cdf0))
|
|
14
|
+
* **cypress:** handle nested fieldsets in fill() command ([b5cb9f2](https://github.com/MTES-MCT/monitor-ui/commit/b5cb9f2ae1dff27e9d17d76022299ba36e9b2f19))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Buid System & Dependencies
|
|
18
|
+
|
|
19
|
+
* **dev-deps:** bump @commitlint/cli from 18.4.3 to 19.0.1 ([65e3b1c](https://github.com/MTES-MCT/monitor-ui/commit/65e3b1cbf6ff50ab61683e649638ca982074e993))
|
|
20
|
+
* **dev-deps:** bump @storybook/addon-storysource ([e5de861](https://github.com/MTES-MCT/monitor-ui/commit/e5de861a5710c119a68d17ca4c1e077893f79aef))
|
|
21
|
+
* **dev-deps:** bump @types/node in /e2e/release/sample ([e2f88b0](https://github.com/MTES-MCT/monitor-ui/commit/e2f88b0db3e73c9336c232e9e09f7b8cb614c729))
|
|
22
|
+
* **dev-deps:** bump @types/react in /e2e/release/sample ([214db7a](https://github.com/MTES-MCT/monitor-ui/commit/214db7a3a0bcac96e329808fa46d297954e35ec9))
|
|
23
|
+
* **dev-deps:** bump @types/react-dom in /e2e/release/sample ([8e74dd4](https://github.com/MTES-MCT/monitor-ui/commit/8e74dd4bf76753db7885244e7ebd2397faf186a1))
|
|
24
|
+
* **dev-deps:** bump cypress in /e2e/release/sample ([16e73ad](https://github.com/MTES-MCT/monitor-ui/commit/16e73add39ef203ea48ed782414d4f13748fa35b))
|
|
25
|
+
* **dev-deps:** bump prettier in /e2e/release/sample ([34d3b00](https://github.com/MTES-MCT/monitor-ui/commit/34d3b005e4a263fe6251a936282ab359c2cbb7ce))
|
|
26
|
+
* **dev-deps:** bump rollup-plugin-import-css from 3.4.0 to 3.5.0 ([69351ea](https://github.com/MTES-MCT/monitor-ui/commit/69351eab749ac534f267abd0e3fe2bde16bb0b54))
|
|
27
|
+
|
|
1
28
|
## [12.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v12.0.3...v12.1.0) (2024-02-27)
|
|
2
29
|
|
|
3
30
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Monitor UI
|
|
2
2
|
|
|
3
|
-
[![License][img-license]][lnk-license] [![
|
|
3
|
+
[![License][img-license]][lnk-license] [![NPM Version][img-npm]][lnk-npm]
|
|
4
|
+
[![Unit Tests][img-unit-tests]][lnk-unit-tests] [![E2E Tests][img-e2e-tests]][lnk-e2e-tests]
|
|
5
|
+
[![Documentation][img-documentation]][lnk-documentation]
|
|
4
6
|
|
|
5
7
|
> Common React components, hooks, utilities and CSS stylesheets for [MonitorFish][lnk-github-monitorfish],
|
|
6
8
|
> [MonitorEnv][lnk-github-monitorenv] and [RapportNav][lnk-github-rapportnav].
|
|
@@ -48,7 +50,7 @@ export function App() {
|
|
|
48
50
|
|
|
49
51
|
## Documentation
|
|
50
52
|
|
|
51
|
-
Here is [the Storybook][lnk-
|
|
53
|
+
Here is [the Storybook documentation][lnk-documentation].
|
|
52
54
|
|
|
53
55
|
## Contributing
|
|
54
56
|
|
|
@@ -56,14 +58,19 @@ Please read the [contributing document](CONTRIBUTING.md) for setup and contribut
|
|
|
56
58
|
|
|
57
59
|
---
|
|
58
60
|
|
|
59
|
-
[img-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
[img-
|
|
63
|
-
[
|
|
61
|
+
[img-documentation]: https://img.shields.io/badge/StoryBook-Docs-007ec6?logo=storybook&style=for-the-badge
|
|
62
|
+
[img-e2e-tests]:
|
|
63
|
+
https://img.shields.io/endpoint?url=https://cloud.cypress.io/badge/simple/qnpjm2/main&label=E2E&logo=cypress&style=for-the-badge
|
|
64
|
+
[img-license]: https://img.shields.io/github/license/MTES-MCT/monitor-ui?style=for-the-badge
|
|
65
|
+
[img-npm]: https://img.shields.io/npm/v/@mtes-mct/monitor-ui?style=for-the-badge
|
|
66
|
+
[img-unit-tests]:
|
|
67
|
+
https://img.shields.io/github/actions/workflow/status/MTES-MCT/monitor-ui/check.yml?branch=main&label=Unit&style=for-the-badge
|
|
68
|
+
[lnk-documentation]: https://mtes-mct.github.io/monitor-ui/?path=/docs/introduction--documentation
|
|
69
|
+
[lnk-e2e-tests]: https://cloud.cypress.io/projects/qnpjm2/runs
|
|
70
|
+
[lnk-e2e-tests]: https://cloud.cypress.io/projects/qnpjm2/runs
|
|
64
71
|
[lnk-github-monitorenv]: https://github.com/MTES-MCT/monitorenv
|
|
65
72
|
[lnk-github-monitorfish]: https://github.com/MTES-MCT/monitorfish
|
|
66
73
|
[lnk-github-rapportnav]: https://github.com/MTES-MCT/rapportnav2
|
|
67
74
|
[lnk-license]: https://github.com/MTES-MCT/monitor-ui/blob/main/LICENSE
|
|
68
75
|
[lnk-npm]: https://www.npmjs.com/package/@mtes-mct/monitor-ui
|
|
69
|
-
[lnk-
|
|
76
|
+
[lnk-unit-tests]: https://github.com/MTES-MCT/monitor-ui/actions?query=branch%3Amain++
|
package/cypress/index.js
CHANGED
|
@@ -495,12 +495,8 @@ function pickMultiSelectOptions(fieldElement, values, label) {
|
|
|
495
495
|
if (!rsuitePickerPopupElement) {
|
|
496
496
|
throwError(`Could not find '.rs-picker-popup' in in field with label "${label}". Did the picker open?`);
|
|
497
497
|
}
|
|
498
|
-
const maybeSearchInput = rsuitePickerPopupElement.querySelector('input[role="searchbox"]');
|
|
499
498
|
values.forEach((value)=>{
|
|
500
|
-
|
|
501
|
-
if (maybeSearchInput) {
|
|
502
|
-
cy.wrap(rsuitePickerPopupElement).find('input[role="searchbox"]').type(value).wait(250);
|
|
503
|
-
}
|
|
499
|
+
cy.wrap(fieldElement).find('.rs-picker-toggle').forceClick().wait(250).type(value).wait(250);
|
|
504
500
|
cy.wrap(rsuitePickerPopupElement).find('[role="option"]').contains(value).scrollIntoView().forceClick();
|
|
505
501
|
});
|
|
506
502
|
// Close the picker popup by pressing the escape key
|
|
@@ -776,10 +772,7 @@ function fill(label, value, leftRetries = RETRIES) {
|
|
|
776
772
|
}
|
|
777
773
|
}
|
|
778
774
|
|
|
779
|
-
function forceClick(
|
|
780
|
-
if (!subject) {
|
|
781
|
-
throw new Error(`Could not find subject.`);
|
|
782
|
-
}
|
|
775
|
+
function forceClick(subject) {
|
|
783
776
|
Cypress.log({
|
|
784
777
|
consoleProps: ()=>({
|
|
785
778
|
'Applied to': subject,
|
|
@@ -787,15 +780,13 @@ function forceClick([subject]) {
|
|
|
787
780
|
}),
|
|
788
781
|
name: 'forceClick'
|
|
789
782
|
});
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
force: true
|
|
793
|
-
});
|
|
794
|
-
} catch (_) {
|
|
795
|
-
return cy.wrap(subject).click({
|
|
796
|
-
force: true
|
|
797
|
-
});
|
|
783
|
+
if (!subject) {
|
|
784
|
+
throw new Error(`Could not find subject.`);
|
|
798
785
|
}
|
|
786
|
+
const wrappedSubject = cy.wrap(subject);
|
|
787
|
+
return wrappedSubject.click({
|
|
788
|
+
force: true
|
|
789
|
+
});
|
|
799
790
|
}
|
|
800
791
|
|
|
801
792
|
function getDataCy(dataCy) {
|
package/cypress/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtes-mct/monitor-ui",
|
|
3
3
|
"description": "Common React components, hooks, utilities and CSS stylesheets for MonitorFish, MonitorEnv and RapportNav.",
|
|
4
|
-
"version": "12.1.
|
|
4
|
+
"version": "12.1.3",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|