Skip to content

Commit

Permalink
new test
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288574 committed Apr 24, 2024
1 parent 5bb6bfb commit be46417
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions webapp/src/components/game/GameConfiguration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,18 @@ describe("Game Configuration", () => {
expect(linkElement).toBeInTheDocument();
});

test("check number of elements",async () => {

render(
<ContextFun>
<Router>
<GameConfiguration />
</Router>
</ContextFun>
);

let tematics = document.getElementsByClassName('configureTopic');
expect(tematics).toHaveLength(2);
});

});

0 comments on commit be46417

Please sign in to comment.