Skip to content

Commit

Permalink
test(test-case-view): fix FE test
Browse files Browse the repository at this point in the history
  • Loading branch information
syoopie committed Oct 22, 2024
1 parent f46d3f6 commit 2f05498
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 2f05498

Please sign in to comment.