Skip to content

Commit 726c4f3

Browse files
committed
Port tests to html2
1 parent 360e029 commit 726c4f3

15 files changed

Lines changed: 91 additions & 76 deletions

__tests__/html/adaptiveCards.assumeBorderBox.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

__tests__/html/adaptiveCards.parserMaxVersion.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

__tests__/html/adaptiveCards.renderError.html

Lines changed: 0 additions & 47 deletions
This file was deleted.

__tests__/html/adaptiveCards.renderError.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

__tests__/html/adaptiveCards.tapAction.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

__tests__/html/adaptiveCards.assumeBorderBox.html renamed to __tests__/html2/adaptiveCard/assumeBorderBox.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en-US">
33
<head>
44
<link href="/assets/index.css" rel="stylesheet" type="text/css" />
@@ -54,7 +54,7 @@
5454

5555
await pageConditions.uiConnected();
5656
await pageConditions.numActivitiesShown(1);
57-
await host.snapshot();
57+
await host.snapshot('local');
5858
});
5959
</script>
6060
</body>

__tests__/__image_snapshots__/html/adaptive-cards-assume-border-box-js-adaptive-cards-assumes-the-container-is-using-forced-border-box-mode-1-snap.png renamed to __tests__/html2/adaptiveCard/assumeBorderBox.html.snap-1.png

File renamed without changes.

__tests__/html/adaptiveCards.parserMaxVersion.html renamed to __tests__/html2/adaptiveCard/parserMaxVersion.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@
6363

6464
// When no maxVersion is specified, it should use the latest.
6565
// The screenshot should have the "Label" text.
66-
await host.snapshot();
66+
await host.snapshot('local');
6767

6868
// When maxVersion is specified, it should use that version.
6969
// The screenshot should not have the "Label" text, as it was introduced in 1.3.
7070
renderWebChatWithMaxVersion('1.2');
71-
await host.snapshot();
71+
await host.snapshot('local');
7272

7373
// When maxVersion is specified but invalid, it should use the latest.
7474
// The screenshot should have the "Label" text.
7575
renderWebChatWithMaxVersion('x.y.z');
76-
await host.snapshot();
76+
await host.snapshot('local');
7777
});
7878
</script>
7979
</body>

__tests__/__image_snapshots__/html/adaptive-cards-parser-max-version-js-adaptive-cards-with-adaptive-cards-parser-max-version-style-options-1-snap.png renamed to __tests__/html2/adaptiveCard/parserMaxVersion.html.snap-1.png

File renamed without changes.

__tests__/__image_snapshots__/html/adaptive-cards-parser-max-version-js-adaptive-cards-with-adaptive-cards-parser-max-version-style-options-2-snap.png renamed to __tests__/html2/adaptiveCard/parserMaxVersion.html.snap-2.png

File renamed without changes.

0 commit comments

Comments
 (0)