mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 11:49:13 -04:00
11 lines
383 B
JavaScript
11 lines
383 B
JavaScript
![]() |
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
|
||
|
});
|
||
|
});
|