From 2f05498282c846762135aeb605d25d04a3e6232b Mon Sep 17 00:00:00 2001 From: yoopie Date: Mon, 21 Oct 2024 17:46:26 +0800 Subject: [PATCH] test(test-case-view): fix FE test --- .../containers/TestCaseView/__test__/index.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/app/bundles/course/assessment/submission/containers/TestCaseView/__test__/index.test.js b/client/app/bundles/course/assessment/submission/containers/TestCaseView/__test__/index.test.js index a60d3cad126..ebc9e6bbc20 100644 --- a/client/app/bundles/course/assessment/submission/containers/TestCaseView/__test__/index.test.js +++ b/client/app/bundles/course/assessment/submission/containers/TestCaseView/__test__/index.test.js @@ -52,10 +52,9 @@ const defaultStaffViewProps = { }; const getWarning = (page, text) => - within(page.getByText(text).closest('div')).queryByText( - 'Only staff can see this.', - { exact: false }, - ); + within( + page.getByText(text).closest('.MuiAccordionSummary-content'), + ).queryByText('Only staff can see this.', { exact: false }); describe('TestCaseView', () => { describe('when viewing as staff', () => {