From 9e11c3667e027f805fca37b5dffe9d8a52303a14 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Mon, 26 Feb 2024 12:10:32 +0000 Subject: testing: E2E tests for public and restricted events --- cypress/e2e/publicGroup.cy.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cypress/e2e/publicGroup.cy.ts (limited to 'cypress/e2e/publicGroup.cy.ts') diff --git a/cypress/e2e/publicGroup.cy.ts b/cypress/e2e/publicGroup.cy.ts new file mode 100644 index 0000000..4536195 --- /dev/null +++ b/cypress/e2e/publicGroup.cy.ts @@ -0,0 +1,28 @@ +import groupData from "../fixtures/groupData.json"; + +describe("Groups", () => { + beforeEach(() => { + cy.setCookie( + "cypressConfigOverride", + JSON.stringify({ + general: { + show_public_event_list: true, + }, + }), + ); + cy.createGroup(groupData, true); + }); + it("should be visible in the public group list", function () { + cy.setCookie( + "cypressConfigOverride", + JSON.stringify({ + general: { + show_public_event_list: true, + }, + }), + ); + cy.visit("/"); + cy.get("#groupsTab").click(); + cy.get("#eventGroups").should("contain", groupData.eventGroupName); + }); +}); -- cgit v1.2.3