Skip to content

Commit

Permalink
Bump adaptivecards@2.9.0 (#3846)
Browse files Browse the repository at this point in the history
* Bump adaptivecards@2.9.0

* Update entry

* Update screenshots

* Fix test

* Fix test

* Fix test

* Fix tests

* Fix tests
  • Loading branch information
compulim committed Jun 22, 2021
1 parent 04a1a81 commit 1a1b44b
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- Bumped all dependencies to the latest versions and sample bumps, by [@compulim](https://github.com/compulim) in PR [#3831](https://github.com/microsoft/BotFramework-WebChat/pull/3831)
- Bumped all dependencies to the latest versions and sample bumps, by [@compulim](https://github.com/compulim) in PR [#3831](https://github.com/microsoft/BotFramework-WebChat/pull/3831) and PR [#3846](https://github.com/microsoft/BotFramework-WebChat/pull/3846)
- Development dependencies
- [`@azure/storage-blob@12.5.0`](https://npmjs.com/package/@azure/storage-blob)
- [`@babel/cli@7.13.14`](https://npmjs.com/package/@babel/cli)
Expand Down Expand Up @@ -96,6 +96,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [`webpack@4.46.0`](https://npmjs.com/package/webpack)
- Production dependencies
- [`@emotion/css@11.1.3`](https://npmjs.com/package/@emotion/css), moved from [`create-emotion`](https://npmjs.com/package/create-emotion)
- [`adaptivecards@2.9.0`](https://npmjs.com/package/adaptivecards)
- [`classnames@2.3.1`](https://npmjs.com/package/classnames)
- [`core-js@3.10.0`](https://npmjs.com/package/core-js)
- [`react-redux@7.2.3`](https://npmjs.com/package/react-redux)
Expand Down
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.
6 changes: 6 additions & 0 deletions __tests__/adaptiveCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ test('disable card inputs', async () => {
document.querySelector('.ac-adaptiveCard input[type="radio"]').checked = true;
document.querySelector('.ac-adaptiveCard input[type="text"]').value = 'William';
document.querySelector('.ac-adaptiveCard input[type="time"]').value = '12:34';
document.querySelector('.ac-adaptiveCard input[type="number"]').value = '1';
document.querySelector('.ac-adaptiveCard select').value = '1';
document.querySelector('.ac-adaptiveCard textarea').value = 'One Redmond Way, Redmond, WA';
});
Expand Down Expand Up @@ -189,6 +190,11 @@ test('Inputs card with custom style options and submit action', async () => {
await driver.wait(minNumActivitiesShown(2), timeouts.directLine);
await driver.wait(allImagesLoaded(), timeouts.fetchImage);

// To submit the input form, the number field is mandatory.
await driver.executeScript(() => {
document.querySelector('.ac-adaptiveCard input[type="number"]').value = '1';
});

// Click "Submit" button should change the button color
await driver.executeScript(() => {
document.querySelector('.ac-actionSet button:nth-of-type(2)').click();
Expand Down
5 changes: 5 additions & 0 deletions __tests__/scrollToBottom.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ test('should stick to bottom if submitting an Adaptive Card while suggested acti
await driver.wait(suggestedActionsShown(), timeouts.directLine);
await driver.wait(scrollToBottomCompleted(), timeouts.scrollToBottom);

// To submit the input form, the number field is mandatory.
await driver.executeScript(() => {
document.querySelector('.ac-adaptiveCard input[type="number"]').value = '1';
});

const submitButton = await driver.findElement(By.css('button.ac-pushButton:nth-of-type(2)'));

await submitButton.click();
Expand Down
6 changes: 3 additions & 3 deletions packages/bundle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@babel/runtime": "7.13.10",
"adaptivecards": "2.5.0",
"adaptivecards": "2.9.0",
"botframework-directlinejs": "0.14.1",
"botframework-directlinespeech-sdk": "0.0.0-0",
"botframework-webchat-api": "0.0.0-0",
Expand Down

0 comments on commit 1a1b44b

Please sign in to comment.