Skip to content

Commit

Permalink
Remove deprecated code and revert test id
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoDaoNoCode committed Oct 30, 2024
1 parent b39517f commit fdd9e33
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion frontend/src/__tests__/cypress/cypress/pages/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class NotebookRow extends TableRow {
}

findNotebookStatusPopover(name: string) {
return cy.findByTestId('workbench-status-popover').contains(name);
return cy.findByTestId('notebook-status-popover').contains(name);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const NotebookStateStatus: React.FC<NotebookStateStatusProps> = ({
return (
<>
<Popover
data-testid="workbench-status-popover"
data-testid="notebook-status-popover"
shouldClose={() => setPopoverVisible(false)}
isVisible={isPopoverVisible}
headerContent="Workbench status"
Expand Down
11 changes: 0 additions & 11 deletions frontend/src/pages/projects/notebook/StartNotebookModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ const StartNotebookModal: React.FC<StartNotebookModalProps> = ({

const spawnFailed = spawnStatus?.status === AlertVariant.danger;

React.useEffect(() => {
if (isRunning) {
setSpawnPercentile(100);
setSpawnStatus({
status: AlertVariant.success,
title: 'Success',
description: 'The notebook server is up and running.',
});
}
}, [isRunning]);

React.useEffect(() => {
if (isStarting && !isRunning) {
if (!notebookStatus) {
Expand Down

0 comments on commit fdd9e33

Please sign in to comment.