mgr/dashboard: Prevent table items from getting selected while expanding#37482
mgr/dashboard: Prevent table items from getting selected while expanding#37482LenzGr merged 1 commit intoceph:masterfrom
Conversation
tspmelo
left a comment
There was a problem hiding this comment.
Please add a new unit test to check if the selection is not changed when expanding a different row.
epuertat
left a comment
There was a problem hiding this comment.
Once addressed @tspmelo's comments, I'm ok with this PR! Thanks @nizamial09!
bedbe4e to
2cfebf6
Compare
Added the unit test. Please take a look, thanks. @tspmelo Just a suggestion, can you also update the gif in PR description which covers this test? |
avanthakkar
left a comment
There was a problem hiding this comment.
Tested it locally, LGTM!
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.spec.ts
Outdated
Show resolved
Hide resolved
2cfebf6 to
65c7914
Compare
|
@avanthakkar Just saw your suggestion. The suggestion was edited into my comment so I missed it before. Anyway I've updated the description with the new gif. Thanks |
Yeah, I just saw that, my mistake. Thanks! |
votdev
left a comment
There was a problem hiding this comment.
I think you should check if e2e test aren't broken by this PR.
Configuration page
breadcrumb test
✓ should open and show breadcrumb (2709ms)
fields check
1) should verify that selected footer increases when an entry is clicked
✓ should check that details table opens (w/o tab header) (1077ms)
edit configuration test
✓ should click and edit a configuration and results should appear in the table (9299ms)
✓ should show only modified configurations (1439ms)
✓ should hide all modified configurations (1457ms)
5 passing (27s)
1 failing
1) Configuration page
fields check
should verify that selected footer increases when an entry is clicked:
AssertionError: expected 0 to equal 1
at Context.eval (https://bionic-huge--734e7c1f-b7d8-454f-a114-e1abf5a3d023:41140/__cypress/tests?p=cypress/integration/cluster/configuration.e2e-spec.ts:21:53)
Oh yeah, thanks. Let me check this locally. |
65c7914 to
978beeb
Compare
|
jenkins test dashboard |
1 similar comment
|
jenkins test dashboard |
While clicking on the expand button inside a table, the entire row is getting selected. This commit prevent that from happening. Fixes: https://tracker.ceph.com/issues/47376 Signed-off-by: Nizamudeen A <nia@redhat.com>
978beeb to
baf1705
Compare
|
jenkins test make check |
|
@votdev I removed certain lines from the e2e files like |
While clicking on the expand button inside a table, the entire row is getting selected. This commit prevent that from happening.
Fixes: https://tracker.ceph.com/issues/47376
Signed-off-by: Nizamudeen A nia@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox