File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,11 @@ jobs:
297297 python ${{ env.BUILD_PREFIX }}/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
298298 echo "Running test_xeus_cpp in Google Chrome"
299299 python ${{ env.BUILD_PREFIX }}/bin/emrun.py --browser="Google Chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
300+ sudo safaridriver --enable
301+ python -m pip install selenium
302+ echo "Running test_xeus_cpp in Safari"
303+ emrun --no_browser --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html &
304+ python browser_tests_safari.py test_xeus_cpp.html
300305 else
301306 # Install Google Chrome
302307 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Original file line number Diff line number Diff line change 1+ import sys
2+ import time
3+ from selenium import webdriver
4+
5+ driver = webdriver .Safari ()
6+ driver .get ("http://localhost:6931/" + sys .argv [1 ])
7+
8+ time .sleep (60 )
9+ driver .quit ()
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ set(XEUS_CPP_TESTS
5151add_executable (test_xeus_cpp ${XEUS_CPP_TESTS} )
5252
5353if (EMSCRIPTEN)
54+ file (COPY ${CMAKE_SOURCE_DIR} /scripts/browser_tests_safari.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
5455 target_link_libraries (test_xeus_cpp PRIVATE xeus-cpp-static doctest::doctest)
5556
5657 target_compile_options (test_xeus_cpp
You can’t perform that action at this time.
0 commit comments