Skip to content

Commit 65d404a

Browse files
committed
Add submission test
1 parent 7d4487c commit 65d404a

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

34.5 KB
Loading

__tests__/adaptiveCards.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,14 @@ test('disable card inputs', async () => {
6666
await pageObjects.updateProps({ disabled: true });
6767

6868
expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
69+
70+
await pageObjects.updateProps({ disabled: false });
71+
await driver.executeScript(() => {
72+
document.querySelector('.ac-actionSet button:nth-of-type(2)').click();
73+
});
74+
75+
await driver.wait(minNumActivitiesShown(3), timeouts.directLine);
76+
await driver.wait(scrollToBottomCompleted(), timeouts.scrollToBottom);
77+
78+
expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
6979
});

0 commit comments

Comments
 (0)