@mtes-mct/monitor-ui 12.1.2 → 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 +7 -0
- package/README.md +15 -8
- package/cypress/index.js +8 -13
- package/cypress/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [12.1.1](https://github.com/MTES-MCT/monitor-ui/compare/v12.1.0...v12.1.1) (2024-02-28)
|
|
2
9
|
|
|
3
10
|
|
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
|
@@ -496,7 +496,7 @@ function pickMultiSelectOptions(fieldElement, values, label) {
|
|
|
496
496
|
throwError(`Could not find '.rs-picker-popup' in in field with label "${label}". Did the picker open?`);
|
|
497
497
|
}
|
|
498
498
|
values.forEach((value)=>{
|
|
499
|
-
cy.wrap(fieldElement).find('.rs-picker-toggle').
|
|
499
|
+
cy.wrap(fieldElement).find('.rs-picker-toggle').forceClick().wait(250).type(value).wait(250);
|
|
500
500
|
cy.wrap(rsuitePickerPopupElement).find('[role="option"]').contains(value).scrollIntoView().forceClick();
|
|
501
501
|
});
|
|
502
502
|
// Close the picker popup by pressing the escape key
|
|
@@ -772,10 +772,7 @@ function fill(label, value, leftRetries = RETRIES) {
|
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
|
|
775
|
-
function forceClick(
|
|
776
|
-
if (!subject) {
|
|
777
|
-
throw new Error(`Could not find subject.`);
|
|
778
|
-
}
|
|
775
|
+
function forceClick(subject) {
|
|
779
776
|
Cypress.log({
|
|
780
777
|
consoleProps: ()=>({
|
|
781
778
|
'Applied to': subject,
|
|
@@ -783,15 +780,13 @@ function forceClick([subject]) {
|
|
|
783
780
|
}),
|
|
784
781
|
name: 'forceClick'
|
|
785
782
|
});
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
force: true
|
|
789
|
-
});
|
|
790
|
-
} catch (_) {
|
|
791
|
-
return cy.wrap(subject).click({
|
|
792
|
-
force: true
|
|
793
|
-
});
|
|
783
|
+
if (!subject) {
|
|
784
|
+
throw new Error(`Could not find subject.`);
|
|
794
785
|
}
|
|
786
|
+
const wrappedSubject = cy.wrap(subject);
|
|
787
|
+
return wrappedSubject.click({
|
|
788
|
+
force: true
|
|
789
|
+
});
|
|
795
790
|
}
|
|
796
791
|
|
|
797
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": {
|