mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
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:
parent
1e5b302a79
commit
60e19bc281
9 changed files with 69 additions and 0 deletions
10
src/tests/frontend/specs/leavePadTest.js
Normal file
10
src/tests/frontend/specs/leavePadTest.js
Normal 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
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue