Skip to content

Remove unnecessary awaits #5296

Closed
michalina-graczyk wants to merge 9 commits intomainfrom
MERX-198-improvment
Closed

Remove unnecessary awaits #5296
michalina-graczyk wants to merge 9 commits intomainfrom
MERX-198-improvment

Conversation

@michalina-graczyk
Copy link

@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

@michalina-graczyk michalina-graczyk requested a review from a team December 2, 2024 10:53
@michalina-graczyk michalina-graczyk requested a review from a team as a code owner December 2, 2024 10:53
@changeset-bot
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
@michalina-graczyk michalina-graczyk added the run pw-e2e Run e2e (basic suite from PR automation) label 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
Contributor

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
Contributor

@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.

@github-actions
Copy link
Contributor

This pull request is stale because it has been open 14 days with no activity.

@github-actions github-actions bot added the stale label Jan 11, 2025
@github-actions
Copy link
Contributor

This PR request has been closed because it has been stalled for 2 days with no activity. You are still welcome to reopen it and continue from where you finished. Best regards Saleor team

@github-actions github-actions bot closed this Jan 13, 2025
@aniav aniav deleted the MERX-198-improvment branch April 17, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run pw-e2e Run e2e (basic suite from PR automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants