public/dom
nprimo 73aa9b5f49 fix(fifty-shades-of-cold): improve test
fix test that was failing correct solution
2023-03-15 12:43:15 +00:00
..
Dockerfile dom: update puppeteer version 2021-03-03 16:45:26 +01:00
README.md add instructions to run tests locally for DOM & JS 2021-03-03 11:18:38 +00:00
action-reaction_test.js action-reaction: update test 2021-03-11 02:50:30 +00:00
bring-it-to-life_test.js Test for bring-it-to-life 2021-03-03 01:47:51 +00:00
build-brick-and-break_test.js build-brick-and-break: change files naming & replace deprecated method waitFor in the test 2021-03-11 02:50:30 +00:00
class-that_test.js Test for class-that 2021-03-03 01:47:51 +00:00
entrypoint.sh changed permissions to executable 2020-11-13 10:19:06 +00:00
fifty-shades-of-cold_test.js fix(fifty-shades-of-cold): improve test 2023-03-15 12:43:15 +00:00
first-words_test.js Test for first-words 2021-03-03 01:47:51 +00:00
get-them-all_test.js get-them-all: remove deprecated waitFor methods & changed the file name for the data file 2021-03-11 02:50:30 +00:00
gossip-grid_test.js gossip-grid: change files naming 2021-03-11 02:50:30 +00:00
harder-bigger-bolder-stronger_test.js add entrypoint and Dockerfile and rename 2020-06-17 22:38:28 +02:00
keycodes-symphony_test.js keycodes-symphony: fix test which was checking property `background` instead of `background-color` 2021-03-11 02:50:30 +00:00
mouse-trap_test.js Fixed the test of `mouse-trap` + made the instructions more strict. (#609) 2020-06-18 12:46:29 +01:00
nesting-organs_test.js Update test for nesting-organs 2021-03-03 01:47:51 +00:00
package.json fix docker image. update tester to work with docker image remove and solutions 2020-06-17 22:38:28 +02:00
pick-and-click_test.js Fixing the pick-and-clik test 2022-04-07 09:56:45 +01:00
pimp-my-style_test.js pimp-my-style: changed file naming 2021-03-11 02:50:30 +00:00
select-and-style_test.js select-and-style: test and review 2021-03-03 01:47:51 +00:00
skeleton_test.js skeleton: test and review 2021-03-03 01:47:51 +00:00
subjects add entrypoint and Dockerfile and rename 2020-06-17 22:38:28 +02:00
test.js dom test: changed the path to look for the exercise name instead of index for HTML files 2021-03-11 02:50:30 +00:00
the-calling_test.js the-calling: test and review 2021-03-03 01:47:51 +00:00
where-do-we-go_test.js where-do-we-go: change files naming & fix test (replace deprecated waitFor method and get the width and height of the window) 2021-03-11 02:50:30 +00:00
yarn.lock add entrypoint and Dockerfile and rename 2020-06-17 22:38:28 +02:00

README.md

DOM

Tests that use puppeteer to do browser side exercises

Run test locally

Installation

You need node version 14+

# Clone the repo
git clone https://github.com/01-edu/public.git

# go into the dom directory
cd public/dom

# install puppeteer
npm i puppeteer

Executing a test

# run a test
SOLUTION_PATH=/user/you/piscine-repo node test.js exercise-name

The SOLUTION_PATH is the directory where the test should look for your solution, usualy your piscine repository.

The exercise-name argument should match exactly the name of an exercise, not including .js