Skip to content

Commit

Permalink
ci(#8): add automatic critical path test
Browse files Browse the repository at this point in the history
closes #8
  • Loading branch information
billmetangmo committed Sep 19, 2023
1 parent 7004b32 commit 6cd2eca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Test critical path of the app
on:
# schedule:
# - cron: '00 00 * * *'
push:
schedule:
- cron: '00 00 * * *'

jobs:
critical-path_test:
Expand Down
9 changes: 3 additions & 6 deletions test/lifeline.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# Generated by Selenium IDE
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
import time

class TestAppointmenttest():

def setup_method(self, method):
chrome_options = Options()
#chrome_options.binary_location=r'C:\Users\metbi\.local\bin\chrome-win64\Chrome.exe'
#chrome_options.add_argument("--verbose")
#chrome_options.add_argument('--headless')
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
self.driver = webdriver.Chrome(options=chrome_options)
self.vars = {}

def teardown_method(self, method):
self.driver.quit()
Expand Down
2 changes: 1 addition & 1 deletion test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
selenium==3.141.0
selenium==4.9.0
pytest==7.1.1

0 comments on commit 6cd2eca

Please sign in to comment.