Skip to content

Commit

Permalink
test: Remove debugging statement and change getBy query to findBy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
regexowl authored and lucasgarfield committed Jan 25, 2024
1 parent 6d6e930 commit e1c07ce
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e1c07ce

Please sign in to comment.