created the home button to go back to the main page when done with current pad, also tried to make a test

This commit is contained in:
harshil05133 2025-02-17 04:27:09 -05:00
parent 1e5b302a79
commit 60e19bc281
9 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,10 @@
describe("Leave Pad Functionality", function () {
beforeEach(async function () {
await helper.newPad(); // Open a new pad before each test
});
it("should leave the pad and go back to the homepage", async function () {
await helper.leavePad(); // Clicks the exit button
expect(window.location.pathname).toBe("/"); // Confirms we are on the homepage
});
});