Skip to content

Commit

Permalink
Improve test harness and add browser pooling (#3871)
Browse files Browse the repository at this point in the history
* Update husky and lint-staged

* Add debug

* Only test transcript navigation tests

* Add message

* Disable ESLint

* Run transcript.navigation tests only

* Add more tests

* Add messages

* Fix syntax error

* Update logic

* Add new message

* Add message

* Update reporter

* Add message

* Log even if error

* Clean up logs

* Update splice

* Fix scrollStabilized

* Fix timeout

* Add testharness2

* Move transcript.navigation.escapeKey

* Move transcript.activityGrouping

* Move transcript.activityGrouping

* Clean up

* Move transcript.navigation.pageUpDown

* Move transcript.navigation.adaptiveCard.focusInput

* Move transcript.navigation.*

* Move some accessibility tests

* Move more accessibility tests

* Move all accessibility tests

* Move all activities.* tests

* Move activityGrouping.* tests

* Move adaptiveCards.* and autoScroll.*

* Move avatar.* tests

* Move cardAction.* tests

* Move carousel.* tests

* Move chatAdapter.* tests

* Move conversationStartProperties.* tests

* Move deprecated.* and directLine.* tests

* Move all focusManagement.* tests

* Move heroCard.* tests

* Move hooks.* tests

* Move locale.* and markdown.* tests

* Move middleware.* tests

* Move newMessageButton.* tests

* Move offlineUI.* tests

* Move replyToId.* tests

* Move sendBox.* tests

* Move sendFiles.* tests

* Move speechRecognition.* tests

* Move styleOptions.* tests

* Move suggestedActions.* tests

* Move timestamp.* tests

* Move toast.* tests

* Move transcript.* tests

* Move use*.* tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Fix tests

* Fix Docker script

* Improve toolchain

* Default to no-watch

* Fix tests

* Fix tests

* Fix tests

* Fix tests and clean up

* Fix build

* Add WD pool for Jest

* Update housekeeping

* Clean up

* Add jestserver

* Update housekeep

* Touchup

* Consistent window size

* Gracefully shutdown Jest server

* Gracefully shutdown Jest server

* Clean up

* Clean up instance after release

* Ignore get logs error

* Clean up

* Housekeep asynchronously

* Rename

* Dump logs before quit

* Use global-agent

* Improve test reliability

* Take fullscreen shot

* Move session preparation code

* Fix attachment

* Improve error stack

* Speed up

* Fix test

* Fix test

* Prepare session on reuse

* Update snapshot

* More __operation__

* Fix code coverage

* Increase shm_size

* Converge

* Fix tests

* Use stabilized

* Use stabilized

* Wait for focus

* Remove one screenshot

* Rename folders

* Build test harness

* Clean up test harness

* Renames

* Clean up

* Fix build

* Fix test

* Remove unneeded plugin

* Fix test

* Fix tests

* Fix tests

* Fix tests

* Fix test

* Add comments

* Add entry

* Add eslint

* Enable eslint

* Fix ESLint

* Fix ESLint

* Update husky

* Update lint-staged

* Update precommit

* Update precommit

* Update comment

* Remove unnecessary line

* Screenshot after fail

* Wait for image load before snapshot

* Wait for activity to be focused

* Attach last screenshot

* Wait for activities

* Wait for capacity

* Add screenshot location

* Fix error message

* Fix filename

* Add entry

* Clean up

* Fix tests

* Add comment

* Clean up

* Clean up

* Fix test reliability

* Add tolerance

* Update entry

* Improve test reliability

* Remove loop

* Update entry

* Improve test reliability

* Add all attachments

* Apply PR suggestions

* Apply suggestions from code review

Co-authored-by: Corina <[email protected]>

* Add comment

* Namespacing accessibility.delayActivity

* Update tofu

* Fix test

* Fix test

* Fix test

* Test reliability

* Apply PR suggestions

* Remove unneeded marshal

* Update message

Co-authored-by: Corina <[email protected]>
  • Loading branch information
compulim and corinagum authored May 12, 2021
1 parent 31d0b69 commit 3c216e1
Show file tree
Hide file tree
Showing 633 changed files with 22,347 additions and 18,841 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
/__tests__/__image_snapshots__
!/packages/bundle/dist
!/packages/playground/build
!/packages/testharness/dist
!/packages/test/harness/dist
!/packages/test/page-object/dist
!/serve-test.json
1 change: 1 addition & 0 deletions .husky/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit eol=lf
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files.exclude": {
"packages/*/dist": true,
"packages/*/lib": true
"packages/*/dist": false,
"packages/*/lib": false
},
"typescript.tsdk": "packages\\component\\node_modules\\typescript\\lib"
}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

