From 44246b559a696c4e2355df66977698ede12884f2 Mon Sep 17 00:00:00 2001 From: kyle-ssg Date: Tue, 10 Dec 2024 18:09:50 +0000 Subject: [PATCH] re-add tests --- frontend/e2e/init.cafe.js | 91 ++++++++++++-------------- frontend/e2e/tests/environment-test.ts | 3 +- 2 files changed, 45 insertions(+), 49 deletions(-) diff --git a/frontend/e2e/init.cafe.js b/frontend/e2e/init.cafe.js index 1b778ab6c374..7bd618bf6539 100644 --- a/frontend/e2e/init.cafe.js +++ b/frontend/e2e/init.cafe.js @@ -85,50 +85,46 @@ fixture`E2E Tests`.requestHooks(logger).before(async () => { await logResults(logger.requests, t) }) -// test('Segment-part-1', async () => { -// await testSegment1() -// await logout() -// }) -// -// test('Segment-part-2', async () => { -// await testSegment2() -// await logout() -// }) -// -// test('Segment-part-3', async () => { -// await testSegment3() -// await logout() -// }) -// -// test('Flag', async () => { -// await flagTests() -// await logout() -// }) -// -// test('Signup', async () => { -// await initialiseTests() -// await logout() -// }) -// -// test('Invite', async () => { -// await inviteTest() -// }) -// -// test('Environment', async () => { -// await environmentTest() -// await logout() -// }) -// -// test('Project', async () => { -// await projectTest() -// await logout() -// }) -// -// test('Versioning', async () => { -// await versioningTests() -// await logout() -// }) -// +test('Segment-part-1', async () => { + await testSegment1() + await logout() +}) + +test('Segment-part-2', async () => { + await testSegment2() + await logout() +}) + +test('Segment-part-3', async () => { + await testSegment3() + await logout() +}) + +test('Flag', async () => { + await flagTests() + await logout() +}) + +test('Signup', async () => { + await initialiseTests() + await logout() +}) + +test('Invite', async () => { + await inviteTest() +}) + +test('Environment', async () => { + await environmentTest() + await logout() +}) + +test('Project', async () => { + await projectTest() + await logout() +}) + + // test('Organisation-permission', async () => { // await organisationPermissionTest() // await logout() @@ -138,12 +134,11 @@ test('Project-permission', async () => { await projectPermissionTest() await logout() }) -// -// test('Environment-permission', async () => { -// await environmentPermissionTest() + +// test('Environment', async () => { +// await environmentTest() // await logout() // }) - // test('Roles', async () => { // await rolesTest() // await logout() diff --git a/frontend/e2e/tests/environment-test.ts b/frontend/e2e/tests/environment-test.ts index 9bfc863d7e75..7749d32e0971 100644 --- a/frontend/e2e/tests/environment-test.ts +++ b/frontend/e2e/tests/environment-test.ts @@ -1,6 +1,7 @@ import { byId, - click, createEnvironment, + click, + createEnvironment, log, login, setText,