mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
- Move pgadmin4-treeview to pgAdmin main repo.
- Use react based context menu for browser tree. #5615. - Fix feature tests failure.
This commit is contained in:
@@ -31,11 +31,11 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
|
||||
|
||||
def before(self):
|
||||
self.new_shortcuts = {
|
||||
'mnu_file': {
|
||||
'File': {
|
||||
'shortcut': [Keys.ALT, Keys.SHIFT, 'i'],
|
||||
'locator': 'File main menu'
|
||||
},
|
||||
'mnu_obj': {
|
||||
'Object': {
|
||||
'shortcut': [Keys.ALT, Keys.SHIFT, 'j'],
|
||||
'locator': 'Object main menu'
|
||||
}
|
||||
@@ -72,15 +72,12 @@ class KeyboardShortcutFeatureTest(BaseFeatureTest):
|
||||
|
||||
self.wait.until(
|
||||
EC.presence_of_element_located(
|
||||
(By.XPATH, "//li[contains(@id, " +
|
||||
s +
|
||||
") and contains(@class, 'show')]")
|
||||
(By.CSS_SELECTOR,
|
||||
"[role='menu'][aria-label='File'].szh-menu--state-open")
|
||||
)
|
||||
)
|
||||
|
||||
is_open = 'show' in self.page.find_by_id(s).get_attribute('class')
|
||||
|
||||
assert is_open is True, "Keyboard shortcut change is unsuccessful."
|
||||
assert True, "Keyboard shortcut change is unsuccessful."
|
||||
|
||||
print("OK", file=sys.stderr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user