### Added

- Cleanup repo URLs to point to main branch, by [@corinagum](https://github.com/corinagum), in PR [#3870](https://github.com/microsoft/BotFramework-WebChat/pull/3870)
- Resolved [#3557](https://github.com/microsoft/BotFramework-WebChat/issues/3557) and [#3736](https://github.com/microsoft/BotFramework-WebChat/issues/3736). Improved test harness and added browser pooling, by [@compulim](https://github.com/compulim), in PR [#3871](https://github.com/microsoft/BotFramework-WebChat/pull/3871)

### Fixed

- Fixes [#3814](https://github.com/microsoft/BotFramework-WebChat/issues/3814). Allow carousel's scrollable content to be tabbable, by [@corinagum](https://github.com/corinagum) in PR [#3841](https://github.com/microsoft/BotFramework-WebChat/pull/3841)
- Fixes [#3834](https://github.com/microsoft/BotFramework-WebChat/issues/3834). Ensure carousel attachments are read by AT on tab focus, by [@corinagum](https://github.com/corinagum) in PR [#3841](https://github.com/microsoft/BotFramework-WebChat/pull/3841)
- Fixes [#3812](https://github.com/microsoft/BotFramework-WebChat/issues/3812). Update `adaptiveCardHostConfig` to accessible text color-contrasts, by [@corinagum](https://github.com/corinagum) in PR [#3853](https://github.com/microsoft/BotFramework-WebChat/pull/3853)
- Fixes [#3816](https://github.com/microsoft/BotFramework-WebChat/issues/3816). De-bumped Node.js engine requirement for Direct Line Speech SDK to `>= 10.14.2` from `>= 12.0.0`, by [@compulim](https://github.com/compulim) in PR [#3854](https://github.com/microsoft/BotFramework-WebChat/pull/3854)
- Fixes [#3842](https://github.com/microsoft/BotFramework-WebChat/issues/3842). Updated [`husky`](https://npmjs.com/package/husky), [`lint-staged`](https://npmjs.com/package/lint-staged) and corresponding `precommit` scripts, by [@compulim](https://github.com/compulim), in PR [#3871](https://github.com/microsoft/BotFramework-WebChat/pull/3871)

### Changed

Expand Down
15 changes: 0 additions & 15 deletions Dockerfile-testharness

This file was deleted.

17 changes: 0 additions & 17 deletions Dockerfile-testharness2

This file was deleted.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion __tests__/html/.gitignore

This file was deleted.

42 changes: 0 additions & 42 deletions __tests__/html/__jest__/WebChatEnvironment.js

This file was deleted.

110 changes: 0 additions & 110 deletions __tests__/html/__jest__/createJobObservable.js

This file was deleted.

22 changes: 0 additions & 22 deletions __tests__/html/__jest__/hostServe.js

This file was deleted.

8 changes: 0 additions & 8 deletions __tests__/html/__jest__/indent.js

This file was deleted.

15 changes: 0 additions & 15 deletions __tests__/html/__jest__/parseURLParams.js

This file was deleted.

Loading

0 comments on commit 3c216e1

Please sign in to comment.