Skip to content

Commit 6d4f85c

Browse files
Fixed feature test failure and updated docs
1 parent b0acf34 commit 6d4f85c

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

14.4 KB
Loading

docs/en_US/preferences.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@ preferences for copied data.
542542
setting won't have any effect.
543543
* Specify the number of records to fetch in one batch. Changing this value will
544544
override DATA_RESULT_ROWS_PER_PAGE setting from config file.
545+
* Use the *Max column data display length* to specify the maximum number of
546+
characters to display in a cell. If the data is larger than this value, it
547+
will be truncated.
545548
* Use the *Result copy field separator* drop-down listbox to select the field
546549
separator for copied data.
547550
* Use the *Result copy quote character* drop-down listbox to select the quote

web/regression/feature_tests/view_data_dml_queries.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _perform_test_for_table(self, table_name, config_data_local):
157157
table_node = self.page.check_if_element_exists_with_scroll(
158158
TreeAreaLocators.table_node(table_name))
159159
table_node.click()
160-
160+
time.sleep(1)
161161
# Open Object -> View/Edit data
162162
self._view_data_grid(table_name)
163163

@@ -288,14 +288,17 @@ def _update_json_cell(self, value):
288288
else:
289289
key_to_press = Keys.CONTROL
290290
try:
291-
WebDriverWait(self.driver, 3).until(
292-
EC.visibility_of_element_located(
293-
(By.CSS_SELECTOR,
294-
QueryToolLocators.json_editor_text_area_css)))
291+
json_editor = self.page.find_by_css_selector(
292+
QueryToolLocators.json_editor_text_area_css)
293+
json_editor.click()
294+
295295
actions = ActionChains(self.driver)
296296
actions.key_down(key_to_press).send_keys('a').\
297297
key_up(key_to_press).send_keys(Keys.DELETE).perform()
298298
actions.send_keys(value).perform()
299+
300+
time.sleep(0.5)
301+
299302
# Click on editor's Save button
300303
self.page.find_by_css_selector(
301304
QueryToolLocators.text_editor_ok_btn_css).click()

web/regression/feature_utils/locators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class QueryToolLocators:
207207
row_editor_text_area_css = "div[data-label='pg-editor'] textarea"
208208

209209
json_editor_text_area_css = \
210-
"div.ace_layer.ace_text-layer .ace_line_group .ace_line"
210+
"div.jsoneditor-div .jse-contents .cm-editor .cm-content"
211211

212212
row_editor_checkbox_css = "div[data-label='pg-checkbox-editor']"
213213

0 commit comments

Comments
 (0)