public/dom
Louis TOUSSAINT 9a849f359c Tests(DPxAI): upload test for quest02 first-hello 2024-08-30 14:50:29 +01: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
call-it_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 2024-07-23 10:16:38 +01:00
class-it_test.js Test(DPxAI): Test for Quest00/Ex04 2024-07-23 11:41:29 +01:00
class-that_test.js Test for class-that 2021-03-03 01:47:51 +00:00
colorful-arms_test.js Tests(DPxAI): upload test for quest02 colorful-arms 2024-08-30 14:07:09 +01:00
colorful-legs_test.js Tests(DPxAI): update test for quest02 colorful-legs 2024-08-30 14:49:59 +01:00
embedded-organs_test.js tests(DPxAI): duplicated the test for embedded organs 2024-07-23 10:34:26 +01: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-hello_test.js Tests(DPxAI): upload test for quest02 first-hello 2024-08-30 14:50:29 +01:00
first-move_test.js Chore(DPxAI): removed the link check 2024-07-29 08:57:38 +01:00
first-wink_test.js Tests(DPxAI): upload test for quest02 first-wink 2024-08-30 14:49:19 +01: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
select-then-style_test.js Chore(DPxAI): fixed the test for select-then-style 2024-07-23 10:22:12 +01:00
skeleton_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 2024-07-23 10:16:38 +01: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 test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 2024-07-23 10:16:38 +01:00
the-skeleton_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 2024-07-23 10:16:38 +01: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