mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
- Set the browser target to ES6 and reduce the JS bundle size considerably
- Upgrade ESLint to v9.x and migrate the .eslintrc.js file to make it work
This commit is contained in:
@@ -65,15 +65,23 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest):
|
||||
function_node.click()
|
||||
|
||||
def _debug_function(self):
|
||||
wait = WebDriverWait(self.page.driver, 2)
|
||||
self.page.driver.find_element(By.CSS_SELECTOR,
|
||||
NavMenuLocators.object_menu_css).click()
|
||||
wait.until(EC.presence_of_element_located(
|
||||
(By.CSS_SELECTOR, "div[data-label='Debugging']")))
|
||||
|
||||
ActionChains(
|
||||
self.page.driver
|
||||
).move_to_element(
|
||||
self.page.driver.find_element(
|
||||
By.CSS_SELECTOR, "div[data-label='Debugging']")
|
||||
).perform()
|
||||
time.sleep(2)
|
||||
|
||||
# time.sleep(2)
|
||||
wait.until(EC.presence_of_element_located(
|
||||
(By.CSS_SELECTOR, "li[data-label='Debug']")))
|
||||
|
||||
self.page.driver.find_element(
|
||||
By.CSS_SELECTOR, "li[data-label='Debug']").click()
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import React from 'react';
|
||||
import Theme from 'sources/Theme';
|
||||
|
||||
export function withTheme(WrappedComp) {
|
||||
// eslint-disable-next-line react/display-name
|
||||
return (props)=>{
|
||||
return <Theme><WrappedComp {...props}/></Theme>;
|
||||
};
|
||||
|
||||
@@ -18,7 +18,6 @@ import { act, render } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
|
||||
export function withBrowser(WrappedComp) {
|
||||
// eslint-disable-next-line react/display-name
|
||||
return (props)=>{
|
||||
return <Theme>
|
||||
<PgAdminContext.Provider value={fakePgAdmin}>
|
||||
|
||||
Reference in New Issue
Block a user