You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Louis TOUSSAINT 9a849f359c Tests(DPxAI): upload test for quest02 first-hello 3 months ago
..
Dockerfile dom: update puppeteer version 4 years ago
README.md add instructions to run tests locally for DOM & JS 4 years ago
action-reaction_test.js action-reaction: update test 4 years ago
bring-it-to-life_test.js Test for bring-it-to-life 4 years ago
build-brick-and-break_test.js build-brick-and-break: change files naming & replace deprecated method waitFor in the test 4 years ago
call-it_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 4 months ago
class-it_test.js Test(DPxAI): Test for Quest00/Ex04 4 months ago
class-that_test.js Test for class-that 4 years ago
colorful-arms_test.js Tests(DPxAI): upload test for quest02 colorful-arms 3 months ago
colorful-legs_test.js Tests(DPxAI): update test for quest02 colorful-legs 3 months ago
embedded-organs_test.js tests(DPxAI): duplicated the test for embedded organs 4 months ago
entrypoint.sh changed permissions to executable 4 years ago
fifty-shades-of-cold_test.js fix(fifty-shades-of-cold): improve test 2 years ago
first-hello_test.js Tests(DPxAI): upload test for quest02 first-hello 3 months ago
first-move_test.js Chore(DPxAI): removed the link check 4 months ago
first-wink_test.js Tests(DPxAI): upload test for quest02 first-wink 3 months ago
first-words_test.js Test for first-words 4 years ago
get-them-all_test.js get-them-all: remove deprecated waitFor methods & changed the file name for the data file 4 years ago
gossip-grid_test.js gossip-grid: change files naming 4 years ago
harder-bigger-bolder-stronger_test.js add entrypoint and Dockerfile and rename 4 years ago
keycodes-symphony_test.js keycodes-symphony: fix test which was checking property `background` instead of `background-color` 4 years ago
mouse-trap_test.js Fixed the test of `mouse-trap` + made the instructions more strict. (#609) 4 years ago
nesting-organs_test.js Update test for nesting-organs 4 years ago
package.json fix docker image. update tester to work with docker image remove and solutions 4 years ago
pick-and-click_test.js Fixing the pick-and-clik test 3 years ago
pimp-my-style_test.js pimp-my-style: changed file naming 4 years ago
select-and-style_test.js select-and-style: test and review 4 years ago
select-then-style_test.js Chore(DPxAI): fixed the test for select-then-style 4 months ago
skeleton_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 4 months ago
subjects add entrypoint and Dockerfile and rename 4 years ago
test.js dom test: changed the path to look for the exercise name instead of index for HTML files 4 years ago
the-calling_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 4 months ago
the-skeleton_test.js test(DPxAI:Quest00/Ex01): Duplicating the tests instead of overriding the existing ones: the-skelton and call-it 4 months ago
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) 4 years ago
yarn.lock add entrypoint and Dockerfile and rename 4 years ago

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