Skip to content

Commit

Permalink
clean unnecessary ActionChain for clicking save button
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Dec 25, 2023
1 parent 4b052ca commit 66a02ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import pytest
import requests
from imageio.v3 import imread
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.remote.webelement import WebElement
Expand Down Expand Up @@ -362,12 +361,7 @@ def test_widget_answer(self, selenium_driver):
#
WebDriverWait(driver, 1).until(
expected_conditions.element_to_be_clickable(save_button)
)
WebDriverWait(driver, 1).until(
expected_conditions.element_to_be_clickable(save_button)
)
# save button is hidden so we use actions to click
ActionChains(driver).move_to_element(save_button).click(save_button).perform()
).click()
# wait for uncued box
cue_box = nb_cell.find_element(By.CLASS_NAME, cue_box_class_name("save", False))
assert "--cued" not in cue_box.get_attribute("class")
Expand Down

0 comments on commit 66a02ac

Please sign in to comment.