Skip to content

Commit

Permalink
adding a loading expectation in the GuitarGallery test
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorKGOW committed Nov 23, 2022
1 parent 755e4f5 commit 4bc740a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/components/tests/GuitarGallery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test("show loader when it's fetching data, then render Guitars", async () => {
const { unmount, getByText /*, getByLabelText*/ } = render(<GuitarGallery />);

//show loader
expect(screen.getByText('Loading...')).toBeInTheDocument();
// const svgTag = getByLabelText('spinner');
// expect(svgTag).toBeInTheDocument();
// expect(svgTag).toHaveTextContent('Loading...');
Expand Down

0 comments on commit 4bc740a

Please sign in to comment.