Skip to content

Commit 63c3ca3

Browse files
committed
Move unknown* tests
1 parent 5125770 commit 63c3ca3

6 files changed

Lines changed: 5 additions & 13 deletions

File tree

__tests__/html/activity.unknownActivity.js

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

__tests__/html/activity.unknownAttachment.js

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

__tests__/html/activity.unknownActivity.html renamed to __tests__/html2/activity/legacy/unknownActivity.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
await pageObjects.sendMessageViaSendBox('unknown activity');
2424
await pageConditions.minNumActivitiesShown(1);
2525

26-
await host.snapshot();
26+
// This snapshot differs with NODE_ENV, we need to make it pass in NODE_ENV !== 'production'
27+
await host.snapshot('local');
2728
},
2829
{ ignoreErrors: true }
2930
);

__tests__/__image_snapshots__/html/activity-unknown-activity-js-activity-should-not-show-unknown-activity-1-snap.png renamed to __tests__/html2/activity/legacy/unknownActivity.html.snap-1.png

File renamed without changes.

__tests__/html/activity.unknownAttachment.html renamed to __tests__/html2/activity/legacy/unknownAttachment.html

Lines changed: 3 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" />
@@ -23,7 +23,8 @@
2323
await pageObjects.sendMessageViaSendBox('unknown attachment');
2424
await pageConditions.minNumActivitiesShown(2);
2525

26-
await host.snapshot();
26+
// This snapshot differs with NODE_ENV, we need to make it pass in NODE_ENV !== 'production'
27+
await host.snapshot('local');
2728
},
2829
{ ignoreErrors: true }
2930
);

__tests__/__image_snapshots__/html/activity-unknown-attachment-js-activity-should-not-show-unknown-attachment-1-snap.png renamed to __tests__/html2/activity/legacy/unknownAttachment.html.snap-1.png

File renamed without changes.

0 commit comments

Comments
 (0)