-
Notifications
You must be signed in to change notification settings - Fork 48
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
Change the order of the sections #622
Merged
AWSHurneyt
merged 29 commits into
opensearch-project:main
from
jovancacvetkovic:Change_the_order_of_the_sections
Jun 21, 2023
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
db72f43
[FEATURE] Improve "list" text area UX #589
jovancvetkovic3006 0ae5a7e
[FEATURE] Improve "list" text area UX #589
jovancvetkovic3006 7ffa636
[FEATURE] Improve "list" text area UX #589
jovancvetkovic3006 3dd40db
[FEATURE] Improve "list" text area UX #589
jovancvetkovic3006 4ff3656
Change the order of the sections in the "Create detection rule" page …
jovancvetkovic3006 bddf21a
Merge branch 'main' of https://github.com/opensearch-project/security…
jovancvetkovic3006 7b67598
Code review
jovancvetkovic3006 ef216d8
Code review
jovancvetkovic3006 0d41bd7
bugfix for tags validation
jovancvetkovic3006 89d09a0
[FEATURE] Change the order of the sections in the "Create detection r…
jovancvetkovic3006 bf51721
[FEATURE] Change the order of the sections in the "Create detection r…
jovancvetkovic3006 50eab7c
[FEATURE] Replace code editor with expression editor #602
jovancvetkovic3006 a3cdcf1
[FEATURE] Replace code editor with expression editor #602
jovancvetkovic3006 7ecf906
Merge branch 'main' of https://github.com/opensearch-project/security…
jovancvetkovic3006 36aab7e
Improve text area ux and add expression UI #603
jovancvetkovic3006 f7e6385
Merge branch 'Improve_list_text_area_UX' of https://github.com/jovanc…
jovancvetkovic3006 2e2674d
Merge branch 'bugfix_for_tags_validation' of https://github.com/jovan…
jovancvetkovic3006 4a36997
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 cc0c408
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 07a2d6f
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 f56ff33
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 17109d7
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 bf34509
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 05f0967
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 43537fd
Cypress cases for detectors and rules, validate forms and fields
jovancvetkovic3006 f1f6b04
Merge branch 'opensearch-project:main' into Change_the_order_of_the_s…
jovancvetkovic3006 6e907d7
Merge branch 'main' of https://github.com/opensearch-project/security…
jovancvetkovic3006 dac6581
Merge remote-tracking branch 'origin/Change_the_order_of_the_sections…
jovancvetkovic3006 8c19090
Code review Change the order of the sections #622
jovancvetkovic3006 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
public/pages/Rules/components/DeleteModal/DeleteRuleModal.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import DeleteRuleModalMock from '../../../../../test/mocks/Rules/components/DeleteModal/DeleteRuleModal.mock'; | ||
import { DeleteRuleModal } from './DeleteRuleModal'; | ||
|
||
describe('<DeleteModal /> spec', () => { | ||
it('renders the component', () => { | ||
const tree = render(<DeleteRuleModal {...DeleteRuleModalMock} />); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
File renamed without changes.
168 changes: 168 additions & 0 deletions
168
public/pages/Rules/components/DeleteModal/__snapshots__/DeleteRuleModal.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<DeleteModal /> spec renders the component 1`] = ` | ||
Object { | ||
"asFragment": [Function], | ||
"baseElement": <body | ||
class="euiBody-hasOverlayMask" | ||
> | ||
<div | ||
aria-hidden="true" | ||
data-aria-hidden="true" | ||
/> | ||
<div | ||
class="euiOverlayMask euiOverlayMask--aboveHeader" | ||
> | ||
<div | ||
aria-hidden="true" | ||
data-aria-hidden="true" | ||
data-focus-guard="true" | ||
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" | ||
tabindex="0" | ||
/> | ||
<div | ||
data-focus-lock-disabled="false" | ||
> | ||
<div | ||
class="euiModal euiModal--maxWidth-default euiModal--confirmation" | ||
tabindex="0" | ||
> | ||
<button | ||
aria-label="Closes this modal window" | ||
class="euiButtonIcon euiButtonIcon--text euiButtonIcon--empty euiButtonIcon--xSmall euiModal__closeIcon" | ||
type="button" | ||
> | ||
EuiIconMock | ||
</button> | ||
<div | ||
class="euiModal__flex" | ||
> | ||
<div | ||
class="euiModalHeader" | ||
> | ||
<div | ||
class="euiModalHeader__title" | ||
data-test-subj="confirmModalTitleText" | ||
> | ||
Delete Delete rule? | ||
</div> | ||
</div> | ||
<div | ||
class="euiModalBody" | ||
> | ||
<div | ||
class="euiModalBody__overflow" | ||
> | ||
<div | ||
class="euiText euiText--medium" | ||
data-test-subj="confirmModalBodyText" | ||
> | ||
<p> | ||
Delete the rule permanently? This action cannot be undone. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="euiModalFooter" | ||
> | ||
<button | ||
class="euiButtonEmpty euiButtonEmpty--primary" | ||
data-test-subj="confirmModalCancelButton" | ||
type="button" | ||
> | ||
<span | ||
class="euiButtonContent euiButtonEmpty__content" | ||
> | ||
<span | ||
class="euiButtonEmpty__text" | ||
> | ||
Cancel | ||
</span> | ||
</span> | ||
</button> | ||
<button | ||
class="euiButton euiButton--danger euiButton--fill" | ||
data-test-subj="confirmModalConfirmButton" | ||
type="button" | ||
> | ||
<span | ||
class="euiButtonContent euiButton__content" | ||
> | ||
<span | ||
class="euiButton__text" | ||
> | ||
Delete | ||
</span> | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
aria-hidden="true" | ||
data-aria-hidden="true" | ||
data-focus-guard="true" | ||
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" | ||
tabindex="0" | ||
/> | ||
</div> | ||
</body>, | ||
"container": <div | ||
aria-hidden="true" | ||
data-aria-hidden="true" | ||
/>, | ||
"debug": [Function], | ||
"findAllByAltText": [Function], | ||
"findAllByDisplayValue": [Function], | ||
"findAllByLabelText": [Function], | ||
"findAllByPlaceholderText": [Function], | ||
"findAllByRole": [Function], | ||
"findAllByTestId": [Function], | ||
"findAllByText": [Function], | ||
"findAllByTitle": [Function], | ||
"findByAltText": [Function], | ||
"findByDisplayValue": [Function], | ||
"findByLabelText": [Function], | ||
"findByPlaceholderText": [Function], | ||
"findByRole": [Function], | ||
"findByTestId": [Function], | ||
"findByText": [Function], | ||
"findByTitle": [Function], | ||
"getAllByAltText": [Function], | ||
"getAllByDisplayValue": [Function], | ||
"getAllByLabelText": [Function], | ||
"getAllByPlaceholderText": [Function], | ||
"getAllByRole": [Function], | ||
"getAllByTestId": [Function], | ||
"getAllByText": [Function], | ||
"getAllByTitle": [Function], | ||
"getByAltText": [Function], | ||
"getByDisplayValue": [Function], | ||
"getByLabelText": [Function], | ||
"getByPlaceholderText": [Function], | ||
"getByRole": [Function], | ||
"getByTestId": [Function], | ||
"getByText": [Function], | ||
"getByTitle": [Function], | ||
"queryAllByAltText": [Function], | ||
"queryAllByDisplayValue": [Function], | ||
"queryAllByLabelText": [Function], | ||
"queryAllByPlaceholderText": [Function], | ||
"queryAllByRole": [Function], | ||
"queryAllByTestId": [Function], | ||
"queryAllByText": [Function], | ||
"queryAllByTitle": [Function], | ||
"queryByAltText": [Function], | ||
"queryByDisplayValue": [Function], | ||
"queryByLabelText": [Function], | ||
"queryByPlaceholderText": [Function], | ||
"queryByRole": [Function], | ||
"queryByTestId": [Function], | ||
"queryByText": [Function], | ||
"queryByTitle": [Function], | ||
"rerender": [Function], | ||
"unmount": [Function], | ||
} | ||
`; |
16 changes: 16 additions & 0 deletions
16
public/pages/Rules/components/RuleEditor/DetectionVisualEditor.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import { DetectionVisualEditor } from './DetectionVisualEditor'; | ||
import DetectionVisualEditorMock from '../../../../../test/mocks/Rules/components/RuleEditor/DetectionVisualEditor.mock'; | ||
|
||
describe('<SelectionExpField /> spec', () => { | ||
it('renders the component', () => { | ||
const tree = render(<DetectionVisualEditor {...DetectionVisualEditorMock} />); | ||
expect(tree).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick note:
When these test updates are eventually added to the functional test repo, it'll be important to confirm that these custom cypress command names overlap with those used by the other plugins in the FTR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, thanks for the reminder.