Skip to content

Commit a5e9f2a

Browse files
committed
refactor: rename testid
1 parent eba2e7d commit a5e9f2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/app/components/base/toast/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const Toast = ({
5353
{type === 'info' && <InformationCircleIcon className="w-5 h-5 text-blue-400" aria-hidden="true" />}
5454
</div>
5555
<div className="ml-3">
56-
<h3 data-testid={`${type}-toast-message`} className={
56+
<h3 data-testid={`toast-message-${type}`} className={
5757
classNames(
5858
'text-sm font-medium',
5959
type === 'success' ? 'text-green-800' : '',

web/cypress/e2e/shared-steps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Then('I should stay on page {string}', (path: string) => {
9292
})
9393

9494
Then('I should see a toast {string} message', (type: 'success' | 'error' | 'warning' | 'info') => {
95-
cy.get(`[data-testid=${type}-toast-message]`).should('be.visible')
95+
cy.get(`[data-testid=toast-message-${type}]`).should('be.visible')
9696
})
9797

9898
Then('I should see the {string}', (elementName: string) => {

0 commit comments

Comments
 (0)