Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
burak-58 committed Dec 12, 2024
1 parent 0914bdd commit 8a357db
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test_join_leave.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,10 @@ def test_camera_mic_setting_in_waiting_room(self):

self.chrome.save_ss_as_file("test_camera_mic_setting_in_waiting_room-1.png")


mic = self.chrome.get_element_with_retry(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]")
self.chrome.mouse_click_on(mic)
#TODO: sometimes audio input 2 is not available, check it.
if self.chrome.is_element_exist(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]"):
mic = self.chrome.get_element_with_retry(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]")
self.chrome.mouse_click_on(mic)

close_button = self.chrome.get_element_with_retry(By.CSS_SELECTOR, "button[aria-label='close']")
close_button.click()
Expand Down Expand Up @@ -1528,8 +1529,9 @@ def test_camera_mic_setting_in_meeting_room(self):

self.chrome.save_ss_as_file("test_camera_mic_setting_in_meeting_room-1.png")

mic = self.chrome.get_element_with_retry(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]")
self.chrome.mouse_click_on(mic)
if self.chrome.is_element_exist(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]"):
mic = self.chrome.get_element_with_retry(By.XPATH, "//li[contains(text(), 'Fake Audio Input 2')]")
self.chrome.mouse_click_on(mic)

close_button = self.chrome.get_element_with_retry(By.CSS_SELECTOR, "button[aria-label='close']")
close_button.click()
Expand Down

0 comments on commit 8a357db

Please sign in to comment.