[Response Ops][Rules] Settings as Flyout instead of Modal#216162
[Response Ops][Rules] Settings as Flyout instead of Modal#216162jcger merged 10 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
…er/kibana into issue-215910-rule-settings-in-flyout
| }); | ||
|
|
||
| test('can save flapping settings', async () => { | ||
| const result = render(<RulesSettingsFlyoutWithProviders {...flyoutProps} />); |
There was a problem hiding this comment.
| const result = render(<RulesSettingsFlyoutWithProviders {...flyoutProps} />); | |
| render(<RulesSettingsFlyoutWithProviders {...flyoutProps} />); |
nit: screen is preferred for querying
There was a problem hiding this comment.
Sorry, somehow I created a copy of the this file before renaming it and github thought this was a new file. Regarding using screen, as there is not just this test that would need to be updated I prefer to do so in another PR dedicated to that and not mix things up
There was a problem hiding this comment.
I prefer to do so in another PR dedicated to that and not mix things up
yy no worries.
and github thought this was a new file.
I was actually wondering if this was the case because they looked similar to the other tests.
| await waitForFlyoutLoad(); | ||
| expect( | ||
| result.getByTestId('rulesSettingsFlappingEnableSwitch').getAttribute('aria-checked') | ||
| ).toBe('true'); |
There was a problem hiding this comment.
This is all a consequence of debugging too many cases' flaky tests ™️ but I got used to await screen.findBy* everywhere(vs getBy*).
I think it's fine here anyway, but I was wondering the following:
| await waitForFlyoutLoad(); | |
| expect( | |
| result.getByTestId('rulesSettingsFlappingEnableSwitch').getAttribute('aria-checked') | |
| ).toBe('true'); | |
| expect( | |
| (await screen.findByTestId('rulesSettingsFlappingEnableSwitch')).getAttribute('aria-checked') | |
| ).toBe('true'); |
would this work/be simpler?
💚 Build Succeeded
Metrics [docs]Async chunks
History
|
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…6162) ## Summary Closes elastic#215910 <img width="597" alt="Screenshot 2025-03-28 at 12 28 08" src="https://github.com/user-attachments/assets/6f4b5cb0-0778-4771-851a-a0a2d295f6b1" /> ## Release note: Moves rule settings to a flyout instead of a modal (cherry picked from commit 2881895)
…6162) (#223104) # Backport This will backport the following commits from `main` to `8.19`: - [[Response Ops][Rules] Settings as Flyout instead of Modal (#216162)](#216162) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Julian Gernun","email":"17549662+jcger@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-01T07:59:25Z","message":"[Response Ops][Rules] Settings as Flyout instead of Modal (#216162)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215910\n\n<img width=\"597\" alt=\"Screenshot 2025-03-28 at 12 28 08\"\nsrc=\"https://github.com/user-attachments/assets/6f4b5cb0-0778-4771-851a-a0a2d295f6b1\"\n/>\n\n## Release note:\nMoves rule settings to a flyout instead of a modal","sha":"2881895b4531653859ae1fd8515d17297d85dc81","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:skip","Team:ResponseOps","ci:cloud-deploy","v9.1.0","v8.19.0"],"title":"[Response Ops][Rules] Settings as Flyout instead of Modal","number":216162,"url":"https://github.com/elastic/kibana/pull/216162","mergeCommit":{"message":"[Response Ops][Rules] Settings as Flyout instead of Modal (#216162)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215910\n\n<img width=\"597\" alt=\"Screenshot 2025-03-28 at 12 28 08\"\nsrc=\"https://github.com/user-attachments/assets/6f4b5cb0-0778-4771-851a-a0a2d295f6b1\"\n/>\n\n## Release note:\nMoves rule settings to a flyout instead of a modal","sha":"2881895b4531653859ae1fd8515d17297d85dc81"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216162","number":216162,"mergeCommit":{"message":"[Response Ops][Rules] Settings as Flyout instead of Modal (#216162)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/215910\n\n<img width=\"597\" alt=\"Screenshot 2025-03-28 at 12 28 08\"\nsrc=\"https://github.com/user-attachments/assets/6f4b5cb0-0778-4771-851a-a0a2d295f6b1\"\n/>\n\n## Release note:\nMoves rule settings to a flyout instead of a modal","sha":"2881895b4531653859ae1fd8515d17297d85dc81"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Summary
Closes #215910
Release note:
Moves rule settings to a flyout instead of a modal