- 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:
Aditya Toshniwal
2024-07-04 18:25:47 +05:30
committed by GitHub
parent 10b2e91e29
commit dcfef154ce
21 changed files with 266 additions and 233 deletions

View File

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

View File

@@ -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>;
};

View File

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