Skip to content

Commit

Permalink
fix affected tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtonG committed Jul 25, 2024
1 parent b5fefff commit 10fe08a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion webui/react/src/components/ExperimentStopModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ vi.mock('services/api', () => ({
const mockUseFeature = vi.hoisted(() => vi.fn(() => false));
vi.mock('hooks/useFeature', () => {
return {
isOn: mockUseFeature(),
default: () => ({
isOn: mockUseFeature,
}),
};
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('useModalHyperparameterSearch', () => {
const { view } = await setup();

await user.click(view.getByRole('button', { name: 'Select Hyperparameters' }));
await user.click(view.getByRole('button', { name: 'Run Experiment' }));
await user.click(view.getByRole('button', { name: 'Run Search' }));

expect(mockCreateExperiment).toHaveBeenCalled();
});
Expand Down
2 changes: 1 addition & 1 deletion webui/react/src/pages/Dashboard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('Dashboard', () => {
expect(screen.getByText('Your Recent Submissions')).toBeInTheDocument();
expect(screen.getByText('No submissions')).toBeInTheDocument();
expect(
screen.getByText('Your recent experiments and tasks will show up here.'),
screen.getByText('Your recent searches and tasks will show up here.'),
).toBeInTheDocument();
expect(screen.getByText('Get started')).toBeInTheDocument();
expect(screen.queryByText('Recently Viewed Projects')).not.toBeInTheDocument();
Expand Down

0 comments on commit 10fe08a

Please sign in to comment.