Skip to content

Commit

Permalink
chore: fix up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubrock committed Jan 24, 2024
1 parent 758f367 commit c431e7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/K6CheckCodeEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('new scripted check', () => {

const jobNameInput = await findByLabelText('Job name', { exact: false });
await user.type(jobNameInput, 'Job name');
const targetInput = await findByLabelText('Target');
const targetInput = await findByLabelText('Instance', { exact: false });
await user.type(targetInput, 'https://www.grafana.com');

// Set probe options
Expand Down Expand Up @@ -80,7 +80,7 @@ describe('edit scripted check', () => {

const jobNameInput = await findByLabelText('Job name', { exact: false });
expect(jobNameInput).toHaveValue('Job name');
const targetInput = await findByLabelText('Target');
const targetInput = await findByLabelText('Instance', { exact: false });
expect(targetInput).toHaveValue('https://www.grafana.com');

// probes
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('edit scripted check', () => {
const jobNameInput = await findByLabelText('Job name', { exact: false });
await user.clear(jobNameInput);
await user.type(jobNameInput, 'different job name');
const targetInput = await findByLabelText('Target');
const targetInput = await findByLabelText('Instance', { exact: false });
await user.clear(targetInput);
await user.type(targetInput, 'https://www.example.com');

Expand Down
2 changes: 1 addition & 1 deletion src/components/K6CheckCodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function K6CheckCodeEditor({ checks, onSubmitSuccess }: Props) {
</Field>
<Field
label={
<Label>
<Label htmlFor="target">
Instance&nbsp;
<Tooltip
content={
Expand Down

0 comments on commit c431e7b

Please sign in to comment.