Openbravo Issue Tracking System - POS2 | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0053241 | POS2 | POS | public | 2023-08-18 15:01 | 2023-10-16 09:37 | |||||||
| Reporter | andre_montenegro | |||||||||||
| Assigned To | andre_montenegro | |||||||||||
| Priority | low | Severity | trivial | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | approved | |||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0053241: Follow up and update to "eslint-plugin-cypress" version which fixes "unsave-to-chain-command" error | |||||||||||
| Description | After an update to 2.14.0, the cypress/unsafe-to-chain-command rule is triggered by code as: cy.focused().type("text") This should be no problem however, as the cypress document states cy.focused() is a query, and it is safe to chain further commands (https://docs.cypress.io/api/commands/focused [^]) Currently, this is an opened issue in plugin's repo: https://github.com/cypress-io/eslint-plugin-cypress/issues/140 [^] Follow up this issue and update plugin to the version which fixes it and delete the exception "eslint-disable-next-line cypress/unsafe-to-chain-command" from Cypress tests in pos2 module: - pager.spec.js - deliveryModes.js - quotation.js - ticket.js - paidReceipts.int.spec.js | |||||||||||
| Steps To Reproduce | By having installed "eslint-plugin-cypress" version 2.14.0, open org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress with VSCode and delete the exception "// eslint-disable-next-line cypress/unsafe-to-chain-command " for the following tests: - pager.spec.js - deliveryModes.js - quotation.js - ticket.js - paidReceipts.int.spec.js Then, from a terminal at "openbravo/" folder, execute: ./modules/org.openbravo.client.kernel/jslint/jslint Warning messages appears related with cypress chaining. | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2023-08-18 15:01 | andre_montenegro | New Issue | ||||||||||
| 2023-08-18 15:01 | andre_montenegro | Assigned To | => andre_montenegro | |||||||||
| 2023-08-18 15:01 | andre_montenegro | OBNetwork customer | => No | |||||||||
| 2023-08-18 15:01 | andre_montenegro | Triggers an Emergency Pack | => No | |||||||||
| 2023-08-18 15:17 | andre_montenegro | Relationship added | caused by 0053197 | |||||||||
| 2023-10-04 09:29 | hgbot | Merge Request Status | => open | |||||||||
| 2023-10-04 09:29 | hgbot | Note Added: 0155479 | ||||||||||
| 2023-10-04 09:37 | hgbot | Note Added: 0155480 | ||||||||||
| 2023-10-06 11:39 | hgbot | Merge Request Status | open => approved | |||||||||
| 2023-10-16 09:34 | hgbot | Resolution | open => fixed | |||||||||
| 2023-10-16 09:34 | hgbot | Status | new => closed | |||||||||
| 2023-10-16 09:34 | hgbot | Fixed in Version | => 24Q1 | |||||||||
| 2023-10-16 09:34 | hgbot | Note Added: 0155850 | ||||||||||
| 2023-10-16 09:34 | hgbot | Note Added: 0155851 | ||||||||||
| 2023-10-16 09:35 | hgbot | Note Added: 0155852 | ||||||||||
| 2023-10-16 09:35 | hgbot | Note Added: 0155853 | ||||||||||
| 2023-10-16 09:37 | andre_montenegro | Fixed in Version | 24Q1 => | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||