Skip to content

Commit

Permalink
Updated jest testing
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Dong <danieldong51@gmail.com>
  • Loading branch information
danieldong51 committed Aug 23, 2024
1 parent b3a4f5c commit 3b37f3a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ exports[`Get started (landing page) renders when backend configuration is disabl
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="explore-existing-roles"
onClick={[Function]}
>
Explore existing roles
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down Expand Up @@ -153,12 +153,12 @@ exports[`Get started (landing page) renders when backend configuration is disabl
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="map-users-to-role"
onClick={[Function]}
>
Map users to a role
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down Expand Up @@ -206,12 +206,12 @@ exports[`Get started (landing page) renders when backend configuration is disabl
href="https://opensearch.org/docs/latest/security-plugin/audit-logs/"
/>
</p>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="review-audit-log-configuration"
onClick={[Function]}
>
Review Audit Log Configuration
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiText>
</EuiPanel>
<EuiSpacer
Expand Down Expand Up @@ -269,20 +269,20 @@ exports[`Get started (landing page) renders when backend configuration is disabl
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
onClick={[Function]}
>
Manage Multi-tenancy
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
onClick={[Function]}
>
Configure Multi-tenancy
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiText>
Expand Down Expand Up @@ -429,6 +429,7 @@ exports[`Get started (landing page) renders when backend configuration is enable
grow={false}
>
<ExternalLinkButton
fill={true}
href="https://opensearch.org/docs/latest/security-plugin/configuration/configuration/"
text="Create config.yml"
/>
Expand Down Expand Up @@ -471,12 +472,12 @@ exports[`Get started (landing page) renders when backend configuration is enable
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="explore-existing-roles"
onClick={[Function]}
>
Explore existing roles
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down Expand Up @@ -516,12 +517,12 @@ exports[`Get started (landing page) renders when backend configuration is enable
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="map-users-to-role"
onClick={[Function]}
>
Map users to a role
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down Expand Up @@ -569,12 +570,12 @@ exports[`Get started (landing page) renders when backend configuration is enable
href="https://opensearch.org/docs/latest/security-plugin/audit-logs/"
/>
</p>
<EuiSmallButtonEmpty
<EuiSmallButton
data-test-subj="review-audit-log-configuration"
onClick={[Function]}
>
Review Audit Log Configuration
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiText>
</EuiPanel>
<EuiSpacer
Expand Down Expand Up @@ -632,20 +633,20 @@ exports[`Get started (landing page) renders when backend configuration is enable
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
onClick={[Function]}
>
Manage Multi-tenancy
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
<EuiFlexItem
grow={false}
>
<EuiSmallButtonEmpty
<EuiSmallButton
onClick={[Function]}
>
Configure Multi-tenancy
</EuiSmallButtonEmpty>
</EuiSmallButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiText>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,16 @@ exports[`Display utils Render External Link 1`] = `
`;

exports[`Display utils Render External Link Button 1`] = `
<EuiSmallButtonEmpty
<EuiSmallButton
fill={true}
href="http://localhost:5601"
iconSide="right"
iconType="popout"
size="s"
target="_blank"
>
Test
</EuiSmallButtonEmpty>
</EuiSmallButton>
`;

exports[`Display utils Render expression when expression is non-empty 1`] = `
Expand Down

0 comments on commit 3b37f3a

Please sign in to comment.