Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0047016 | POS2 | POS | public | 2021-06-08 09:36 | 2021-07-22 16:04 |
|
Reporter | plujan | |
Assigned To | hernan-dp | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0047016: [CY] The elements of two different ticket lines share the same testid |
Description | Although the testid tags should be unique, if a ticket has more than one line, all its testids are named in a similar fashion, making them not unique. |
Steps To Reproduce | 1. Add a product to a blank ticket. Inspect its elements and check the data-testid tags to see values like "obpos2TicketLineCheckbox-checkbox", "obpos2TicketLine-ticketLineQuantity", etc.
2. Add a different product to get two lines in the ticket. Inspect both lines elements and check the values of its testids coincide. This is a defect as the testids must be unique. |
Proposed Solution | Inherit the index of the line as the grids components do. For example, a testid currently named "obpos2TicketLine-ticketLineQuantity" could be named "obpos2TicketLine-LineContent-1-ticketLineQuantity" |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-06-08 09:36 | plujan | New Issue | |
2021-06-08 09:36 | plujan | Assigned To | => Retail |
2021-06-08 09:36 | plujan | Resolution time | => 1627250400 |
2021-06-08 09:36 | plujan | Triggers an Emergency Pack | => No |
2021-06-14 10:27 | guilleaer | Status | new => acknowledged |
2021-07-15 16:43 | dmiguelez | Resolution time | 1627250400 => 1638313200 |
2021-07-22 02:25 | hgbot | Note Added: 0130683 | |
2021-07-22 02:25 | hgbot | Note Added: 0130684 | |
2021-07-22 09:23 | dmiguelez | Status | acknowledged => scheduled |
2021-07-22 09:23 | dmiguelez | Assigned To | Retail => hernan-dp |
2021-07-22 09:23 | hgbot | Resolution | open => fixed |
2021-07-22 09:23 | hgbot | Status | scheduled => closed |
2021-07-22 09:23 | hgbot | Note Added: 0130686 | |
2021-07-22 09:23 | hgbot | Note Added: 0130687 | |
2021-07-22 16:04 | hgbot | Note Added: 0130700 | |
2021-07-22 16:04 | hgbot | Note Added: 0130701 | |
Notes |
|
(0130683)
|
hgbot
|
2021-07-22 02:25
|
|
|
|
(0130684)
|
hgbot
|
2021-07-22 02:25
|
|
|
|
(0130686)
|
hgbot
|
2021-07-22 09:23
|
|
|
|
(0130687)
|
hgbot
|
2021-07-22 09:23
|
|
|
|
(0130700)
|
hgbot
|
2021-07-22 16:04
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 88a7ffc0055a3a6e12ed7f6679df3683912219d8
Author: hernan-dp <h.de.prada1@gmail.com>
Date: 2021-07-22T14:04:26+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/88a7ffc0055a3a6e12ed7f6679df3683912219d8 [^]
fixes ISSUE-47016: Adds unique ids to ticket lines components.
---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketArea/__test__/TicketArea.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLineDiscount/TicketLineDiscount.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePrediscountPrice/TicketLinePrediscountPrice.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/ProductConfiguration.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLineQuantity.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLineSchemaLabel/TicketLineSchemaLabel.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/TicketLineSchemaLabel/__test__/TicketLineSchemaLabel.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/__test__/ProductConfiguration.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/__test__/TicketLines.test.jsx
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsGrid/TicketLineRenderCell/__test__/TicketLineRenderCell.test.jsx
---
|
|
|
(0130701)
|
hgbot
|
2021-07-22 16:04
|
|
|