Commit Graph

31 Commits

Author SHA1 Message Date
ylemkimon
abe3ab7eb8 chore(deps): update selenium-webdriver to 4 (#3205)
* chore(deps): update selenium-webdriver to 4

refactor: use async/await

* fix(screenshotter): disable static watch
2021-08-28 17:42:12 +00:00
Erik Demaine
e7d38df8d4 chore(deps): update webpack, webpack-cli, webpack-dev-server (#3191)
* chore(deps): update webpack, webpack-cli, webpack-dev-server

Fixes #3189

* injectClient -> client

* Switch WebpackDevServer constructor order

* Switch from listen to start

* Fix missing argument to catch

* chore: dedupe lockfile

* chore: update to Yarn 3.0.1

* ci: run yarn install on semantic release

* ci: use setup-node cache

* chore: update lockfile

Co-authored-by: Ylemkimon <y@ylem.kim>
2021-08-27 13:04:13 +09:00
renovate[bot]
9c0fd964ee chore(deps): update selenium/standalone-firefox docker tag to v20210422 [skip netlify] (#2999)
* chore(deps): update selenium/standalone-firefox docker tag to v20210422 [skip netlify]

* test(screenshotter): update screenshots

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Young Min Kin <mail@ylem.kim>
2021-05-20 01:51:25 +09:00
renovate[bot]
2f2636805f chore(deps): update selenium/standalone-chrome docker tag to v20210422 [skip netlify] (#2997)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-20 01:40:11 +09:00
Erik Demaine
93b56cfb0b chore(screenshotter): Improve screenshotter for Safari (#3015)
* Fix when Docker returns IPv4 and IPv6 addresses

* Ensure images load before screenshotting

* Fix bugs from review

* Update test/screenshotter/test.html

Co-authored-by: ylemkimon <y@ylem.kim>
2021-05-17 22:45:11 +00:00
Erik Demaine
7377fea33a chore(screenshotter): modernize calls to NodeJS Buffer interface (#2962)
Avoid DeprecationWarning during screenshotting

Co-authored-by: ylemkimon <y@ylem.kim>
2021-04-30 20:06:04 +00:00
renovate[bot]
a8c22652c9 chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20210311 [skip netlify] (#2841)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 17:55:18 +00:00
renovate[bot]
3eb9b4c1f6 chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20210311 [skip netlify] (#2840)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-15 14:51:51 +00:00
ylemkimon
c0a9a6d961 chore(deps): update to webpack 5 (#2664)
Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-28 22:45:05 -05:00
ylemkimon
8803649179 ci: run screenshotter in container (#2644)
* ci: run screenshotter in container

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2020-12-19 09:16:34 +09:00
renovate[bot]
5f701de72d chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20201119 [skip netlify] (#2656)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-20 21:39:57 +00:00
renovate[bot]
d485edad43 chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20201119 [skip netlify] (#2655)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-20 19:48:49 +00:00
renovate[bot]
9e91bd0dd8 chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20201117 [skip netlify] (#2649)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-19 06:30:45 +00:00
renovate[bot]
c576058380 chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20201117 [skip netlify] (#2648)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-18 20:28:10 +00:00
renovate[bot]
960a8ceeaa chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20201010 [skip netlify] (#2579)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-12 11:44:03 +00:00
renovate[bot]
ff7e80f65d chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20201010 [skip netlify] (#2578)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-12 10:45:51 +00:00
renovate[bot]
7418057e3a chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20200826 [skip netlify] (#2544)
* chore(deps): update selenium/standalone-firefox docker tag to v3.141.59-20200826 [skip netlify]

* Update screenshots

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ylemkimon <y@ylem.kim>
2020-09-26 02:53:23 +09:00
renovate[bot]
94c374c7c1 chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20200826 [skip netlify] (#2543)
* chore(deps): update selenium/standalone-chrome docker tag to v3.141.59-20200826 [skip netlify]

* Update screenshots

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ylemkimon <y@ylem.kim>
2020-09-26 02:04:28 +09:00
ylemkimon
2d484a9769 ci(renovate): update screenshotter browser, .flowconfig, editor SDKs, and Actions (#2516)
* ci(renovate): update screenshotter browser image

* ci(renovate): update .flowconfig and Yarn editor SDKs

* ci(renovate): remove unnecessary option

* ci(renovate): do not skip netlify for website updates

* ci(renovate): update GitHub Actions in workflows

* ci(renovate): fix skip netlify
2020-09-22 13:43:28 +09:00
ylemkimon
221042be86 ci: migrate to GitHub Actions from CircleCI, allow running Browserstack on forked repo via label (#2417)
* Remove CircleCI and codecov

* Add GitHub Actions workflow

* Add Browserstack credentials

* Skip tests if ci skip or skip ci is in commit messages

* Update and rename test.yml to ci.yml

* Postfix artifacts name with browser

* Disable proxy on chrome

* Update dockers/screenshotter/screenshotter.js

* Add status badge

* Set directory option in codecov action

* Run Browserstack on forked repo via label

* Print Docker logs

* Disable GPU on ChromeDriver

* Add comments

* Add comments
2020-08-18 04:58:08 +09:00
ylemkimon
36f9788cd6 chore(screenshotter): support Browserstack and test on Safari 13.1 (#2306)
* Support Browserstack in screenshotter

* Support Browserstack in CircleCI

* Test screenshots on Safari 13.1

* Don't run Safari screenshotter on forked PRs

* Update a screenshot

* Ignore *.log in .gitignore
2020-08-04 01:45:10 +09:00
ylemkimon
f97c5454f8 chore: migrate to Yarn 2 (#2316)
* chore: migrate to Yarn 2

* Update config.yml
2020-08-03 18:24:56 +09:00
ylemkimon
8a24907518 build(deps): update dependencies (#2301)
* Bump flow version

* Bump jest version

* Bump eslint version

* Bump rollup version

* Bump webpack version

* Bump misc dependencies and update lockfile

* Update lockfile

* Bump commander version

* Bump misc dependencies

* Bump istanbul version

* Bump docusaurus version

* Update lockfile

* Explicitly declare dependencies

* Bump caniuse-lite version

* Update lockfile

* Bump commander version

* Bump webpack and css-loader version

* Bump flow version
2020-07-25 11:38:29 -07:00
ylemkimon
3272472ffe Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols (#2153)
* Use babel-plugin-preval instead of own unicodeMake for unicodeSymbols

* Fix circular dependency transpiling issue

* Flow type unicodeSymbols.js

Co-authored-by: Erik Demaine <edemaine@mit.edu>
2020-07-08 17:58:11 -04:00
ylemkimon
b9deec098f Load fonts before running screenshotter (#1891) 2019-04-07 18:15:05 +09:00
ylemkimon
11490b5e0b Allow screenshotter to be run on IE, Edge, Safari and remote, e.g., BrowserStack (#1661)
* Allow screenshotter on IE, Edge, and Safari

* Set Firefox options only on Firefox

* Add --selenium-capabilities option to support setting capabilities

* Quit web driver after test finishes

* Upgrade to style-loader 0.22.1 for IE compatability
2018-10-28 17:34:17 +09:00
ylemkimon
cb89a9e5d0 Fix screenshotter race conditions (#1643)
* Fix screenshotter race conditions

* Update screenshotter.js

* Update screenshotter.js
2018-08-21 13:04:05 +09:00
ylemkimon
41a43974ce Collect code coverage in screenshotter tests (#1644)
* Collect code coverage in screenshotter tests

* Using instanbul, no additional dependencies required as they are part 
of jest
* Collect in CircleCI builds and upload to Codecov

* Remove clover report
2018-08-21 12:09:29 +09:00
Kevin Barabash
b2432e8ad2 make all classes in domTree.js PascalCase and make them named exports (#1636)
* make all classes in domTree.js PascalCase and make them named exports

* add eslint rule to enforce capitalization, fix failures

* address feedback
2018-08-19 23:49:21 +09:00
ylemkimon
f829ebc692 Improve prestart and tests (#1610)
* screenshotter: replace promisify(fs) and mkdirp with fs-extra

* screenshotter: replace selenium.promise with builtin Promise

* Lint all JavaScript files in the root

* unicodeMake: replace console.log with writeFile(string)

* unicodeMake: check timestamp, do not build if up-to-date

* Replace check-dependencies with yarn check

* Exclude src/unicodeMake.js from coverage

* Add (missing) dependencies

* Skip CircleCI if only unrelated has been changed

* Fix commit range

* Use fs-extra in update-sri
2018-08-17 16:29:27 +09:00
Erik Demaine
881d780287 Rename Screenshotter -> screenshotter (#1573)
Fix #1570
2018-08-10 19:29:16 +09:00