Run the selenium automation tests from C, so that they all run in once place, and because I get better errors for some reason. Fix more issues along the way.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4847 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-02-16 00:47:54 +00:00
parent 08a2436b8f
commit aeb5c6ee25
5 changed files with 82 additions and 14 deletions

View File

@ -10,13 +10,6 @@ import subprocess
import sys
import time
for path in ('out/selenium.sqlite', 'out/selenium.sqlite-shm', 'out/selenium.sqlite-wal'):
try:
os.unlink(path)
except:
pass
tf = subprocess.Popen(['out/debug/tildefriends', 'run', '-d', 'out/selenium.sqlite', '-b', '0', '-p', '8888'] + sys.argv[1:])
def exists_in_shadow_root(shadow_root, by, value):
return lambda driver: shadow_root.find_element(by, value)
@ -165,8 +158,6 @@ finally:
driver.close()
driver.quit()
tf.terminate()
if success:
print('\033[92mTEST SUCCEEDED.\033[0m')
else: