Skip to content

Commit

Permalink
[OSD][Tests] add test subject to app title for app analytics
Browse files Browse the repository at this point in the history
Using a test subject we can find the specific element instead
of trying to search the DOM for the class and hope the class
is the right class that contains the element we are looking for.

We can search the dom for this specific test subject and actually
make the test runner wait until this test subject exists before
executing the tests.

Issue related:
opensearch-project#679

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Apr 27, 2022
1 parent f0afa84 commit 2d75dd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export function Application(props: AppDetailProps) {
<EuiPageHeader>
<EuiPageHeaderSection>
<EuiTitle size="l">
<h1>{application.name}</h1>
<h1 data-test-subj={'appAnalyticsAppName'}>{application.name}</h1>
</EuiTitle>
<EuiText>
<p>{application.description}</p>
Expand Down

0 comments on commit 2d75dd9

Please sign in to comment.