-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
Binary file modified
BIN
-10.3 KB
(77%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.99 KB
(89%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-1-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-229 Bytes
(99%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-247 Bytes
(99%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-2-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-46 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-3-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-8 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-3-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+108 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-4-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+68 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-4-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-59 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-5-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-101 Bytes
(100%)
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-5-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43 KB
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-6-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.4 KB
__visual_tests__/__snapshots__/workflow-tests.spec.ts/104-6-firefox-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
import { test } from '@playwright/test'; | ||
|
||
import { WidgetComponentIds } from './const'; | ||
import { | ||
assertScreenshot, | ||
clickNthChip, | ||
deleteTestResources, | ||
loadWidget, | ||
sendTextMessage, | ||
} from './utils/testUtils'; | ||
import { assertScreenshot, clickNthChip, deleteTestResources, loadWidget, sendTextMessage } from './utils/testUtils'; | ||
|
||
test.afterEach(async ({ page }) => { | ||
await deleteTestResources(page); | ||
|
@@ -57,7 +51,7 @@ test('100', async ({ page, browserName }) => { | |
await inputs.nth(3).fill('[email protected]'); | ||
await inputs.nth(4).fill('123-456-7890'); | ||
await submitButton.click(); | ||
await page.waitForTimeout(1000); | ||
await page.waitForTimeout(2000); | ||
await assertScreenshot(page, '100-4', browserName); | ||
}); | ||
|
||
|
@@ -157,7 +151,7 @@ test('104', async ({ page, browserName }) => { | |
const fallback = page.locator(WidgetComponentIds.MARKDOWN); | ||
await fallback.first().waitFor({ state: 'visible' }); | ||
let options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(3).waitFor({ state: 'visible' }); | ||
await options.nth(4).waitFor({ state: 'visible' }); | ||
await assertScreenshot(page, '104-1', browserName); | ||
|
||
// 2 | ||
|
@@ -167,7 +161,7 @@ test('104', async ({ page, browserName }) => { | |
await assertScreenshot(page, '104-2', browserName); | ||
await options.nth(0).click(); // Go back | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(3).waitFor({ state: 'visible' }); | ||
await options.nth(4).waitFor({ state: 'visible' }); | ||
|
||
// 3 | ||
await options.nth(1).click(); | ||
|
@@ -176,7 +170,7 @@ test('104', async ({ page, browserName }) => { | |
await assertScreenshot(page, '104-3', browserName); | ||
await options.nth(0).click(); // Go back | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(3).waitFor({ state: 'visible' }); | ||
await options.nth(4).waitFor({ state: 'visible' }); | ||
|
||
// 4 | ||
await options.nth(2).click(); | ||
|
@@ -185,11 +179,20 @@ test('104', async ({ page, browserName }) => { | |
await assertScreenshot(page, '104-4', browserName); | ||
await options.nth(0).click(); // Go back | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(3).waitFor({ state: 'visible' }); | ||
await options.nth(4).waitFor({ state: 'visible' }); | ||
|
||
// 5 | ||
await options.nth(3).click(); | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(0).waitFor({ state: 'visible' }); // Wait for go back button to show | ||
await assertScreenshot(page, '104-5', browserName); | ||
await options.nth(0).click(); // Go back | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(4).waitFor({ state: 'visible' }); | ||
|
||
// 6 | ||
await options.nth(4).click(); | ||
options = page.locator(WidgetComponentIds.SUGGESTED_REPLIES_OPTIONS); | ||
await options.nth(0).waitFor({ state: 'visible' }); // Wait for go back button to show | ||
await assertScreenshot(page, '104-6', browserName); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters