Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary awaits #5296

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

michalina-graczyk
Copy link
Member

@michalina-graczyk michalina-graczyk commented Dec 2, 2024

What type of PR is this?

  • 💅 Refactor
  • 🌟 Feature
  • 🔥 Bug Fix
  • 🔩 Maintenance
  • 🛠 Workflow CI/CD changes

Related Issues or Documents

Usage Instructions, Screenshots, Recordings

Have you written tests?

  • Yes!
  • No... here is why: Writing tests are mandatory, please replace this text with why test are not included in this PR

[Optional] Description

Copy link

changeset-bot bot commented Dec 2, 2024

🦋 Changeset detected

Latest commit: 78f482a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@michalina-graczyk michalina-graczyk changed the title Merx 198 improvement Remove unnecessary awaits Dec 2, 2024
@github-actions github-actions bot temporarily deployed to pr-5296 December 2, 2024 11:01 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5296 December 2, 2024 11:29 Destroyed
szczecha
szczecha previously approved these changes Dec 2, 2024
poulch
poulch previously approved these changes Dec 3, 2024
@michalina-graczyk michalina-graczyk dismissed stale reviews from poulch and szczecha via 263699e December 4, 2024 13:50
@github-actions github-actions bot temporarily deployed to pr-5296 December 4, 2024 13:52 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5296 December 4, 2024 14:29 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5296 December 4, 2024 14:46 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5296 December 18, 2024 08:03 Destroyed
const selectedLinkType = await this.menuLinkType.inputValue();

if (selectedLinkType !== linkType) {
throw new Error(`Expected link type "${linkType}" but found "${selectedLinkType}"`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be an assert, not exception raising, this will break the test execution by unhandled error

await this.menuLinkOptions.filter({ hasText: option }).click({ force: true });
await this.waitForDOMToFullyLoad();

// Ensure the link type option is visible and select it
Copy link
Member

@andrzejewsky andrzejewsky Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLM models generate usually tons on comments, explaining what they do - it's useful when composing the final solution, but usually redundant when used in the destined codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants