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.
This commit is contained in:
regexowl 2024-01-25 14:33:20 +01:00 committed by Lucas Garfield
parent 6d6e9305d6
commit 269293e181

View file

@ -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);