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

Upgrade chrome to 1108766 #2259

Merged
merged 7 commits into from
Jul 26, 2023
Merged

Upgrade chrome to 1108766 #2259

merged 7 commits into from
Jul 26, 2023

Conversation

kblok
Copy link
Member

@kblok kblok commented Jul 21, 2023

closes #2258

@kblok kblok changed the title Upgrade chrome to 1115057 Upgrade chrome to 1108766 Jul 21, 2023
Comment on lines 43 to 50
Assert.Contains(
"Navigating frame was detached",
new[]
{
"Navigating frame was detached",
"Error: NS_BINDING_ABORTED",
"net::ERR_ABORTED",
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intentional? The assertion is now always true as both subject and expectation are fixed values.

Copy link
Member Author

Choose a reason for hiding this comment

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

This matches the change upstream 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

No :)
The upstream asserts that error.message contains at least one of the three elements.
This change asserts that either of the three elements is "Navigating frame was detached".

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the best I can come up with xUnit

Assert.Contains(new[] { exception.Message }, message => new[]
{
    "Navigating frame was detached",
    "Error: NS_BINDING_ABORTED",
    "net::ERR_ABORTED"
}.Any(error => message.Contains(error)));

Copy link
Contributor

Choose a reason for hiding this comment

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

With FluentAssertions it can be written as

exception.Message.Should().ContainAny(
    "Navigating frame was detached",
    "Error: NS_BINDING_ABORTED",
    "net::ERR_ABORTED"
);

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops you're so right 😅
The test passes right? 😅

@kblok kblok merged commit 7275e9a into master Jul 26, 2023
4 checks passed
@kblok kblok deleted the update-chrome-to-1115057 branch July 26, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BrowserFetcher.DefaultChromiumRevision Exhibits Hang Bug When Page Has Odd Number column-count
2 participants