File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
page-objects/components/editor-view Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { TreeView } from '@e2eSrc/page-objects/components'
11
11
import { InnerViews } from '@e2eSrc/page-objects/components/WebView'
12
12
import { AddNewDatabaseParameters } from '../types/types'
13
13
import { DatabaseAPIRequests } from '../api'
14
- import { NotificationActions } from './actions'
14
+ import { InputActions , NotificationActions } from './actions'
15
15
import { KeyDetailsActions } from './KeyDetailsActions'
16
16
import { ServerActions } from './ServerActions'
17
17
import { Eula } from '../api/Eula'
@@ -85,6 +85,7 @@ export class DatabasesActions extends CommonDriverExtension {
85
85
await treeView . clickDatabaseByName ( databaseParameters . databaseName ! )
86
86
await super . driverSleep ( 200 )
87
87
}
88
+ await InputActions . hoverElement ( treeView . getCLIDatabaseBtnByName ( databaseParameters . databaseName ! ) , 1000 )
88
89
}
89
90
90
91
/**
Original file line number Diff line number Diff line change 1
1
import { By } from 'selenium-webdriver'
2
2
import { WebView } from '@e2eSrc/page-objects/components/WebView'
3
- import { CheckboxActions } from '@e2eSrc/helpers/common-actions'
3
+ import {
4
+ ButtonActions ,
5
+ CheckboxActions ,
6
+ InputActions ,
7
+ } from '@e2eSrc/helpers/common-actions'
8
+ import { InputWithButtons } from '../common/InputWithButtons'
4
9
5
10
/**
6
11
* Settings view
7
12
*/
8
13
export class SettingsView extends WebView {
9
- switchAnalyticsOption = By . xpath ( `//*[@data-testid='check-option-analytics']/..` )
10
- switchAnalyticsCheckbox = By . xpath ( `//input[@data-testid='check-option-analytics']/../../div[contains(@class, 'checkmarkContainer')]` )
14
+ switchAnalyticsOption = By . xpath (
15
+ `//*[@data-testid='check-option-analytics']/..` ,
16
+ )
17
+ switchAnalyticsCheckbox = By . xpath (
18
+ `//input[@data-testid='check-option-analytics']/../../div[contains(@class, 'checkmarkContainer')]` ,
19
+ )
11
20
delimiterInput = By . xpath ( `//input[@data-testid='input-delimiter']` )
12
21
13
22
/**
@@ -17,4 +26,12 @@ export class SettingsView extends WebView {
17
26
const switcherElement = await super . getElement ( this . switchAnalyticsOption )
18
27
return await CheckboxActions . getCheckboxState ( switcherElement )
19
28
}
29
+
30
+ /**
31
+ * Set delimiter default value
32
+ */
33
+ async setDelimiterDefaultValue ( ) : Promise < void > {
34
+ await InputActions . slowType ( this . delimiterInput , ':' )
35
+ await ButtonActions . clickElement ( InputWithButtons . applyInput )
36
+ }
20
37
}
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ describe('Settings', () => {
34
34
// Go to Settings page
35
35
await ButtonActions . clickElement ( treeView . settingsButton )
36
36
await settingsView . switchToInnerViewFrame ( InnerViews . SettingsInnerView )
37
+ await settingsView . setDelimiterDefaultValue ( )
37
38
} )
38
39
beforeEach ( async ( ) => {
39
40
await treeView . switchBack ( )
You can’t perform that action at this time.
0 commit comments