Skip to content

Commit

Permalink
some small test-related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabalafou committed Mar 5, 2024
1 parent 7656473 commit 5ea6d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export const EnvironmentDetailsHeader = ({
inputProps={{
style: {
color: palette.common.black
},
"data-testid": "environment-name-input"
}
}}
size="small"
onChange={e => onUpdateName(e.target.value)}
Expand Down
2 changes: 1 addition & 1 deletion test/environmentDetails/EnvironmentDetailsHeader.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe("<EnvironmentDetailsHeader />", () => {
const newEnvName = "My new environment name";
fireEvent.change(input, { target: { value: newEnvName } });
expect(mockOnUpdateName).toHaveBeenCalledWith(newEnvName);
expect(component.getByText("Namespace")).not.toBeInTheDocument();
expect(component.queryByText("Namespace")).not.toBeInTheDocument();
});

it("should render component in create mode with namespace", () => {
Expand Down

0 comments on commit 5ea6d1f

Please sign in to comment.