Skip to content

Commit

Permalink
feat: fix tests, add sample lottie
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harper committed Apr 19, 2021
1 parent cbb5c15 commit 823a104
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ node_modules


dist/

packages/functional-tests/app/lottie-player.js
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions packages/functional-tests/app/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<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> -->
<!-- <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> -->
<script src="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>
<lottie-player src="test.json" background="white" speed="1" style="width: 400px; height: 400px;" loop controls></lottie-player>
</body>
</html>
1 change: 1 addition & 0 deletions packages/functional-tests/app/test.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/functional-tests/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ const options = {

// 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' });
test.runWith(new FirefoxEnv(options), { tag: 'firefox' });
test.runWith(new WebKitEnv(options), { tag: 'webkit' });
3 changes: 0 additions & 3 deletions packages/functional-tests/jest.config.js

This file was deleted.

9 changes: 5 additions & 4 deletions packages/functional-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "cd app & http-server",
"start": "cd app && shx cp ../node_modules/@lottiefiles/lottie-player/dist/lottie-player.js ./lottie-player.js && http-server",
"test-folio": "folio --config=config.ts",
"test": "concurrently \"npm run start\" \"npm run test-folio\" ",
"test": "concurrently \"yarn run start\" \"yarn run test-folio\" ",
"posttest": "pkill -f http-server"
},
"author": "",
Expand All @@ -15,8 +15,9 @@
"@lottiefiles/lottie-player": "file:../.."
},
"devDependencies": {
"@playwright/test": "^0.1101.0",
"concurrently": "^6.0.2",
"http-server": "^0.12.3",
"concurrently": "^6.0.2"
"@playwright/test": "^0.1101.0",
"shx": "^0.3.3"
}
}
12 changes: 0 additions & 12 deletions packages/functional-tests/tests/page.js

This file was deleted.

0 comments on commit 823a104

Please sign in to comment.