Skip to content

Commit

Permalink
Fixed snapshot failures. (#311)
Browse files Browse the repository at this point in the history
* Cherry-picked 2.2 commits. (#306)

* Bumping 2.x branch from version 2.1 to 2.2. Bumped terser version to 4.8.1 to address CVE. (#301)

Signed-off-by: AWSHurneyt <[email protected]>

* Added 2.2 release notes. (#302)

* Added 2.2 release notes.

Signed-off-by: AWSHurneyt <[email protected]>

* Added 2.2 release notes.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test workflows to run on all branches.

Signed-off-by: AWSHurneyt <[email protected]>

* Refactored test workflows to run on all branches.

Signed-off-by: AWSHurneyt <[email protected]>

* Fixed failing snapshot tests.

Signed-off-by: AWSHurneyt <[email protected]>

Signed-off-by: AWSHurneyt <[email protected]>

* Adjusted OSD version used by unit and cypress test workflows.

Signed-off-by: AWSHurneyt <[email protected]>

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt authored Aug 18, 2022
1 parent 26a8aee commit 2b7b2b2
Show file tree
Hide file tree
Showing 29 changed files with 1,931 additions and 397 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: E2E Cypress tests
on:
pull_request:
branches:
- main
- 1.x
- 2.*
- "*"
push:
branches:
- main
- 1.x
- 2.*
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
OPENSEARCH_DASHBOARDS_VERSION: '2.2'
OPENSEARCH_VERSION: '2.2.0-SNAPSHOT'
jobs:
tests:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: Unit tests workflow
on:
push:
branches:
- main
- 1.x
- 2.*
- "*"
pull_request:
branches:
- main
- 1.x
- 2.*
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
OPENSEARCH_DASHBOARDS_VERSION: '2.2'
jobs:
tests:
name: Run unit tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ exports[`FormikFieldPassword renders 1`] = `
<span
class="euiFormControlLayoutCustomIcon"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@ exports[`FormikSelect renders 1`] = `
<span
class="euiFormControlLayoutCustomIcon"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,26 @@ exports[`FormikSwitch renders 1`] = `
<span
class="euiSwitch__track"
>
<div>
EuiIconMock
</div>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiSwitch__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiSwitch__icon euiSwitch__icon--checked"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ exports[`IconToolTip renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,17 @@ exports[`ClusterMetricsMonitor renders 1`] = `
target="_blank"
>
Learn more
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
aria-label="External link"
class="euiIcon euiIcon--small euiIcon-isLoading euiLink__externalIcon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
<span
class="euiScreenReaderOnly"
>
Expand Down Expand Up @@ -106,9 +114,16 @@ exports[`ClusterMetricsMonitor renders 1`] = `
data-test-subj="comboBoxToggleListButton"
type="button"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,16 @@ exports[`MonitorDefinition renders 1`] = `
<span
class="euiFormControlLayoutCustomIcon"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@ exports[`MonitorDefinitionCard renders without AD plugin 1`] = `
target="_blank"
>
Learn more
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
aria-label="External link"
class="euiIcon euiIcon--small euiIcon-isLoading euiLink__externalIcon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
<span
class="euiScreenReaderOnly"
>
Expand Down Expand Up @@ -161,9 +169,20 @@ exports[`MonitorDefinitionCard renders without AD plugin 2`] = `
target="_blank"
>
Learn more
<div>
EuiIconMock
</div>
<svg
aria-label="External link"
class="euiIcon euiIcon--small euiLink__externalIcon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M13 8.5a.5.5 0 111 0V12a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2h3.5a.5.5 0 010 1H4a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8.5zm-5.12.339a.5.5 0 11-.706-.707L13.305 2H10.5a.5.5 0 110-1H14a1 1 0 011 1v3.5a.5.5 0 11-1 0V2.72L7.88 8.838z"
/>
</svg>
<span
class="euiScreenReaderOnly"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ exports[`MonitorExpressions renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down Expand Up @@ -93,9 +100,16 @@ exports[`MonitorExpressions renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down Expand Up @@ -172,9 +186,16 @@ exports[`MonitorExpressions renders 1`] = `
<span
class="euiFormControlLayoutCustomIcon"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
</div>
Expand All @@ -198,9 +219,16 @@ exports[`MonitorExpressions renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down Expand Up @@ -258,9 +286,16 @@ exports[`MonitorExpressions renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ exports[`ForExpression renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down Expand Up @@ -90,9 +97,16 @@ exports[`ForExpression renders 1`] = `
<span
class="euiFormControlLayoutCustomIcon"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading euiFormControlLayoutCustomIcon__icon"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ exports[`WhereExpression renders 1`] = `
<span
class="euiToolTipAnchor"
>
<div>
EuiIconMock
</div>
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiIcon-isLoading"
focusable="false"
height="16"
role="img"
viewBox="0 0 16 16"
width="16"
xmlns="http://www.w3.org/2000/svg"
/>
</span>
</div>
<div
Expand Down
Loading

0 comments on commit 2b7b2b2

Please sign in to comment.