Skip to content

Commit

Permalink
Add submission test
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Sep 24, 2019
1 parent 4fb46a9 commit fd3bfff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions __tests__/adaptiveCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,14 @@ test('disable card inputs', async () => {
await pageObjects.updateProps({ disabled: true });

expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);

await pageObjects.updateProps({ disabled: false });
await driver.executeScript(() => {
document.querySelector('.ac-actionSet button:nth-of-type(2)').click();
});

await driver.wait(minNumActivitiesShown(3), timeouts.directLine);
await driver.wait(scrollToBottomCompleted(), timeouts.scrollToBottom);

expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
});

0 comments on commit fd3bfff

Please sign in to comment.