Skip to content

Commit

Permalink
Refactor classifications form to use rjsf (skyportal#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmshin1397 authored Dec 3, 2020
1 parent f81313f commit 405cdfd
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 207 deletions.
11 changes: 7 additions & 4 deletions skyportal/tests/frontend/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,20 @@ def test_classifications(driver, user, taxonomy_token, public_group, public_sour
driver.get(f"/become_user/{user.id}")
driver.get(f"/source/{public_source.id}")
driver.wait_for_xpath(f'//div[text()="{public_source.id}"]')
driver.click_xpath('//div[@id="tax-select"]')
driver.click_xpath('//div[@id="root_taxonomy"]')
driver.click_xpath(
f'//*[text()="{tax_name} ({tax_version})"]',
wait_clickable=False,
scroll_parent=True,
)
driver.click_xpath('//*[@id="classification"]')
driver.wait_for_xpath('//*[@id="classification"]').send_keys(
"Symmetrical", Keys.ENTER
driver.click_xpath('//li[contains(@data-value, "Symmetrical")]', scroll_parent=True)
driver.click_xpath('//*[@id="probability"]')
driver.wait_for_xpath('//*[@id="probability"]').send_keys("1", Keys.ENTER)
driver.click_xpath(
"//*[@id='classifications-content']//span[text()='Submit']",
wait_clickable=False,
)
driver.click_xpath("//*[@id='classificationSubmitButton']")
# Notification
driver.wait_for_xpath("//*[text()='Classification saved']")

Expand Down
6 changes: 0 additions & 6 deletions static/js/components/ClassificationForm.css

This file was deleted.

Loading

0 comments on commit 405cdfd

Please sign in to comment.