- 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:
Aditya Toshniwal
2023-01-02 10:51:13 +05:30
committed by GitHub
parent 64af035ce9
commit 5c34c10d4e
23 changed files with 1588 additions and 406 deletions

View File

@@ -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)