Frontend: Migrate PageToolbar.tsx from aria-label e2e selectors to data-testid (#79663)

* refactor: update PageToolbar to use data-testid

* refactor: update selector text

---------

Co-authored-by: joshhunt <josh@trtr.co>
This commit is contained in:
Jamin
2024-01-04 13:52:38 +02:00
committed by GitHub
co-authored by joshhunt
parent 5154a9d99c
commit 576b8ccff6
3 changed files with 2 additions and 5 deletions
@@ -287,7 +287,7 @@ export const Components = {
button: (title: string) => `QueryEditor toolbar item button ${title}`,
},
BackButton: {
backArrow: 'Go Back',
backArrow: 'data-testid Go Back',
},
OptionsGroup: {
group: (title?: string) => (title ? `Options group ${title}` : 'Options group'),
@@ -92,7 +92,7 @@ export const PageToolbar = React.memo(
tooltip="Go back (Esc)"
tooltipPlacement="bottom"
size="xxl"
aria-label={selectors.components.BackButton.backArrow}
data-testid={selectors.components.BackButton.backArrow}
onClick={onGoBack}
/>
</div>