);
}
diff --git a/tnoodle-ui/src/test/SideBar.test.js b/tnoodle-ui/src/test/SideBar.test.js
index 92b3433d6..611c9ce77 100644
--- a/tnoodle-ui/src/test/SideBar.test.js
+++ b/tnoodle-ui/src/test/SideBar.test.js
@@ -49,15 +49,20 @@ it("Each competition fetched from the website must become a button", async () =>
const buttons = Array.from(container.querySelectorAll("button"));
- // First button should be manual selection
- expect(buttons[0].innerHTML).toBe("Manual Selection");
+ // First button should be the collapse button
+ expect(buttons[0].innerHTML).toBe(
+ ``
+ );
+
+ // Second button should be manual selection
+ expect(buttons[1].innerHTML).toBe("Manual Selection");
// Last button should be Log Out
expect(buttons[buttons.length - 1].innerHTML).toBe("Log Out");
// Each competition must have a button
for (let i = 0; i < competitions.length; i++) {
- expect(competitions[i].name).toBe(buttons[i + 1].innerHTML);
+ expect(competitions[i].name).toBe(buttons[i + 2].innerHTML);
}
// We should welcome the user