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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user