Skip to content

Commit

Permalink
feat: added basic sanity checks/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harper committed Apr 14, 2021
1 parent 9fc144f commit e6ebe61
Show file tree
Hide file tree
Showing 10 changed files with 2,683 additions and 49 deletions.
2 changes: 0 additions & 2 deletions packages/function-tests/index.html

This file was deleted.

18 changes: 0 additions & 18 deletions packages/function-tests/package.json

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/functional-tests/app/index.html
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>
17 changes: 17 additions & 0 deletions packages/functional-tests/config.ts
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' });
3 changes: 3 additions & 0 deletions packages/functional-tests/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testEnvironment: "jsdom",
};
Loading

0 comments on commit e6ebe61

Please sign in to comment.