Skip to content

Commit b4a90cf

Browse files
committed
Remove axios
This patch removes the axios JavaScript library and replaces it with calls to JavaScript's `fetch()` which works quite similar and needs basically the same amount of code.
1 parent 613d4f0 commit b4a90cf

File tree

5 files changed

+88
-3314
lines changed

5 files changed

+88
-3314
lines changed

.github/selenium-tests

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from selenium.webdriver.support import expected_conditions
88
from selenium.webdriver.common.by import By
99

1010

11-
BASE_URL = 'http://admin:opencast@127.0.0.1:5000'
11+
BASE_URL = 'http://127.0.0.1:5000'
1212

1313
driver = None
1414

@@ -30,14 +30,14 @@ def check_pyca():
3030
print('✓')
3131

3232
print('%-30s' % 'Testing FontAwesome…', end='')
33-
wait_for(driver, (By.CSS_SELECTOR, 'span.action'), timeout=0.2)
33+
wait_for(driver, (By.CSS_SELECTOR, 'span.action'), timeout=5)
3434
elem = driver.find_elements(By.CSS_SELECTOR, 'span.action svg')[0]
3535
assert elem.get_attribute('role') == 'img'
3636
print('✓')
3737

3838
print('%-30s' % 'Testing recordings table…', end='')
3939
selector = '#recordings tbody tr'
40-
wait_for(driver, (By.CSS_SELECTOR, selector), timeout=0.2)
40+
wait_for(driver, (By.CSS_SELECTOR, selector), timeout=5)
4141
recording_rows = driver.find_elements(By.CSS_SELECTOR, selector)
4242
assert len(recording_rows) == 4
4343
print('✓')

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
- name: run test
4848
run: make test
4949

50+
- name: no auth for selenium tests
51+
run: sed -i 's/#password *= .*$/password = ""/' etc/pyca.conf
52+
5053
- name: start user interface
5154
run: |
5255
gunzip .github/test.db.gz

0 commit comments

Comments
 (0)