Skip to content

Unstable test: filter.e2e #6311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alisonailea opened this issue Jan 19, 2023 · 1 comment
Closed

Unstable test: filter.e2e #6311

alisonailea opened this issue Jan 19, 2023 · 1 comment
Labels
0 - new New issues that need assignment. p - high Issue should be addressed in the current milestone, impacts component or core functionality testing Issues related to automated or manual testing.

Comments

@alisonailea
Copy link
Contributor

alisonailea commented Jan 19, 2023

Test type
unstable test

Which Component(s)
filter

Unstable Tests
calcite-filter › filter behavior › updates filtered items after filtering

Test error, if applicable

expect(received).toHaveLength(expected)

Expected length: 1
Received length: 4
Received array:  [{"description": "developer", "metadata": {"favoriteBand": "MetallicA", "haircolor": "red"}, "name": "Harry", "value": "harry"}, {"description": "developer", "metadata": {"favoriteBand": "Radiohead", "haircolor": "black"}, "name": "Matt", "value": "matt"}, {"description": "developer", "metadata": {"favoriteBand": "The Mars Volta", "haircolor": "black"}, "name": "Franco", "value": "franco"}, {"description": "developer", "metadata": {"favoriteBand": "Hippity Hops", "haircolor": "brown"}, "name": "Jon", "value": "jon"}]

  121 |
  122 |   function assertMatchingItems(filtered: any[], values: string[]): void {
> 123 |     expect(filtered).toHaveLength(values.length);
      |                      ^
  124 |     values.forEach((value) => expect(filtered.find((element) => element.value === value)).toBeDefined());
  125 |   }

PR skipped, if applicable
#5774

Additional Info
No response

@alisonailea alisonailea added testing Issues related to automated or manual testing. p - high Issue should be addressed in the current milestone, impacts component or core functionality 0 - new New issues that need assignment. labels Jan 19, 2023
@jcfranco
Copy link
Member

Test was restored in #6551. Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. p - high Issue should be addressed in the current milestone, impacts component or core functionality testing Issues related to automated or manual testing.
Projects
None yet
Development

No branches or pull requests

2 participants