Skip to content

Commit d1e248c

Browse files
jennifer-shehaneflotwig
authored andcommitted
Rename whitelist/blacklist usage (#2908)
1 parent 8f2541b commit d1e248c

File tree

26 files changed

+43
-1171
lines changed

26 files changed

+43
-1171
lines changed

.textlintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
["craziest", "most complex"],
8787
["dumb", "unintended"],
8888
["insane", "outrageous"],
89+
["blacklist", "blocklist"],
90+
["whitelist", "allow"],
8991

9092
// Prefer American spelling
9193
["behaviour", "behavior"],

source/_changelogs/0.12.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
- Any issues related to `requestJSON` or `responseJSON` being duplicated are now fixed. Fixes {% issue 65 '#65' %}.
4141
- Fully Qualified XHR's which should be proxied are now correctly transparently rewritten to prevent CORS problems.
4242
- {% url `cy.route()` route %} - `onRequest` and `onResponse` callbacks are now called with `cy` as the context.
43-
- Whitelisting assets which should never be stubbed has been improved. Now `.jsx` templates pass-through correctly.
43+
- Filtering assets which should never be stubbed has been improved. Now `.jsx` templates pass-through correctly.
4444
- CORS Network Errors are now correctly caught.
4545

4646
**Misc:**

source/_changelogs/0.12.7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
**Bugfixes:**
66

77
- Prevent passing `{multiple: true}` incorrectly showing up in Command Log. Fixes {% issue 88 '#88' %}.
8-
- Properly whitelist resource like XHR's which have query params such as jquery's `{cache: false}` option.
8+
- Properly allow resource like XHR's which have query params such as jquery's `{cache: false}` option.
99
- Correctly take into account `<base>` tag on XHR's. Fixes {% issue 89 '#89' %}.
1010

source/_changelogs/0.12.8.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313

1414
- Rewrote error message which is displayed when Cypress cannot parse your test / spec file. Now a list of suggestions are given and an external link is provided which further explains how this may happen.
1515
- Clarified the "Default Message" page when you have not {% url `cy.visit()` visit %} your application yet.
16-
- Whitelisted `.coffee`, `.scss`, `.less` XHR's from displaying in the Command Log.
17-
16+
- Ignored `.coffee`, `.scss`, `.less` XHR's from displaying in the Command Log.

source/_changelogs/0.17.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
**Features:**
1616

17-
- *All CORS related issues should finally be fixed now.* Cypress now internally switches to the domain that you used in your {% url `cy.visit()` visit %}. This means that the correct domain will display in the URL based on the application currently under test. Your application's code will run under the current domain at all times. Previously we implemented an endless amount of hacks and internal translations to figure out the domain you were *supposed* to be on without actually being on the domain. This caused code to behave different and caused subtle issues. Those issues should now be resolved. The entire proxy layer has been rewritten to handle all HTTPS certificates flawlessly, continue to inject (even on HTTPS pages), and still know when to automatically bypass injection so you can open other tabs while testing in Cypress. These new proxy changes also unlock the ability to do things like whitelisting or blacklisting specific 3rd party domains, or even be able to stub not just XHR's but any kind of HTTP request.
17+
- *All CORS related issues should finally be fixed now.* Cypress now internally switches to the domain that you used in your {% url `cy.visit()` visit %}. This means that the correct domain will display in the URL based on the application currently under test. Your application's code will run under the current domain at all times. Previously we implemented an endless amount of hacks and internal translations to figure out the domain you were *supposed* to be on without actually being on the domain. This caused code to behave different and caused subtle issues. Those issues should now be resolved. The entire proxy layer has been rewritten to handle all HTTPS certificates flawlessly, continue to inject (even on HTTPS pages), and still know when to automatically bypass injection so you can open other tabs while testing in Cypress. These new proxy changes also unlock the ability to do things like allowing or blocking specific 3rd party domains, or even be able to stub not just XHR's but any kind of HTTP request.
1818
- `window.fetch` now works correctly. Stubbing these does not yet work but it is now possible for us to implement stubbing in a future version. Addresses {% issue 95 '#95' %}.
1919
- The list of tests now automatically refresh when test files are renamed, deleted, or added. In addition, because the list of tests is now displayed in the desktop application, we now synchronize the state of the current running spec.
2020
- {% url `cy.visit()` visit %} has better error messages. Cypress now programmatically determines why a {% url `cy.visit()` visit %} failed and gives you a ridiculously accurate error message. Addresses {% issue 138 '#138' %}.

source/_changelogs/0.19.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- There is a new {% url 'Dashboard' https://on.cypress.io/dashboard %} service that displays your recorded runs.
2525
- The {% url 'Dashboard' https://on.cypress.io/dashboard %} enables you to view your recorded runs, manage projects, create organizations, invite users and set permissions.
2626
- Projects are either **public** with their runs being publicly viewable by anyone, or **private** which restricts their access to only users you've invited. All **existing** projects were set to **private** by default.
27-
- When you invite users (from the Dashboard) we will **automatically** whitelist them. This means you can invite all of your teammates (or anyone else). They can start using Cypress without talking to us.
27+
- When you invite users (from the Dashboard) we will **automatically** allow them. This means you can invite all of your teammates (or anyone else). They can start using Cypress without talking to us.
2828
- We now list all of the recorded runs directly in the Test Runner under a new `Runs` tab. Fixes {% issue 236 '#236' %}.
2929
- Your list of projects in the Test Runner now displays their last recorded run status - passing, failing, pending, running, etc.
3030
- We've changed the "Config" tab to now be called "Settings". We added two new sections to the "Settings" tab which displays your `projectId` and your Record Key. These sections do a much better job explaining what these are and how you use them.

source/_changelogs/0.5.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- {% url `.as()` as %} can now alias primitives and objects other than routes or DOM.
88
- {% url `.as()` as %} automatically assigns this alias to `runnable.ctx` which makes it available synchronously.
9-
- {% url `.as()` as %} blacklists several reserved words and will throw if you attempt to alias as one of them.
9+
- {% url `.as()` as %} does not allow several reserved words and will throw if you attempt to alias as one of them.
1010
- {% url `cy.get()` get %} can now accept all alias types and will display the labels in the UI differently based on the alias type.
1111
- Cypress now displays a message when the Desktop App update is actually being applied instead of doing nothing and looking like it's crashed.
1212

source/_changelogs/2.0.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
**Bugfixes:**
1313

14-
- {% url "`blacklistHosts`" configuration#Browser %} would occasionally not work if you were blacklisting a host that had previously cached a file. In this case, the browser would serve it from disk and not make an actual HTTP request. This issue has been solved by clearing the cache when the browser opens. Fixes {% issue 1154 %}.
14+
- {% url "`blacklistHosts`" configuration#Browser %} would occasionally not work if you were blocking a host that had previously cached a file. In this case, the browser would serve it from disk and not make an actual HTTP request. This issue has been solved by clearing the cache when the browser opens. Fixes {% issue 1154 %}.
1515
- {% url "`blacklistHosts`" configuration#Browser %} is now correctly accepted via the `--config` CLI flag.
1616
- Spies and Stubs created with {% url "`cy.stub()`" stub %} and {% url "`cy.spy()`" spy %} will now retry their assertions when utilized from an {% url "alias" as %}. Fixes {% issue 1156 %}.
1717
- Basic auth is working again in Chrome 63 and Chrome 64. We "for real" fixed it this time by adding auth headers automatically at the network proxy layer and bypassed the browser altogether. We automatically apply auth headers if you provide a username/password in the URL of a `cy.visit(url)`. We also added a new `auth` option to specify the `username/password` using `cy.visit(url, options)`. All of the requests that match the origin of the URL will have the `Authorization: Basic <...>` headers added. Fixes {% issue 1288 %}.

source/_changelogs/3.1.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- The Test Runner's search now resets when switching between projects. Fixes {% issue 2512 %}.
3434
- Fixed internal Cypress tests. Fixes {% issue 2606 %}.
3535
- Replaced use of `new Buffer` with `Buffer.from`. Fixes {% issue 2626 %}.
36-
- Whitelisted `autoScrollingEnabled` to be saved in `state.json`. Fixes {% issue 2476 %}.
36+
- Allowed `autoScrollingEnabled` to be saved in `state.json`. Fixes {% issue 2476 %}.
3737
- Fixed internal test error `beforeSpecRun is not a function`. Fixes {% issue 2401 %}.
3838
- Switched our internal tests to use CircleCI workspaces. Fixes {% issue 2398 %}.
3939
- Update TypeScript definition for {% url "`cy.screenshot()`" screenshot %} to include screenshot specific options. Fixes {% issue 2654 %}.

source/_changelogs/3.2.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- {% url "`cy.request()`" request %} now allows any valid HTTP `method` to be used including `TRACE`, `COPY`, `LOCK`, `MKCOL`, `MOVE`, `PURGE`, `PROPFIND`, `PROPPATCH`, `UNLOCK`, `REPORT`, `MKACTIVITY`, `CHECKOUT`, `MERGE`, `M-SEARCH`, `NOTIFY`, `SUBSCRIBE`, `UNSUBSCRIBE`, `SEARCH`, and `CONNECT`. Addresses {% issue 1302 %}
99
- The {% url "`--browser` argument" command-line#cypress-run-browser-lt-browser-name-or-path-gt %} of the {% url "Command Line" command-line %} and the {% url "`browser` argument" module-api#cypress-run %} of the {% url "Module API" module-api %} have been updated to allow passing a `<path>`. Addresses {% issue 1026 %}.
1010
- {% url "`cy.type()`" type %} now accepts `{home}` and `{end}` special character sequences to move the cursor to the start or end of a line. Addresses {% issue 2033 %}.
11-
- The Cypress Chrome extension now has a static ID of `caljajdfkjjjdehjdoimjkkakekklcck`. This allows Cypress to be added to extension whitelists for those working under corporate policies that prohibit extensions. Addresses {% issue 3673 %}, {% issue 1239 %} and {% issue 2494 %}.
11+
- The Cypress Chrome extension now has a static ID of `caljajdfkjjjdehjdoimjkkakekklcck`. This allows Cypress to be added to your allowed extensions for those working under corporate policies that prohibit extensions. Addresses {% issue 3673 %}, {% issue 1239 %} and {% issue 2494 %}.
1212

1313
**Bugfixes:**
1414

@@ -46,7 +46,7 @@
4646
- Updated {% url "docs" launching-browsers %} on explain how to run Chrome and Chromium browsers {% url "#1339" https://github.com/cypress-io/cypress-documentation/issues/1339 %}
4747
- Added `{home}` and `{end}` character sequences to {% url "cy.type()" type } doc. Also wrote better description of what `{downarrow}` and `{uparrow}` character sequences actually do. {% url "#1347" https://github.com/cypress-io/cypress-documentation/pull/1347 %}
4848
- Added all newly supported HTTP methods to {% url "`cy.request()`" request %} doc.
49-
- Add new section to {% url "Debugging" debugging#Chrome-extension-whitelisting %} doc explaining whitelisting the Cypress Chrome extension.
49+
- Add new section to {% url "Troubleshooting" troubleshooting#Allow-the-Cypress-Chrome-extension %} doc explaining how to allow the Cypress Chrome extension.
5050
- Fixed code example for google analytics stubbing {% url "#1454" https://github.com/cypress-io/cypress-documentation/issues/1454 %}
5151

5252
**Dependency Updates**

0 commit comments

Comments
 (0)