@@ -3,7 +3,7 @@ import { rest } from "msw"
3
3
import React from "react"
4
4
import * as api from "../../api/api"
5
5
import { Workspace } from "../../api/typesGenerated"
6
- import { Language } from "../../components/WorkspaceStatusBar/WorkspaceStatusBar "
6
+ import { Language } from "../../components/WorkspaceActions/WorkspaceActions "
7
7
import {
8
8
MockBuilds ,
9
9
MockCancelingWorkspace ,
@@ -20,6 +20,7 @@ import {
20
20
renderWithAuth ,
21
21
} from "../../testHelpers/renderHelpers"
22
22
import { server } from "../../testHelpers/server"
23
+ import { DisplayStatusLanguage } from "../../util/workspace"
23
24
import { WorkspacePage } from "./WorkspacePage"
24
25
25
26
// It renders the workspace page and waits for it be loaded
@@ -133,28 +134,28 @@ describe("Workspace Page", () => {
133
134
await testButton ( Language . update , getTemplateMock )
134
135
} )
135
136
it ( "shows the Stopping status when the workspace is stopping" , async ( ) => {
136
- await testStatus ( MockStoppingWorkspace , Language . stopping )
137
+ await testStatus ( MockStoppingWorkspace , DisplayStatusLanguage . stopping )
137
138
} )
138
139
it ( "shows the Stopped status when the workspace is stopped" , async ( ) => {
139
- await testStatus ( MockStoppedWorkspace , Language . stopped )
140
+ await testStatus ( MockStoppedWorkspace , DisplayStatusLanguage . stopped )
140
141
} )
141
142
it ( "shows the Building status when the workspace is starting" , async ( ) => {
142
- await testStatus ( MockStartingWorkspace , Language . starting )
143
+ await testStatus ( MockStartingWorkspace , DisplayStatusLanguage . starting )
143
144
} )
144
145
it ( "shows the Running status when the workspace is started" , async ( ) => {
145
- await testStatus ( MockWorkspace , Language . started )
146
+ await testStatus ( MockWorkspace , DisplayStatusLanguage . started )
146
147
} )
147
- it ( "shows the Error status when the workspace is failed or canceled" , async ( ) => {
148
- await testStatus ( MockFailedWorkspace , Language . error )
148
+ it ( "shows the Failed status when the workspace is failed or canceled" , async ( ) => {
149
+ await testStatus ( MockFailedWorkspace , DisplayStatusLanguage . failed )
149
150
} )
150
- it ( "shows the Loading status when the workspace is canceling" , async ( ) => {
151
- await testStatus ( MockCancelingWorkspace , Language . canceling )
151
+ it ( "shows the Canceling status when the workspace is canceling" , async ( ) => {
152
+ await testStatus ( MockCancelingWorkspace , DisplayStatusLanguage . canceling )
152
153
} )
153
154
it ( "shows the Deleting status when the workspace is deleting" , async ( ) => {
154
- await testStatus ( MockDeletingWorkspace , Language . deleting )
155
+ await testStatus ( MockDeletingWorkspace , DisplayStatusLanguage . deleting )
155
156
} )
156
157
it ( "shows the Deleted status when the workspace is deleted" , async ( ) => {
157
- await testStatus ( MockDeletedWorkspace , Language . deleted )
158
+ await testStatus ( MockDeletedWorkspace , DisplayStatusLanguage . deleted )
158
159
} )
159
160
it ( "shows the timeline build" , async ( ) => {
160
161
await renderWorkspacePage ( )
0 commit comments