Fixes #36106: PF5 Refactor - EditorNavbar, EditorOptions#10728
Fixes #36106: PF5 Refactor - EditorNavbar, EditorOptions#10728kfamilonidis wants to merge 1 commit intotheforeman:developfrom
Conversation
3e7a6c1 to
880cb47
Compare
f7cbd8f to
86ff36b
Compare
webpack/assets/javascripts/react_app/common/IntegrationTestHelper.js
Outdated
Show resolved
Hide resolved
...ets/javascripts/react_app/components/Editor/__tests__/__snapshots__/integration.test.js.snap
Outdated
Show resolved
Hide resolved
webpack/assets/javascripts/react_app/components/Editor/__tests__/integration.test.js
Outdated
Show resolved
Hide resolved
...pts/react_app/components/Editor/components/__tests__/__snapshots__/EditorNavbar.test.js.snap
Outdated
Show resolved
Hide resolved
kfamilonidis
left a comment
There was a problem hiding this comment.
Still needs progress to remove the snaps from the test that are testing components properties, but have noticed that some snaps are different from others; some are keeping store props, and some keeping components props. I would like to ask for some opinion on should we remove both snap types, or should we keep the store props - as the later might be serve as fixtures in the future (maybe transition to other store).
4474901 to
2fefd25
Compare
The |
a7def11 to
ebd3141
Compare
webpack/assets/javascripts/react_app/common/IntegrationTestHelper.js
Outdated
Show resolved
Hide resolved
so is it on the pending changes as well? as for this version I still see the checkbox and clicking on it does not enable the safemode as it should |
It should be, provided that the onClick was there before, or can I can add it to the list:
|
|
To clarify, here are screen captures Screencast.From.2026-01-06.12-59-14.mp4After: clicking on the checkbox does nothing (it does select the tab text) Screencast.From.2026-01-06.12-58-19.mp4 |
bfe9f28 to
747c9cf
Compare
Sure, thanks. The issue is fixed by z-index value, pls confirm. Probably zIndex needs to be tackled as this affects also the select menu area in low resolution mode. |
Can you describe how that will work in practise? |
I think giving effort to adjust this specific element (select menu) with custom css (zindex overrides) that affects checkbox (block) is hard to justify. This PR #10777 is to incorporate a new design in select menu that can behave differently. Do you propose any alternative ?
|
|
I am talking about fixing the safemode checkbox.
|
ad8e8f8 to
0e04bb0
Compare
|
thanks @MariaAga. The first option seemed more straightforward.
Tested it. Works as expected. Other remain are:
|
0e04bb0 to
ab57c7c
Compare
Upgrade NavBar (Alert, Button), Options (RadioButton, View), Settings. Remove enzyme in tests including DiffView, HostSelect, EditorView. Keep actions, and selectors tests.
ab57c7c to
f5ff973
Compare
Locator for the template nagigation bar (Editor/Changes/Preview) has slightly changed. Related to change theforeman/foreman#10728
|
I've retested the changes and everything looks good to me, i.e.:
I can confirm the few minor leftovers mentioned by @kfamilonidis in his comment #10728 (comment)
|
|
Regarding what still needs to be done in this PR, here are my suggestions:
I propose these to be handled in #10777.
I failed to reproduce this. @pnovotny could I get reproducing steps for this issue? |
you can use the dev console to make the screen smaller if you dont see the arrows |
I see the arrows but to me they work as expected. |
@adamlazik1 Ok, let me retry it on the latest snap build (163). I've reproduced it on snap 155 which is now quite old. |
|
@adamlazik1 I've tried this PR (foreman-3.18.0-0.20260112104949807834.pr10728.8933.gf5ff9739e.el9) on top of snap build 163. |
Thanks, I will investigate. |














Background
Editor and
<EditorNavBar />upgrade to next version of react requires substitution of Enzyme tests with RTL (React Testing Library) framework.Acceptance Criteria
Tests
followed by: #10777