Skip to content

Commit f483121

Browse files
authored
Merge branch 'master' into master
2 parents 50ca9fc + 7136938 commit f483121

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/productionintegration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19+
1920
pip install requests nose2
2021
- name: Test with Selenium
2122
run: |
@@ -56,4 +57,3 @@ jobs:
5657
# - name: Test with Selenium
5758
# run: |
5859
# cd test-production-integration && export SERVER_URL="http://dorresteintesthub.ucsd.edu:5005" && nose2 -v test_selenium && cd ..
59-

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ To simulate selenium and production integration tests:
4444
1. Check that graphs in Chemical Explorer are functional, available after clicking an example chemical's 'view assocations' button. (e.g. ```/compoundenrichmentdashboard?compound=Spectral%20Match%20to%20Sulfachloropyridazine%20from%20NIST14```)
4545
1. Test all buttons to ensure links are correct.
4646

47+
4748
## Updating ReDU Data Procedure
4849

4950
One of the key steps in ReDU is the updating of the database to include the latest identifications for files within ReDU. These are the following steps:

test-production-integration/test_selenium.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
from selenium.webdriver.common.by import By
55
from selenium.webdriver.common.action_chains import ActionChains
66
from selenium.webdriver.support import expected_conditions as EC
7+
78
from selenium.webdriver.support.ui import WebDriverWait
9+
10+
811
from selenium.webdriver.common.keys import Keys
912
import unittest, time, re
1013
import os
@@ -14,20 +17,23 @@
1417
SERVER_URL = os.environ.get("SERVER_URL", "https://redu.ucsd.edu")
1518

1619
class TestInterfaceready(unittest.TestCase):
20+
1721
def setUp(self):
1822
chrome_options = webdriver.ChromeOptions()
1923
chrome_options.add_argument('--no-sandbox')
2024
chrome_options.add_argument('--window-size=1420,1080')
2125
chrome_options.add_argument('--headless')
2226
self.driver = webdriver.Chrome(options=chrome_options)
2327
self.driver.implicitly_wait(30)
28+
2429

2530
def tearDown(self):
2631
self.driver.quit()
2732

2833
def test_compound_enrichment(self):
2934
#going to the page
3035
url = "{}/compoundenrichmentdashboard?compound=ESCITALOPRAM%20OXALATE".format(SERVER_URL)
36+
3137

3238
self.driver.get(url)
3339
time.sleep(1)
@@ -37,6 +43,7 @@ def test_compound_enrichment(self):
3743
wait.until(EC.visibility_of_element_located((By.ID,'querycompound')))
3844
#clicking the button
3945
python_button = self.driver.find_element_by_id('querycompound')
46+
4047
python_button.click()
4148

4249
try:

0 commit comments

Comments
 (0)