Skip to content

Commit

Permalink
fixup! fixup! fixup! feat: implement an ability to start workspaces i…
Browse files Browse the repository at this point in the history
…n Safe Mode
  • Loading branch information
olexii4 committed Aug 15, 2023
1 parent e7ba47d commit 9b3d857
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ describe('Common steps, check running workspaces limit', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class CommonStepCheckRunningWorkspacesLimit extends ProgressStep<Props, State> {
callback: () => this.handleRestart(key),
},
{
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: () => this.handleRestart(key, LoaderTab.Logs),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('Starting steps, initializing', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -301,7 +301,7 @@ describe('Starting steps, initializing', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -402,7 +402,7 @@ describe('Starting steps, initializing', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class StartingStepInitialize extends ProgressStep<Props, State> {
callback: () => this.handleRestart(key, LoaderTab.Progress),
},
{
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: () => this.handleRestart(key, LoaderTab.Logs),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Starting steps, opening an editor', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -183,7 +183,7 @@ describe('Starting steps, opening an editor', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -368,7 +368,7 @@ describe('Starting steps, opening an editor', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class StartingStepOpenWorkspace extends ProgressStep<Props, State> {
callback: () => this.handleRestartInSafeMode(key, LoaderTab.Progress),
},
{
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: () => this.handleRestartInDebugMode(key, LoaderTab.Logs),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -251,7 +251,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -414,7 +414,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -478,7 +478,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -542,7 +542,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -604,7 +604,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -649,7 +649,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -691,7 +691,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -733,7 +733,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down Expand Up @@ -784,7 +784,7 @@ describe('Starting steps, starting a workspace', () => {
callback: expect.any(Function),
}),
expect.objectContaining({
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: expect.any(Function),
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class StartingStepStartWorkspace extends ProgressStep<Props, State> {
callback: () => this.handleRestartInSafeMode(key, LoaderTab.Progress),
},
{
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: () => this.handleRestartInDebugMode(key, LoaderTab.Logs),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class StartingStepWorkspaceConditions extends ProgressStep<Props,
callback: () => this.handleRestart(key, LoaderTab.Progress),
},
{
title: 'Open in Debug mode',
title: 'Restart in Debug mode',
callback: () => this.handleRestart(key, LoaderTab.Logs),
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ describe('Workspaces List Page', () => {
expect(actionButtons[0]).toBeDisabled();
});

it('should handle "Open in Debug mode" action', () => {
it('should handle "Restart in Debug mode" action', () => {
renderComponent();

const actionButtons = screen.getAllByRole('button', { name: /actions/i });
Expand Down

0 comments on commit 9b3d857

Please sign in to comment.