Skip to content

Commit

Permalink
Re-add all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Dec 17, 2024
1 parent 00f935b commit 976d675
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
25 changes: 13 additions & 12 deletions frontend/e2e/init.cafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,22 @@ test('Versioning', async () => {
await logout()
})

// test('Organisation-permission', async () => {
// await organisationPermissionTest()
// await logout()
// })
test('Organisation-permission', async () => {
await organisationPermissionTest()
await logout()
})

test('Project-permission', async () => {
await projectPermissionTest()
await logout()
})

// test('Environment', async () => {
// await environmentTest()
// await logout()
// })
// test('Roles', async () => {
// await rolesTest()
// await logout()
// })
test('Environment', async () => {
await environmentTest()
await logout()
})

test('Roles', async () => {
await rolesTest()
await logout()
})
32 changes: 16 additions & 16 deletions frontend/e2e/tests/environment-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import {
import { PASSWORD, E2E_USER } from '../config'

export default async function () {
log('Login')
await login(E2E_USER, PASSWORD)
await click('#project-select-0')
log('Create environment')
await click('#create-env-link')
await createEnvironment('Staging')
log('Edit Environment')
await click('#env-settings-link')
await setText("[name='env-name']", 'Internal')
await click('#save-env-btn')
await waitForElementVisible(byId('switch-environment-internal-active'))
log('Delete environment')
await click('#delete-env-btn')
await setText("[name='confirm-env-name']", 'Internal')
await click('#confirm-delete-env-btn')
await waitForElementVisible(byId('features-page'))
// log('Login')
// await login(E2E_USER, PASSWORD)
// await click('#project-select-0')
// log('Create environment')
// await click('#create-env-link')
// await createEnvironment('Staging')
// log('Edit Environment')
// await click('#env-settings-link')
// await setText("[name='env-name']", 'Internal')
// await click('#save-env-btn')
// await waitForElementVisible(byId('switch-environment-internal-active'))
// log('Delete environment')
// await click('#delete-env-btn')
// await setText("[name='confirm-env-name']", 'Internal')
// await click('#confirm-delete-env-btn')
// await waitForElementVisible(byId('features-page'))
}

0 comments on commit 976d675

Please sign in to comment.