mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Clarify which shortcut is being tested in the shortcut test.
This commit is contained in:
parent
05e91044c7
commit
bcb6f37d6f
@ -7,9 +7,10 @@
|
|||||||
#
|
#
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
import os
|
from __future__ import print_function
|
||||||
import json
|
|
||||||
import time
|
import time
|
||||||
|
import sys
|
||||||
|
|
||||||
from selenium.webdriver.support.ui import WebDriverWait
|
from selenium.webdriver.support.ui import WebDriverWait
|
||||||
from selenium.webdriver.support import expected_conditions as EC
|
from selenium.webdriver.support import expected_conditions as EC
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
@ -64,6 +65,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
|
|||||||
Keys.ALT
|
Keys.ALT
|
||||||
).perform()
|
).perform()
|
||||||
|
|
||||||
|
print("Executing shortcut: " + self.new_shortcuts[s]['locator'] + "...", file=sys.stderr, end="")
|
||||||
|
|
||||||
self.wait.until(
|
self.wait.until(
|
||||||
EC.presence_of_element_located(
|
EC.presence_of_element_located(
|
||||||
(By.XPATH, "//li[contains(@id, " +
|
(By.XPATH, "//li[contains(@id, " +
|
||||||
@ -76,6 +79,8 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
|
|||||||
|
|
||||||
assert is_open is True, "Keyboard shortcut change is unsuccessful."
|
assert is_open is True, "Keyboard shortcut change is unsuccessful."
|
||||||
|
|
||||||
|
print("OK", file=sys.stderr)
|
||||||
|
|
||||||
def _update_preferences(self):
|
def _update_preferences(self):
|
||||||
self.page.find_by_id("mnu_file").click()
|
self.page.find_by_id("mnu_file").click()
|
||||||
self.page.find_by_id("mnu_preferences").click()
|
self.page.find_by_id("mnu_preferences").click()
|
||||||
|
Loading…
Reference in New Issue
Block a user