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

Refactor contexts to context #945

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Jun 20, 2023

Description of changes

Now that we can only store a single browserContext per browser, the contexts API doesn't make sense to return more than one browserContext so instead we've refactored it to return the only browserContext or nil.

Checklist

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I guess the docs needs to be updated, too :)

@ankur22
Copy link
Collaborator Author

ankur22 commented Jun 20, 2023

LGTM 👍 I guess the docs needs to be updated, too :)

Yeah, that's the next task 😅

Copy link
Collaborator

@ka3de ka3de left a comment

Choose a reason for hiding this comment

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

LGTM.

Now that we can only store a single browserContext per browser, the
contexts API doesn't make sense to return more than one browserContext
so instead we've refactored it to return the only browserContext or
nil.
@ankur22 ankur22 force-pushed the refactor/925-refactor-contexts branch from 4bf5d81 to 440aaab Compare June 26, 2023 11:02
@ankur22 ankur22 merged commit c959b57 into main Jun 26, 2023
@ankur22 ankur22 deleted the refactor/925-refactor-contexts branch June 26, 2023 11:55
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.

3 participants