From e1c07ceefa70ffbdd0226accb28bb3205100a6d0 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 25 Jan 2024 14:33:20 +0100 Subject: [PATCH] test: Remove debugging statement and change `getBy` query to `findBy` This removes a leftover debugging statement and changes `getBy` query to an awaited async `findBy` as this was causing problems in the test when the checked component wasn't immediately available. --- .../Components/CreateImageWizardV2/CreateImageWizard.test.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx b/src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx index a74e45316..2dfddde8e 100644 --- a/src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx +++ b/src/test/Components/CreateImageWizardV2/CreateImageWizard.test.tsx @@ -891,9 +891,8 @@ describe('Step Upload to AWS', () => { // expect(await getNextButton()).toBeDisabled(); // await user.clear(nameInput); // // Enter image name - screen.logTestingPlaygroundURL(); - const nameInput = screen.getByRole('textbox', { + const nameInput = await screen.findByRole('textbox', { name: /blueprint name/i, }); const invalidName = 'a'.repeat(64);