Skip to content

Commit f98ced7

Browse files
test: update code catalyst e2e test
This updates the existing code catalyst e2e test inital implementation. It adds new test cases for: - start/stop dev env - creating, listing, deleting dev envs - listing all spaces Additionally, this refactors so the test cases appear first, then the helper functions. Signed-off-by: Nikolas Komonen <[email protected]>
1 parent 9593551 commit f98ced7

File tree

2 files changed

+314
-86
lines changed

2 files changed

+314
-86
lines changed

src/codecatalyst/vue/create/backend.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ export class CodeCatalystCreateWebview extends VueWebview {
133133
}
134134

135135
public async submit(settings: DevEnvironmentSettings, source: SourceResponse) {
136+
const devenv = await this.createDevEnvOfType(settings, source)
137+
this.commands.openDevEnv.execute(devenv)
138+
}
139+
140+
public async createDevEnvOfType(settings: DevEnvironmentSettings, source: SourceResponse) {
136141
const devenv: DevEnvironment = await (() => {
137142
switch (source.type) {
138143
case 'none':
@@ -146,7 +151,7 @@ export class CodeCatalystCreateWebview extends VueWebview {
146151
telemetry.codecatalyst_createDevEnvironment.record({ codecatalyst_createDevEnvironmentRepoType: source.type })
147152

148153
this.onComplete(devenv)
149-
this.commands.openDevEnv.execute(devenv)
154+
return devenv
150155
}
151156

152157
private async createEmptyDevEnv(settings: DevEnvironmentSettings, source: EmptyResponse) {

0 commit comments

Comments
 (0)