Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Dec 18, 2024
1 parent 11671b4 commit 3da7d53
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/components/Form/ChainConfigurationForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ describe('ChainConfigurationForm', () => {
solanaKeys: {
results: [],
},
starknetKeys: {
results: [],
},
})

const chainType = getByRole('button', { name: 'EVM' })
Expand Down Expand Up @@ -350,6 +353,9 @@ test('should be able to select OCR2 Job Type with Key Bundle ID', async () => {
solanaKeys: {
results: [],
},
starknetKeys: {
results: [],
},
},
)

Expand Down Expand Up @@ -418,6 +424,9 @@ function renderChainConfigurationForm(
solanaKeys: {
results: [{ id: 'solana_xxxx' }],
},
starknetKeys: {
results: [{ id: 'starknet_xxxx' }],
},
},
) {
return render(
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Chains/ChainsView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { buildChains } from 'support/factories/gql/fetchChains'
import { ChainsView, Props as ChainsViewProps } from './ChainsView'
import userEvent from '@testing-library/user-event'

const { getAllByRole, getByRole, queryByText } = screen
const { getAllByRole, getByRole, queryByText, queryAllByText } = screen

function renderComponent(viewProps: ChainsViewProps) {
renderWithRouter(<ChainsView {...viewProps} />)
Expand All @@ -29,7 +29,7 @@ describe('ChainsView', () => {
expect(queryByText('Chain ID')).toBeInTheDocument()
expect(queryByText('Enabled')).toBeInTheDocument()

expect(queryAllByText('EVM')).toBeInTheDocument()
expect(queryAllByText('EVM')).toHaveLength(2)
expect(queryByText('5')).toBeInTheDocument()
expect(queryByText('42')).toBeInTheDocument()

Expand Down
1 change: 1 addition & 0 deletions src/screens/Job/generateJobDefinition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ observationSource = """
pluginConfig: {
juelsPerFeeCoinSource: '1000000000',
},
onchainSigningStrategy: {},
transmitterID: '0x01010CaB43e77116c95745D219af1069fE050d7A',
feedID: 'feed-id',
},
Expand Down

0 comments on commit 3da7d53

Please sign in to comment.