Skip to content

Commit

Permalink
Does not using the deprecated function fix the unit tests in CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
mjac0bs committed Sep 10, 2024
1 parent e8a6afa commit c373a53
Showing 1 changed file with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,17 @@ import { Security } from './Security';

import type { LinodeCreateFormValues } from './utilities';

describe('Security', () => {
it(
'should render a root password input',
async () => {
const { findByLabelText } = renderWithThemeAndHookFormContext({
component: <Security />,
});

const rootPasswordInput = await findByLabelText('Root Password');

expect(rootPasswordInput).toBeVisible();
expect(rootPasswordInput).toBeEnabled();
},
{ timeout: 5_000 }
);
describe('Security', { timeout: 5_000 }, () => {
it('should render a root password input', async () => {
const { findByLabelText } = renderWithThemeAndHookFormContext({
component: <Security />,
});

const rootPasswordInput = await findByLabelText('Root Password');

expect(rootPasswordInput).toBeVisible();
expect(rootPasswordInput).toBeEnabled();
});

it('should render a SSH Keys heading', async () => {
const { getAllByText } = renderWithThemeAndHookFormContext({
Expand Down

0 comments on commit c373a53

Please sign in to comment.