Skip to content

Commit 7fd7a6a

Browse files
committed
Merge branch '10.0-release' into tgriesser/feat/UNIFY-1267
* 10.0-release: fix: add index.mjs to the published files of cli (#20884) refactor: lift indexHtmlFile up to component, add validation (#20870) fix: allow migration of pluginsFile using `env` properties (#20770) fix: viewport from CLI on CT (#20849) fix: git data source unit test failure (#20875) fix: Ensuring current browser is synchronized between app and launchpad (#20830) Fix missed await on merge conflict resolution test(unification): move record keys to contexts (#20860) test: move record keys to contexts (#20859) make alerts more responsive chore: Update Chrome (stable) to 100.0.4896.60 (#20841) Revise test. fix: cy.root respect timeout option. fix(deps): update dependency ansi-regex to v4.1.1 [security] (#20836) chore(deps): update dependency ansi-regex to 4.1.1 [security] (#20807) chore: Refactor cri-client to use async/await (#20825) remove automationId from runnerStore fix firefox automation and adress feedback feat: add automation warning/disconnected states in app
2 parents 5377d71 + 7bdf4d4 commit 7fd7a6a

File tree

130 files changed

+2127
-2634
lines changed

Some content is hidden

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

130 files changed

+2127
-2634
lines changed

browser-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"chrome:beta": "100.0.4896.60",
3-
"chrome:stable": "99.0.4844.84"
3+
"chrome:stable": "100.0.4896.60"
44
}

circle.yml

Lines changed: 41 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ mainBuildFilters: &mainBuildFilters
2929
only:
3030
- develop
3131
- 10.0-release
32+
- 10.0-use-contexts
3233

3334
# usually we don't build Mac app - it takes a long time
3435
# but sometimes we want to really confirm we are doing the right thing
@@ -38,6 +39,7 @@ macWorkflowFilters: &mac-workflow-filters
3839
or:
3940
- equal: [ develop, << pipeline.git.branch >> ]
4041
- equal: [ '10.0-release', << pipeline.git.branch >> ]
42+
- equal: [ 10.0-use-contexts, << pipeline.git.branch >> ]
4143
- matches:
4244
pattern: "-release$"
4345
value: << pipeline.git.branch >>
@@ -47,6 +49,7 @@ windowsWorkflowFilters: &windows-workflow-filters
4749
or:
4850
- equal: [ develop, << pipeline.git.branch >> ]
4951
- equal: [ '10.0-release', << pipeline.git.branch >> ]
52+
- equal: [ 10.0-use-contexts, << pipeline.git.branch >> ]
5053
- matches:
5154
pattern: "-release$"
5255
value: << pipeline.git.branch >>
@@ -419,9 +422,9 @@ commands:
419422
echo Current working directory is $PWD
420423
echo Total containers $CIRCLE_NODE_TOTAL
421424
422-
if [[ -v PACKAGES_RECORD_KEY ]]; then
425+
if [[ -v MAIN_RECORD_KEY ]]; then
423426
# internal PR
424-
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
427+
CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
425428
yarn cypress:run --record --parallel --group 5x-driver-<<parameters.browser>> --browser <<parameters.browser>>
426429
else
427430
# external PR
@@ -1416,7 +1419,7 @@ jobs:
14161419
- run:
14171420
command: |
14181421
CYPRESS_KONFIG_ENV=production \
1419-
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
1422+
CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
14201423
PERCY_PARALLEL_NONCE=$CIRCLE_SHA1 \
14211424
PERCY_ENABLE=${PERCY_TOKEN:-0} \
14221425
PERCY_PARALLEL_TOTAL=-1 \
@@ -1461,7 +1464,7 @@ jobs:
14611464
- run:
14621465
command: |
14631466
CYPRESS_KONFIG_ENV=production \
1464-
CYPRESS_RECORD_KEY=$PACKAGES_RECORD_KEY \
1467+
CYPRESS_RECORD_KEY=$MAIN_RECORD_KEY \
14651468
yarn cypress:run --record --parallel --group ui-components
14661469
working_directory: packages/ui-components
14671470
- verify-mocha-results
@@ -1577,7 +1580,6 @@ jobs:
15771580
- run:
15781581
name: Run tests
15791582
# will use PERCY_TOKEN environment variable if available
1580-
#
15811583
command: |
15821584
CYPRESS_KONFIG_ENV=production \
15831585
PERCY_PARALLEL_NONCE=$CIRCLE_SHA1 \
@@ -1653,26 +1655,26 @@ jobs:
16531655
command: yarn workspace @cypress/eslint-plugin-dev test
16541656

