Merge pull request #10250 from tiagodread/locators-screens

Add locators to screen page titles

Adds locators around the screen title so that we can use it in e2e tests.

Reviewed-by: Kersom <None>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-05-24 20:30:58 +00:00 committed by GitHub
commit e2140ad7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ const ActualTitle = ({ breadcrumbConfig }) => {
if (match.isExact) {
titleElement = (
<Title size="2xl" headingLevel="h2">
<Title size="2xl" headingLevel="h2" data-cy="screen-title">
{title}
</Title>
);

View File

@ -115,7 +115,7 @@ function ActivityStream() {
className="pf-m-condensed"
style={{ display: 'flex', justifyContent: 'space-between' }}
>
<Title size="2xl" headingLevel="h2">
<Title size="2xl" headingLevel="h2" data-cy="screen-title">
{t`Activity Stream`}
</Title>
<span id="grouped-type-select-id" hidden>