diff --git a/src/components/views/toasts/GenericToast.tsx b/src/components/views/toasts/GenericToast.tsx index 45b65ae1fb..d84f03dfc0 100644 --- a/src/components/views/toasts/GenericToast.tsx +++ b/src/components/views/toasts/GenericToast.tsx @@ -50,7 +50,7 @@ const GenericToast: React.FC> = ({ {detailContent}
- {onReject && rejectLabel && + {onReject && rejectLabel && { rejectLabel } } diff --git a/test/end-to-end-tests/src/usecases/toasts.js b/test/end-to-end-tests/src/usecases/toasts.js index db78352f2b..d739f3b4ea 100644 --- a/test/end-to-end-tests/src/usecases/toasts.js +++ b/test/end-to-end-tests/src/usecases/toasts.js @@ -40,7 +40,7 @@ async function acceptToast(session, expectedTitle) { async function rejectToast(session, expectedTitle) { await assertToast(session, expectedTitle); - const btn = await session.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger'); + const btn = await session.query('.mx_Toast_buttons .mx_AccessibleButton_kind_danger_outline'); await btn.click(); }