@amirrustam
@SchauDustin
However, while working on the PR, I was honestly surprised by just how many inter-related bugs were present in the code - I had to work across a few days to fix them all, even though at first I thought it would just be a matter of fixing up a few issues. But hey, they were all fixed eventually - now everything's okay, right...?
let browser = puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
describe('CSS in JS Playground', () => {
test.concurrent(`displays '${library}' in the playground`, async () => {
browser = await browser;
const page = await browser.newPage();
await page.setViewport({
height: 600,
width: 600
});
await page.goto(`http://localhost:8000/?library=${library}`);
await page.waitForSelector(rootSelector);
await page.waitFor(2000);
const screenshot = await page.screenshot();
expect(screenshot).toMatchImageSnapshot({
customDiffConfig: {
threshold: 0.03
},
customSnapshotIdentifier: library,
});
}, 1000 * 60 * 10); // 10 minutes
});
version: 2
jobs:
build:
docker:
- image: circleci/node:jessie-browsers
steps:
- checkout
- run: mkdir test-reports
- run:
name: Download Selenium
command: curl -O http://selenium-release.storage.googleapis.com/3.5/selenium-server-standalone-3.5.3.jar
- run:
name: Start Selenium
command: java -jar selenium-server-standalone-3.5.3.jar -log test-reports/selenium.log
background: true
Make it work, make it right, make it fast.
workflows:
version: 2
build-test:
jobs:
- windows_unit_tests
- bootstrap
- lint:
requires:
- bootstrap
- unit_tests_node8:
<<: *ignore_docs
requires:
- bootstrap
- unit_tests_node10:
<<: *ignore_docs
requires:
- lint
- unit_tests_node8
- e2e_tests_production_runtime:
<<: *e2e-test-workflow
- e2e_tests_development_runtime:
<<: *e2e-test-workflow
<<: *e2e-test-workflow
- e2e_tests_path-prefix:
<<: *e2e-test-workflow