kolibri-design-system icon indicating copy to clipboard operation
kolibri-design-system copied to clipboard

[KListWithOverflow]: Add unit tests

Open AlexVelezLl opened this issue 1 year ago • 9 comments

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Product

KDS.

Desired behavior

We should add unit tests to KListWithOverflow, since it has some complicated calculations and needs to be protected from regressions. So we need to test at least the following things:

  • It should render the whole list items if it fits in the available space, even if there is just 1px of difference.
  • It shouldnt render the more slot if the list items fits in the available space.
  • It shouldnt render the items that are overflowed and dont fit in the available space even if there is just 1px of difference.
  • It should render the more slot if there are overflowed items.
  • It should pass the correct items in the overflowItems array passed to the more slot.
  • It shouldnt render a divider as the last item in the visible list, even if it fits in the available space.

Current behavior

We currently dont have unit tests for KListWithOverflow.

AlexVelezLl avatar Nov 19 '24 23:11 AlexVelezLl

Hi @AlexVelezLl , I would like to work on this issue. Please assign to me.

yeshwanth235 avatar Nov 22 '24 01:11 yeshwanth235

Hey @yeshwanth235 thank you for your interest in handling this issue, I can assign it to you. Please let us know if you have any questions! :)

LianaHarris360 avatar Nov 22 '24 16:11 LianaHarris360

Hey @AlexVelezLl , I would like to work on this issue. If no one is working on this, please assign this to me.

you-think-you-know-me avatar Jan 21 '25 06:01 you-think-you-know-me

Hey @you-think-you-know-me, thanks for your interest in contributing to LE!

As we haven't had any activity from the currently assigned contributor in two months, I will reassign this issue to you :). Please let us know if you have any questions!

AlexVelezLl avatar Jan 22 '25 11:01 AlexVelezLl

@AlexVelezLl I have raised the PR. Please review it.

you-think-you-know-me avatar Feb 02 '25 10:02 you-think-you-know-me

Thanks @you-think-you-know-me! I will take a look at it this week :)

AlexVelezLl avatar Feb 03 '25 13:02 AlexVelezLl

Unassigning due to inactivity.

AlexVelezLl avatar Apr 17 '25 13:04 AlexVelezLl

Hi @AlexVelezLl, I'd like to work on this issue.

VincentChiang621 avatar Apr 22 '25 21:04 VincentChiang621

Hi @VincentChiang621! Thanks for your interest in contributing to Learning Equality! I will assign this to you :). Please, take into account the conversations we had in this closed PR for you to have some hints for this issue. If you have any question, please let us know!

AlexVelezLl avatar Apr 23 '25 16:04 AlexVelezLl