Skip to content

Commit

Permalink
sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 27, 2024
1 parent 30bcc18 commit bd4aed8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/src/components/ReviewPage/ReviewPage.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ describe('ReviewPage', () => {
expect(getByText("Confirm")).toBeDefined();
});
getByText((text) => text.includes('Confirm')).click();

await new Promise((r) => setTimeout(r, 100));

getByText((text) => text.includes('Release 1 sequences without errors')).click();

Check failure on line 136 in website/src/components/ReviewPage/ReviewPage.spec.tsx

View workflow job for this annotation

GitHub Actions / Unit Tests

src/components/ReviewPage/ReviewPage.spec.tsx > ReviewPage > should render the review page and show button to bulk delete/approve all erroneous sequences

TestingLibraryElementError: Unable to find an element with the text: (text) => text.includes("Release 1 sequences without errors"). This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. Ignored nodes: comments, script, style <body class="" > <div class="" > <div> No sequences to review </div> </div> <div id="react-confirm-alert" /> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/components/ReviewPage/ReviewPage.spec.tsx:136:9
await waitFor(() => {
expect(getByText("Confirm")).toBeDefined();
Expand Down

0 comments on commit bd4aed8

Please sign in to comment.