Skip to content

Commit 3276432

Browse files
authored
Merge branch 'angular:master' into align-attr-as-input-in-dialog-actions-#18479-2
2 parents 815cf8f + 1f40b7d commit 3276432

File tree

291 files changed

+15091
-7927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+15091
-7927
lines changed

.bazelignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
node_modules
22

3+
integration/harness-e2e-cli/.angular
4+
integration/harness-e2e-cli/node_modules
5+
36
integration/ng-update-v13/.angular
47
integration/ng-update-v13/node_modules
58

.github/CODEOWNERS

Lines changed: 129 additions & 129 deletions
Large diffs are not rendered by default.

.github/workflows/dev-infra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: angular/dev-infra/github-actions/commit-message-based-labels@f0f363cb4ce5b5faf14e3d3bb7eeb7c7aee72da7
12+
- uses: angular/dev-infra/github-actions/commit-message-based-labels@8298e121c51960857ef39abc16b743775ff6be68
1313
with:
1414
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

.github/workflows/lock-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
lock_closed:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: angular/dev-infra/github-actions/lock-closed@f0f363cb4ce5b5faf14e3d3bb7eeb7c7aee72da7
12+
- uses: angular/dev-infra/github-actions/lock-closed@8298e121c51960857ef39abc16b743775ff6be68
1313
with:
1414
lock-bot-key: ${{ secrets.LOCK_BOT_PRIVATE_KEY }}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,3 @@ testem.log
5050
*.log
5151
.ng-dev.user*
5252
.husky/_
53-
54-
# Variables that are inlined into the dev app index.html
55-
/src/dev-app/variables.json

.ng-dev/release.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export const release: ReleaseConfig = {
9090
},
9191
},
9292
publishRegistry: 'https://wombat-dressing-room.appspot.com',
93-
npmPackages: releasePackages.map(pkg => `@angular/${pkg}`),
93+
representativeNpmPackage: '@angular/cdk',
94+
npmPackages: releasePackages.map(pkg => ({name: `@angular/${pkg}`})),
9495
buildPackages: async () => {
9596
// The `performNpmReleaseBuild` function is loaded at runtime as loading of the
9697
// script results in an invocation of Bazel for any `yarn ng-dev` command.

CHANGELOG.md

Lines changed: 131 additions & 4 deletions
Large diffs are not rendered by default.

DEV_ENVIRONMENT.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,18 @@ export HUSKY=0
7878
```
7979

8080
### Injecting variables into the dev app
81-
Variables can be injected into the dev app by creating the `src/dev-app/variables.json` file.
82-
They'll be made available under the `window.DEV_APP_VARIABLES` object. The file isn't checked into
83-
Git and it can be used to pass private configuration like API keys. Variables currently being used:
81+
82+
A set of environment variables is made available within the dev-app. Such variables
83+
will be injected into the dev-app, so that e.g. API keys can be used for development
84+
without requiring secrets to be committed.
85+
86+
The following variables are currently used in the dev-app:
8487

8588
* `GOOGLE_MAPS_KEY` - Optional key for the Google Maps API.
89+
90+
For example, you can store a personal development Google Maps API key for the
91+
dev-app within your `.bashrc` or `.zshrc` file.
92+
93+
```bash
94+
export GOOGLE_MAPS_KEY=<api-key>
95+
```

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ http_archive(
1616
# Add sass rules
1717
http_archive(
1818
name = "io_bazel_rules_sass",
19-
sha256 = "435efe759f1c8baffadc320ecc1830454da181fa790aa83bb4326f07e903a0f4",
20-
strip_prefix = "rules_sass-1.41.0",
19+
sha256 = "903858e0fb5eda0b36d37e1ce4cbcfbe03f65a5f153d894dc8a9894a4884e564",
20+
strip_prefix = "rules_sass-1.49.0",
2121
urls = [
22-
"https://github.com/bazelbuild/rules_sass/archive/1.41.0.zip",
22+
"https://github.com/bazelbuild/rules_sass/archive/1.49.0.zip",
2323
],
2424
)
2525

guides/using-component-harnesses.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ The following sections will illustrate these benefits in more detail.
2828
## Which kinds of tests can use harnesses?
2929

3030
The Angular CDK's component harnesses are designed to work in multiple different test environments.
31-
Support currently includes Angular's Testbed environment in Karma unit tests and Protractor
31+
Support currently includes Angular's Testbed environment in Karma unit tests and Selenium WebDriver
3232
end-to-end (e2e) tests. You can also support additional environments by creating custom extensions
3333
of the CDK's `HarnessEnvironment` and `TestElement` classes.
3434

3535
## Getting started
3636

3737
The foundation for all test harnesses lives in `@angular/cdk/testing`. Start by importing either
38-
`TestbedHarnessEnvironment` or `ProtractorHarnessEnvironment` based on whether you're writing a
38+
`TestbedHarnessEnvironment` or `SeleniumWebDriverHarnessEnvironment` based on whether you're writing a
3939
unit test or an e2e test. From the `HarnessEnvironment`, you can get a `HarnessLoader` instance,
4040
which you will use to load Angular Material component harnesses. For example, if we're writing unit
4141
tests for a `UserProfile` component, the code might look like this:
@@ -64,8 +64,8 @@ different paths.
6464
- `@angular/cdk/testing` contains symbols that are shared regardless of the environment your tests
6565
are in.
6666
- `@angular/cdk/testing/testbed` contains symbols that are used only in Karma tests.
67-
- `@angular/cdk/testing/protractor` (not shown above) contains symbols that are used only in
68-
Protractor tests.
67+
- `@angular/cdk/testing/selenium-webdriver` (not shown above) contains symbols that are used only in
68+
Selenium WebDriver tests.
6969
7070
## Loading an Angular Material harness
7171

0 commit comments

Comments
 (0)