-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added basic sanity checks/tests
- Loading branch information
Alex Harper
committed
Apr 14, 2021
1 parent
9fc144f
commit e6ebe61
Showing
10 changed files
with
2,683 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+6.63 KB
...ests/__snapshots__/tests/main/Screenshot-matches/chromium-win32/player-test.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<head> | ||
<script src="https://unpkg.com/@lottiefiles/lottie-player@0.4.0/dist/lottie-player.js"></script> | ||
<!-- <script src="../node_modules/@lottiefiles/lottie-player/dist/lottie-player.js"></script> --> | ||
</head> | ||
<body style="background-color: cornflowerblue; height: 600px; width: 600px;"> | ||
<lottie-player src="https://assets5.lottiefiles.com/datafiles/zc3XRzudyWE36ZBJr7PIkkqq0PFIrIBgp4ojqShI/newAnimation.json" background="white" speed="1" style="width: 400px; height: 400px;" loop controls></lottie-player> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ChromiumEnv, FirefoxEnv, WebKitEnv, test, setConfig } from "@playwright/test"; | ||
import * as http from 'http'; | ||
|
||
setConfig({ | ||
testDir: __dirname, // Search for tests in this directory. | ||
timeout: 30000, // Each test is given 30 seconds. | ||
}); | ||
|
||
const options = { | ||
headless: true, | ||
viewport: { width: 1280, height: 720 } | ||
}; | ||
|
||
// Run tests in three browsers. | ||
test.runWith(new ChromiumEnv(options), { tag: 'chromium' }); | ||
// test.runWith(new FirefoxEnv(options), { tag: 'firefox' }); | ||
// test.runWith(new WebKitEnv(options), { tag: 'webkit' }); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
testEnvironment: "jsdom", | ||
}; |
Oops, something went wrong.