-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add predefined network profiles #1098
Conversation
b9d470b
to
9849922
Compare
0d0a684
to
d78d1b3
Compare
9849922
to
06ba5e0
Compare
d78d1b3
to
95553a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after renaming the file as @ka3de suggests. Thanks!
06ba5e0
to
63afdee
Compare
95553a7
to
1ce6756
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
c618da5
to
27cd1ab
Compare
The base branch was changed.
9118e77
to
0f67e4a
Compare
This type now feels like it should live closer to where the predefined network profiles have been defined.
These are common network profiles which are used in various chromium based browsers. It feels like it's a safe bet that these will be the most widely used network profiles. We intend to add more once we have a clearer idea of what.
Instead of defining a custom network profile, use the predefined one (slow 3g). This serves as a good example as to how to work with predefined network profiles.
This will be useful when a user may want to disable the network throttling half way through a test.
This was copied from https://stackoverflow.com/questions/48367042/in-chrome-dev-tools-what-is-the-speed-of-each-preset-option-for-network-throttl which outlined what the numbers mean when calculating the download and upload throughputs. We can use this to helps us create our own profiles when we need.
0f67e4a
to
884e4b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
What?
Adding predefined network profiles
No Throttling
,Slow 3G
andFast 3G
.Why?
These are the most commonly used during frontend testing when throttling network connections.
These could have been defined in the type definitions repo. To make it simpler for our users to work with these network profiles, it's defined in the browser module repo which will make it available for browser module users.
Checklist
Related PR(s)/Issue(s)
Updates #887