Skip to content

Failing tests for italian Number format #11806

@offtherailz

Description

@offtherailz

Description

Tests on italian language format started failing on github actions.
This is due probably to a fix done recently on node and propagated on github actions node version

Basically the italian correct format is
1000 --> 1000
10000 --> 10.000

This has been fixed recently on Node and so making our tests failing.

References:

How to reproduce

Failing tests on node 19, 20

FAILED TESTS:
  IntlNumberFormControl
    ✖ checks if the component renders value in IT locale
      Chrome Headless 143.0.0.0 (Linux 0.0.0)
    Error: Expected '1899,01' to be '1.899,01'
        at assert (webpack://mapstore2/./node_modules/expect/lib/assert.js?:29:9)
        at Expectation.toBe (webpack://mapstore2/./node_modules/expect/lib/Expectation.js?:70:28)
        at Context.eval (webpack://mapstore2/./web/client/components/I18N/__tests__/IntlNumberFormatControl-test.jsx?:77:70)

  NumberField
    ✖ check if the number is rendered in correct language format
      Chrome Headless 143.0.0.0 (Linux 0.0.0)
    Error: Expected '1234,56' to be '1.234,56'
        at assert (webpack://mapstore2/./node_modules/expect/lib/assert.js?:29:9)
        at Expectation.toBe (webpack://mapstore2/./node_modules/expect/lib/Expectation.js?:70:28)
        at eval (webpack://mapstore2/./web/client/components/data/query/__tests__/NumberField-test.jsx?:185:72)
        at Array.forEach (<anonymous>)
        at Context.eval (webpack://mapstore2/./web/client/com
  • Not browser related

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions