Skip to content

Commit

Permalink
Timeouts increased for 4 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceHaley committed Jun 13, 2019
1 parent 82ae514 commit 255975a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions __tests__/cardActionMiddleware.js
Expand Up @@ -64,15 +64,15 @@ test('card action "signin"', async () => {
}
});

await driver.wait(uiConnected(), timeouts.directLine);
await driver.wait(uiConnected(), timeouts.postActivity);
await pageObjects.sendMessageViaSendBox('oauth', { waitForSend: true });

await driver.wait(minNumActivitiesShown(2), timeouts.directLine);
await driver.wait(minNumActivitiesShown(2), timeouts.postActivity);
const openUrlButton = await driver.findElement(By.css('[role="log"] ul > li button'));

await openUrlButton.click();
await driver.wait(minNumActivitiesShown(4), timeouts.directLine);
await driver.wait(allOutgoingActivitiesSent(), timeouts.directLine);
await driver.wait(minNumActivitiesShown(4), timeouts.postActivity);
await driver.wait(allOutgoingActivitiesSent(), timeouts.postActivity);

// When the "Sign in" button is clicked, the focus move to it, need to blur it.
await driver.executeScript(() => {
Expand Down
8 changes: 4 additions & 4 deletions __tests__/carousel.js
Expand Up @@ -15,10 +15,10 @@ describe('carousel without avatar initials', () => {
test('4 attachments and no message', async () => {
const { driver, pageObjects } = await setupWebDriver();

await driver.wait(uiConnected(), timeouts.directLine);
await driver.wait(uiConnected(), timeouts.postActivity);
await pageObjects.sendMessageViaSendBox('carousel', { waitForSend: true });

await driver.wait(minNumActivitiesShown(2), timeouts.directLine);
await driver.wait(minNumActivitiesShown(2), timeouts.postActivity);
await driver.wait(allImagesLoaded(), timeouts.fetch);

expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
Expand Down Expand Up @@ -115,10 +115,10 @@ describe('carousel with avatar initials', () => {
test('4 attachments and no message', async () => {
const { driver, pageObjects } = await setupWebDriver({ props: WEB_CHAT_PROPS });

await driver.wait(uiConnected(), timeouts.directLine);
await driver.wait(uiConnected(), timeouts.postActivity);
await pageObjects.sendMessageViaSendBox('carousel', { waitForSend: true });

await driver.wait(minNumActivitiesShown(2), timeouts.directLine);
await driver.wait(minNumActivitiesShown(2), timeouts.postActivity);
await driver.wait(allImagesLoaded(), timeouts.fetch);

expect(await driver.takeScreenshot()).toMatchImageSnapshot(imageSnapshotOptions);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/markdown.js
Expand Up @@ -14,7 +14,7 @@ test('hero card', async () => {
await pageObjects.sendMessageViaSendBox('herocard', { waitForSend: true });

await driver.wait(allImagesLoaded(), timeouts.fetch);
await driver.wait(minNumActivitiesShown(2), timeouts.directLine);
await driver.wait(minNumActivitiesShown(2), timeouts.postActivity);
// Wait for transcript to scroll to bottom
await driver.sleep(1000);

Expand Down

0 comments on commit 255975a

Please sign in to comment.