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

chore: move permissions API into features/ #33

Merged
merged 1 commit into from
Nov 20, 2019
Merged

chore: move permissions API into features/ #33

merged 1 commit into from
Nov 20, 2019

Conversation

pavelfeldman
Copy link
Member

No description provided.

An array of all pages inside the browser context.

#### browserContext.permissions
- returns: <[Permissions]>
Copy link
Member

Choose a reason for hiding this comment

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

Should this and other feature accessors be returns: <?[Permissions]> ?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point, I'll apply it to everything in a separate patch.

#### browserContext.permissions
- returns: <[Permissions]>

#### browserContext.targets()
Copy link
Member

Choose a reason for hiding this comment

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

I thought you were going to drop targets from the API, is there a reason we must keep them? For testing/automation use cases where the browser is fully controlled by a program we shouldn't need this as the program should already be aware of all targets.

Oh, on the second look it seems that this place didn't actually change and it's just a misleading diff representation, so we can discuss this separately.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup. Will remove later...

@@ -131,7 +131,9 @@ module.exports.addTests = ({testRunner, product, playwrightPath}) => {

// Page-level tests that are given a browser, a context and a page.
// Each test is launched in a new browser context.
require('../src/chromium/features/accessibility.spec.js').addTests(testOptions);
Copy link
Member

Choose a reason for hiding this comment

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

Commit description should mention Accessibility changes as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure

@pavelfeldman pavelfeldman merged commit 76eb289 into microsoft:master Nov 20, 2019
@pavelfeldman pavelfeldman deleted the permissions branch November 20, 2019 17:40
sand4rt pushed a commit to sand4rt/playwright that referenced this pull request Dec 21, 2022
@Dolov Dolov mentioned this pull request Oct 24, 2023
1 task
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 4, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
sand4rt added a commit to sand4rt/playwright that referenced this pull request Nov 5, 2023
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.

2 participants