Openbravo Issue Tracking System - POS2
View Issue Details
0046589POS2POSpublic2021-05-07 14:282021-05-23 23:10
plujan 
hernan-dp 
normalminorhave not tried
closedfixed 
5
 
 
approved
Gold
No
0046589: The Carousel pagers identifiers (data-testid) are not unique
In order to paginate the keymaps, the Carousel functionality introduces new components called "pagers", that are small white/grey circles at the bottom or at the right margin of the keymap.
These pagers' data-testid fields are named "-circle-0", "-circle-1" and so on. In case there are more than one pager, this means the testids are not unique.
The easiest way to see this is to inspect the page and seek for the "circle" text. An example screenshot is attached.
Change the name to make it unique, by adding the name of the keymap it is controlling. Also, please rename the testid from "circle" to "pager", as the shape of the component is not a good way to name it.
For example: data-testid="ProductCategory-pager-0" or "obpos2ProductCategory-pager-0"
Takeaway
related to defect 0046730 closed hernan-dp Carousel "arrow" keys are missing its testid 
related to defect 0046815 closed hernan-dp The Carousel vertical pagers identifiers (data-testid) for Product keymap are not properly 
png Carousel-testids.png (24,297) 2021-05-07 14:28
https://issues.openbravo.com/file_download.php?file_id=15675&type=bug
png
Issue History
2021-05-07 14:28plujanNew Issue
2021-05-07 14:28plujanAssigned To => Retail
2021-05-07 14:28plujanFile Added: Carousel-testids.png
2021-05-07 14:28plujanOBNetwork customer => Gold
2021-05-07 14:28plujanResolution time => 1621548000
2021-05-07 14:28plujanTriggers an Emergency Pack => No
2021-05-07 14:42guilleaerTag Attached: Takeaway
2021-05-07 14:43guilleaerResolution time1621548000 => 1623016800
2021-05-07 14:43guilleaerSeveritymajor => minor
2021-05-07 14:43guilleaerSummary[TAP] The Carousel pagers identifiers (data-testid) are not unique => The Carousel pagers identifiers (data-testid) are not unique
2021-05-07 14:44guilleaerStatusnew => acknowledged
2021-05-08 00:06hgbotMerge Request Status => open
2021-05-08 00:06hgbotNote Added: 0127906
2021-05-08 00:07hgbotNote Added: 0127907
2021-05-08 00:08hgbotNote Added: 0127908
2021-05-10 09:05guilleaerStatusacknowledged => scheduled
2021-05-10 09:05guilleaerAssigned ToRetail => hernan-dp
2021-05-10 09:08guilleaerNote Added: 0127928
2021-05-10 09:09guilleaerNote Deleted: 0127907
2021-05-10 09:09guilleaerNote Deleted: 0127928
2021-05-11 21:29hgbotNote Added: 0128011
2021-05-11 21:29hgbotNote Added: 0128012
2021-05-19 10:50plujanRelationship addedrelated to 0046730
2021-05-19 10:51plujanNote Added: 0128391
2021-05-21 12:44hgbotMerge Request Statusopen => approved
2021-05-21 12:49hgbotResolutionopen => fixed
2021-05-21 12:49hgbotStatusscheduled => closed
2021-05-21 12:49hgbotNote Added: 0128491
2021-05-21 12:49hgbotNote Added: 0128492
2021-05-21 12:49hgbotNote Added: 0128493
2021-05-21 12:49hgbotNote Added: 0128494
2021-05-21 14:07hgbotNote Added: 0128499
2021-05-22 11:35hgbotNote Added: 0128521
2021-05-23 23:10hgbotNote Added: 0128523
2021-05-23 23:10hgbotNote Added: 0128524
2021-05-24 16:33plujanRelationship addedrelated to 0046815

Notes
(0127906)
hgbot   
2021-05-08 00:06   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/442 [^]
(0127908)
hgbot   
2021-05-08 00:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/494 [^]
(0128011)
hgbot   
2021-05-11 21:29   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/494 [^]
(0128012)
hgbot   
2021-05-11 21:29   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/442 [^]
(0128391)
plujan   
2021-05-19 10:51   
Added relationship with 0046730
(0128491)
hgbot   
2021-05-21 12:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 788f008bbc24149c666e3460b2f57735745700a0
Author: hernan-dp <h.de.prada1@gmail.com>
Date: 2021-05-21T12:46:11+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/788f008bbc24149c666e3460b2f57735745700a0 [^]

fixed ISSUE-46589: Added testId threw props to pager.

---
M web-jspack/org.openbravo.core2/src/components/BaseKeymap/BaseKeymap.jsx
M web-jspack/org.openbravo.core2/src/components/Carousel/Carousel.jsx
M web-jspack/org.openbravo.core2/src/components/Carousel/Pager/Pager.jsx
M web-jspack/org.openbravo.core2/src/components/Carousel/Pager/Pager.scss
M web-jspack/org.openbravo.core2/src/components/Carousel/Pager/__test__/Pager.test.jsx
---
(0128492)
hgbot   
2021-05-21 12:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/494 [^]
(0128493)
hgbot   
2021-05-21 12:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/442 [^]
(0128494)
hgbot   
2021-05-21 12:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1fdc33f1eb12daa65988e5873a23c475db4a5a4a
Author: hernan-dp <h.de.prada1@gmail.com>
Date: 2021-05-21T12:46:36+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1fdc33f1eb12daa65988e5873a23c475db4a5a4a [^]

fixed ISSUE-46589: Added keymap id to test id so it isn't static.

---
M web-jspack/org.openbravo.pos2/src/components/ProductCategoryKeymap/ProductCategoryKeymap.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductCategoryKeymap/__mock__/FullKeymapConfig.mock.json
M web-jspack/org.openbravo.pos2/src/components/ProductCategoryKeymap/__test__/ProductCategoryKeymap.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/ProductKeymap.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__mock__/ProductKeymap.mock1.json
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__test__/ProductKeymap.test.jsx
---
(0128499)
hgbot   
2021-05-21 14:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 659fa8448d56c65f28ded231bd4120bf072b20a7
Author: hernan-dp <h.de.prada1@gmail.com>
Date: 2021-05-21T12:56:11+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/659fa8448d56c65f28ded231bd4120bf072b20a7 [^]

fixed ISSUE-46589: Added default test-id for product and product categories keymap

---
M web-jspack/org.openbravo.pos2/src/components/ProductCategoryKeymap/ProductCategoryKeymap.jsx
---
(0128521)
hgbot   
2021-05-22 11:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/516 [^]
(0128523)
hgbot   
2021-05-23 23:10   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 338a5228ba4e7c23f8f6044bded1aa8960fb117e
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 2021-05-22T11:33:46+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/338a5228ba4e7c23f8f6044bded1aa8960fb117e [^]

Related to ISSUE-46589: fix test

---
M web-jspack/org.openbravo.core2/src/components/Carousel/CarouselButton/__test__/CarouselButton.test.jsx
---
(0128524)
hgbot   
2021-05-23 23:10   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/516 [^]