Skip to content

Commit

Permalink
copy mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfe1 committed Nov 4, 2020
1 parent a613956 commit 6bf752d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Desktop/test_desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,14 @@ def test_select_elements_from_menu_no_desktop(self):
def test_select_elements_from_context_menu_retry_desktop(self):
mock_desk = MagicMock()
mock_desk.mouse_over_and_context_click_element = MagicMock(side_effect=[NoSuchElementException, True, True])
DesktopLibrary.select_elements_from_menu(mock_desk, 'some_locator', 'another_locator')
DesktopLibrary.select_elements_from_context_menu(mock_desk, 'some_locator', 'another_locator')
mock_desk.click_element.mouse_over_and_context_click('some_locator')
mock_desk.click_element.assert_called_with('another_locator')

def test_select_elements_from_context_menu_retry_desktop_2(self):
mock_desk = MagicMock()
mock_desk.mouse_over_and_context_click_element = MagicMock(side_effect=[NoSuchElementException, NoSuchElementException, True, True])
DesktopLibrary.select_elements_from_menu(mock_desk, 'some_locator', 'another_locator')
DesktopLibrary.select_elements_from_context_menu(mock_desk, 'some_locator', 'another_locator')
mock_desk.click_element.mouse_over_and_context_click('some_locator')
mock_desk.click_element.assert_called_with('another_locator')

Expand Down

0 comments on commit 6bf752d

Please sign in to comment.