Skip to content

Commit 1dc8063

Browse files
committed
test: fixing flaky test
1 parent cf7ab7d commit 1dc8063

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/course-unit/CourseUnit.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ describe('<CourseUnit />', () => {
714714
await executeThunk(editCourseUnitVisibilityAndData(blockId, PUBLISH_TYPES.makePublic, true), store.dispatch);
715715

716716
await waitFor(async () => {
717-
const problemButton = screen.getByRole('button', {
717+
const problemButton = await screen.findByRole('button', {
718718
name: new RegExp(`problem ${addComponentMessages.buttonText.defaultMessage} Problem`, 'i'),
719719
hidden: true,
720720
});

0 commit comments

Comments
 (0)