Skip to content

Commit

Permalink
feat(import): resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinandan13jan committed Dec 3, 2024
1 parent 649fe78 commit 62aef03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/ImportForm/ComponentSection/GitOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ const GitOptions: React.FC<React.PropsWithChildren<GitOptionProps>> = ({
name="source.git.revision"
label="Git reference"
helperText="Optional branch, tag or commit."
data-testid="git-reference"
data-test="git-reference"
/>

<InputField
name="source.git.context"
label="Context directory"
helperText="Optional subdirectory for the application source code."
data-testid="context-dir"
data-test="context-dir"
labelIcon={
<HelpPopover bodyContent="Make sure this path is correct. You might get an error if your build context folder is your root directory but your Dockerfile is in a subdirectory of that folder." />
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ describe('ComponentSection', () => {

await user.type(source, 'https://gitlab.com/abcd/repo.git');
await user.tab();
await waitFor(() => {
await waitFor(() =>
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const inputElement = screen.getByTestId('url-annotation') as HTMLInputElement;
expect(inputElement.value).toBe('gitlab.com');
});
expect((screen.getByTestId('url-annotation') as HTMLInputElement).value).toBe('gitlab.com'),
);
});
});

0 comments on commit 62aef03

Please sign in to comment.