Openbravo Issue Tracking System - POS2
View Issue Details
0053197POS2POSpublic2023-08-10 12:192023-08-22 09:53
ablasco 
andre_montenegro 
normalminorhave not tried
closedfixed 
5
 
 
No
0053197: Remove "cypress/unsafe-to-chain-command" and fix warnings in ci related with eslint-plugin-cypress
In last npm update in core2, eslint-plugin-cypress updates from 2.11.2 to 2.14.0 breaking ci with warnings related with "cypress/unsafe-to-chain-command".

Warning: "It is unsafe to chain further commands that rely on the subject after this command. It is best to split the chain, chaining again from `cy.` in a next command line cypress/unsafe-to-chain-command"

A new exception rule was created to solve ci in eslintrc.json in cypress directory because this rule could not be extended in template to POS2.

This cypress tests should be reviewed to avoid this warnings and remove the exception rule in (openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/.eslintrc.json )
*
- Execute

./modules/org.openbravo.client.kernel/jslint/jslint

Warning messages appears related with cypress chaining.
No tags attached.
related to defect 0052961 closed ablasco Update all npm libraries to their latest version 
causes defect 0053241 closed andre_montenegro Follow up and update to "eslint-plugin-cypress" version which fixes "unsave-to-chain-command" error 
Issue History
2023-08-10 12:19ablascoNew Issue
2023-08-10 12:19ablascoAssigned To => Triage Platform Base
2023-08-10 12:19ablascoTriggers an Emergency Pack => No
2023-08-10 12:19ablascoRelationship addedrelated to 0052961
2023-08-10 12:39ablascoDescription Updatedbug_revision_view_page.php?rev_id=26631#r26631
2023-08-18 08:38andre_montenegroAssigned ToTriage Platform Base => andre_montenegro
2023-08-18 15:15hgbotNote Added: 0153681
2023-08-18 15:16andre_montenegroStatusnew => scheduled
2023-08-18 15:17andre_montenegroRelationship addedcauses 0053241
2023-08-22 09:52hgbotNote Added: 0153763
2023-08-22 09:53andre_montenegroStatusscheduled => resolved
2023-08-22 09:53andre_montenegroResolutionopen => fixed
2023-08-22 09:53andre_montenegroStatusresolved => closed

Notes
(0153681)
hgbot   
2023-08-18 15:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2021 [^]
(0153763)
hgbot   
2023-08-22 09:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2021 [^]