Skip to content

Commit

Permalink
Revert "Does not using the deprecated function fix the unit tests in …
Browse files Browse the repository at this point in the history
…CI?"

This reverts commit c373a53.
  • Loading branch information
mjac0bs committed Sep 10, 2024
1 parent c373a53 commit 2e56cb8
Showing 1 changed file with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ import { Security } from './Security';

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

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();
});
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 }
);

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

0 comments on commit 2e56cb8

Please sign in to comment.