Skip to content

Commit

Permalink
feat: modified label for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
prwozny committed Feb 5, 2025
1 parent a3f7191 commit 0a6ad57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App/App.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Component display', () => {
render(<App />);
});

expect(await screen.findByText(D.mySurveys));
expect(await screen.findByText(D.surveyList));

Check failure on line 15 in src/components/App/App.spec.tsx

View workflow job for this annotation

GitHub Actions / build-and-test

src/components/App/App.spec.tsx > Component display > Component is displayed

TestingLibraryElementError: Unable to find an element with the text: List of surveys. 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> <div /> </body> Ignored nodes: comments, script, style <body> <div /> </body> ❯ waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:86:33 ❯ src/components/App/App.spec.tsx:15:25
});

it('Component is not displayed ', async () => {
Expand Down

0 comments on commit 0a6ad57

Please sign in to comment.