mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
10 lines
383 B
JavaScript
10 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
|
|
});
|
|
});
|