16551657
npm-cypress-schematic:
1656-
<<: *defaults
1657-
resource_class: small
1658-
steps:
1659-
- restore_cached_workspace
1660-
- run:
1661-
name: Build + Install
1662-
command: |
1663-
yarn workspace @cypress/schematic build:all
1664-
working_directory: npm/cypress-schematic
1665-
- run:
1666-
name: Launch
1667-
command: |
1668-
yarn launch:test
1669-
working_directory: npm/cypress-schematic
1670-
- run:
1671-
name: Run unit tests
1672-
command: |
1673-
yarn test
1674-
working_directory: npm/cypress-schematic
1675-
- store-npm-logs
1658+
<<: *defaults
1659+
resource_class: small
1660+
steps:
1661+
- restore_cached_workspace
1662+
- run:
1663+
name: Build + Install
1664+
command: |
1665+
yarn workspace @cypress/schematic build:all
1666+
working_directory: npm/cypress-schematic
1667+
- run:
1668+
name: Launch
1669+
command: |
1670+
yarn launch:test
1671+
working_directory: npm/cypress-schematic
1672+
- run:
1673+
name: Run unit tests
1674+
command: |
1675+
yarn test
1676+
working_directory: npm/cypress-schematic
1677+
- store-npm-logs
16761678

16771679
npm-release:
16781680
<<: *defaults
@@ -1699,7 +1701,7 @@ jobs:
16991701
- run:
17001702
name: Check current branch to persist artifacts
17011703
command: |
1702-
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "marktnoonan/backmerge-develop-3-8-22" && "$CIRCLE_BRANCH" != "10.0-release" ]]; then
1704+
if [[ "$CIRCLE_BRANCH" != "develop" && "$CIRCLE_BRANCH" != "10.0-use-contexts" && "$CIRCLE_BRANCH" != "10.0-release" ]]; then
17031705
echo "Not uploading artifacts or posting install comment for this branch."
17041706
circleci-agent step halt
17051707
fi
@@ -2172,6 +2174,7 @@ linux-workflow: &linux-workflow
21722174
- build
21732175
# unit, integration and e2e tests
21742176
- cli-visual-tests:
2177+
context: test-runner:percy
21752178
requires:
21762179
- build
21772180
- unit-tests:
@@ -2212,49 +2215,55 @@ linux-workflow: &linux-workflow
22122215
requires:
22132216
- system-tests-node-modules-install
22142217
- driver-integration-tests-chrome:
2218+
context: test-runner:cypress-record-key
22152219
requires:
22162220
- build
22172221
- driver-integration-tests-chrome-beta:
2222+
context: test-runner:cypress-record-key
22182223
requires:
22192224
- build
22202225
- driver-integration-tests-firefox:
2226+
context: test-runner:cypress-record-key
22212227
requires:
22222228
- build
22232229
- driver-integration-tests-electron:
2230+
context: test-runner:cypress-record-key
22242231
requires:
22252232
- build
22262233
- run-frontend-shared-component-tests-chrome:
2227-
context: test-runner:launchpad-tests
2234+
context: [test-runner:launchpad-tests, test-runner:percy]
22282235
percy: true
22292236
requires:
22302237
- build
22312238
- run-launchpad-integration-tests-chrome:
2232-
context: test-runner:launchpad-tests
2239+
context: [test-runner:launchpad-tests, test-runner:percy]
22332240
percy: true
22342241
requires:
22352242
- build
22362243
- run-launchpad-component-tests-chrome:
2237-
context: test-runner:launchpad-tests
2244+
context: [test-runner:launchpad-tests, test-runner:percy]
22382245
percy: true
22392246
requires:
22402247
- build
22412248
- run-app-integration-tests-chrome:
2242-
context: test-runner:launchpad-tests
2249+
context: [test-runner:launchpad-tests, test-runner:percy]
22432250
percy: true
22442251
requires:
22452252
- build
22462253
- run-app-component-tests-chrome:
2247-
context: test-runner:launchpad-tests
2254+
context: [test-runner:launchpad-tests, test-runner:percy]
22482255
percy: true
22492256
requires:
22502257
- build
22512258
- reporter-integration-tests:
2259+
context: [test-runner:cypress-record-key, test-runner:percy]
22522260
requires:
22532261
- build
22542262
- webpack-dev-server-fresh-integration-tests:
22552263
requires:
22562264
- build
22572265
- ui-components-integration-tests:
2266+
context: test-runner:cypress-record-key
22582267
requires:
22592268
- build
22602269
- npm-webpack-dev-server:
@@ -2270,6 +2279,7 @@ linux-workflow: &linux-workflow
22702279
requires:
22712280
- build
22722281
- npm-design-system:
2282+
context: test-runner:percy
22732283
requires:
22742284
- build
22752285
- npm-vue:

cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"bin",
102102
"lib",
103103
"index.js",
104+
"index.mjs",
104105
"types/**/*.d.ts",
105106
"types/net-stubbing.ts"
106107
],

cli/types/cypress.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ declare namespace Cypress {
28582858
* Override default config options for E2E Testing runner.
28592859
* @default {}
28602860
*/
2861-
e2e: CoreConfigOptions
2861+
e2e: Omit<CoreConfigOptions, 'indexHtmlFile'>
28622862

28632863
/**
28642864
* An array of objects defining the certificates
@@ -2869,6 +2869,8 @@ declare namespace Cypress {
28692869
* Handle Cypress plugins
28702870
*/
28712871
setupNodeEvents: (on: PluginEvents, config: PluginConfigOptions) => Promise<PluginConfigOptions | void> | PluginConfigOptions | void
2872+
2873+
indexHtmlFile: string
28722874
}
28732875

28742876
/**
@@ -2997,7 +2999,7 @@ declare namespace Cypress {
29972999
/**
29983000
* Config options that can be assigned on cypress.config.{ts|js} file
29993001
*/
3000-
type UserConfigOptions<ComponentDevServerOpts = any> = Omit<ResolvedConfigOptions<ComponentDevServerOpts>, 'baseUrl' | 'excludeSpecPattern' | 'supportFile' | 'specPattern'>
3002+
type UserConfigOptions<ComponentDevServerOpts = any> = Omit<ResolvedConfigOptions<ComponentDevServerOpts>, 'baseUrl' | 'excludeSpecPattern' | 'supportFile' | 'specPattern' | 'indexHtmlFile'>
30013003

30023004
/**
30033005
* Takes ComponentDevServerOpts to track the signature of the devServerConfig for the provided `devServer`,

cli/types/tests/cypress-tests.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ namespace CypressConfigTests {
3737
Cypress.config({ e2e: { baseUrl: null }}) // $ExpectType void
3838
Cypress.config({ e2e: { baseUrl: '.', }}) // $ExpectType void
3939
Cypress.config({ component: { baseUrl: '.', devServer: () => ({} as any) } }) // $ExpectError
40+
Cypress.config({ e2e: { indexHtmlFile: 'index.html' } }) // $ExpectError
4041

4142
Cypress.config('taskTimeout') // $ExpectType number
4243
Cypress.config('includeShadowDom') // $ExpectType boolean

npm/webpack-dev-server/index-template.html renamed to npm/angular/cypress/support/component-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
<body>
1010
<div id="__cy_root"></div>
1111
</body>
12-
</html>
12+
</html>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html>
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<title>AUT Frame</title>
7+
<title>Components App</title>
88
</head>
99
<body>
1010
<div id="__cy_root"></div>
1111
</body>
12-
</html>
12+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div id="__cy_root"></div>
11+
</body>
12+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div id="__cy_root"></div>
11+
</body>
12+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div id="__cy_root"></div>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)