-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into skip-param
- Loading branch information
Showing
46 changed files
with
684 additions
and
86 deletions.
There are no files selected for viewing
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,75 @@ | ||
name: Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
unit: | ||
name: Unit tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts | ||
- name: Run Jest | ||
uses: tangro/actions-test@1.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
with: | ||
command: test-ci | ||
|
||
static-analysis: | ||
name: Static analysis | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts | ||
- name: Run ESLint | ||
run: yarn lint | ||
|
||
integration-cli: | ||
name: 'Integration tests: CLI' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts | ||
- name: Run integration tests | ||
run: yarn workspace @loki/test-cli test | ||
|
||
visual-react-dom: | ||
name: 'Visual tests: React DOM' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts | ||
- name: Run loki | ||
run: yarn workspace @loki/example-react test-ci | ||
- name: Archive screenshots | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: screenshots | ||
path: examples/react/.loki |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ yarn-error.log | |
_book | ||
.loki | ||
!examples/*/.loki | ||
test_results.json |
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
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.23 KB
examples/react/.loki/reference/chrome_a4_Positions_Nested_Overflow_Hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+953 Bytes
examples/react/.loki/reference/chrome_a4_Positions_Overflow_Hidden_Fixed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+329 Bytes
examples/react/.loki/reference/chrome_a4_Positions_Overflow_Hidden_Relative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.36 KB
examples/react/.loki/reference/chrome_a4_Positions_Relative_Wrapper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.13 KB
examples/react/.loki/reference/chrome_a4_Positions_Slider_With_Nested_Overflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+301 Bytes
examples/react/.loki/reference/chrome_iphone7_FocusedInput_default.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.97 KB
examples/react/.loki/reference/chrome_iphone7_Positions_Nested_Overflow_Hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.31 KB
examples/react/.loki/reference/chrome_iphone7_Positions_Overflow_Hidden_Fixed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+608 Bytes
...les/react/.loki/reference/chrome_iphone7_Positions_Overflow_Hidden_Relative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.76 KB
examples/react/.loki/reference/chrome_iphone7_Positions_Relative_Wrapper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.35 KB
.../react/.loki/reference/chrome_iphone7_Positions_Slider_With_Nested_Overflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+191 Bytes
examples/react/.loki/reference/chrome_laptop_FocusedInput_default.png
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.23 KB
examples/react/.loki/reference/chrome_laptop_Positions_Nested_Overflow_Hidden.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+953 Bytes
examples/react/.loki/reference/chrome_laptop_Positions_Overflow_Hidden_Fixed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+329 Bytes
...ples/react/.loki/reference/chrome_laptop_Positions_Overflow_Hidden_Relative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.36 KB
examples/react/.loki/reference/chrome_laptop_Positions_Relative_Wrapper.png
Oops, something went wrong.
Binary file added
BIN
+1.13 KB
...s/react/.loki/reference/chrome_laptop_Positions_Slider_With_Nested_Overflow.png
Oops, something went wrong.
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,20 @@ | ||
module.exports = { | ||
"chromeSelector": ".wrapper > *, #root > *", | ||
"diffingEngine": "looks-same", | ||
"configurations": { | ||
"chrome.laptop": { | ||
"target": "chrome.docker", | ||
"width": 1366, | ||
"height": 768 | ||
}, | ||
"chrome.iphone7": { | ||
"target": "chrome.docker", | ||
"preset": "iPhone 7" | ||
}, | ||
"chrome.a4": { | ||
"target": "chrome.docker", | ||
"preset": "A4 Paper" | ||
} | ||
}, | ||
"fetchFailIgnore": "localhost:1234/get" | ||
}; |
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
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,5 @@ | ||
import React from 'react'; | ||
|
||
const FocusedInput = () => <input type="text" autoFocus />; | ||
|
||
export default FocusedInput; |
Oops, something went wrong.