Skip to content

Commit

Permalink
update tests with form change
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <tygao@amazon.com>
  • Loading branch information
raintygao committed Jul 16, 2024
1 parent 46e0555 commit afa1753
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ describe('WorkspaceForm', () => {
it('should enable data source panel for dashboard admin and when data source is enabled', () => {
const { getByText } = setup(true, mockDataSourceManagementSetup);

expect(getByText('Select Data Sources')).toBeInTheDocument();
expect(getByText('Associate data source')).toBeInTheDocument();
});

it('should not display data source panel for non dashboard admin', () => {
const { queryByText } = setup(false, mockDataSourceManagementSetup);

expect(queryByText('Select Data Sources')).not.toBeInTheDocument();
expect(queryByText('Associate data source')).not.toBeInTheDocument();
});
it('should not display data source panel when data source is disabled', () => {
const { queryByText } = setup(true, undefined);

expect(queryByText('Select Data Sources')).not.toBeInTheDocument();
expect(queryByText('Associate data source')).not.toBeInTheDocument();
});
});

0 comments on commit afa1753

Please sign in to comment.