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:
297
297
python ${{ env.BUILD_PREFIX }}/bin/emrun.py --browser="firefox" --kill_exit --timeout 60 --browser-args="--headless" test_xeus_cpp.html
298
298
echo "Running test_xeus_cpp in Google Chrome"
299
299
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
300
305
else
301
306
# Install Google Chrome
302
307
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
51
51
add_executable (test_xeus_cpp ${XEUS_CPP_TESTS} )
52
52
53
53
if (EMSCRIPTEN )
54
+ file (COPY ${CMAKE_SOURCE_DIR} /scripts/browser_tests_safari.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
54
55
target_link_libraries (test_xeus_cpp PRIVATE xeus-cpp-static doctest::doctest )
55
56
56
57
target_compile_options (test_xeus_cpp
You can’t perform that action at this time.
0 commit comments