Skip to content

Commit d43b83e

Browse files
committed
some fixes
1 parent 9c3a17f commit d43b83e

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

tests/e2e/src/helpers/common-actions/DatabasesActions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TreeView } from '@e2eSrc/page-objects/components'
1111
import { InnerViews } from '@e2eSrc/page-objects/components/WebView'
1212
import { AddNewDatabaseParameters } from '../types/types'
1313
import { DatabaseAPIRequests } from '../api'
14-
import { NotificationActions } from './actions'
14+
import { InputActions, NotificationActions } from './actions'
1515
import { KeyDetailsActions } from './KeyDetailsActions'
1616
import { ServerActions } from './ServerActions'
1717
import { Eula } from '../api/Eula'
@@ -85,6 +85,7 @@ export class DatabasesActions extends CommonDriverExtension {
8585
await treeView.clickDatabaseByName(databaseParameters.databaseName!)
8686
await super.driverSleep(200)
8787
}
88+
await InputActions.hoverElement(treeView.getCLIDatabaseBtnByName(databaseParameters.databaseName!),1000)
8889
}
8990

9091
/**
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
import { By } from 'selenium-webdriver'
22
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'
49

510
/**
611
* Settings view
712
*/
813
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+
)
1120
delimiterInput = By.xpath(`//input[@data-testid='input-delimiter']`)
1221

1322
/**
@@ -17,4 +26,12 @@ export class SettingsView extends WebView {
1726
const switcherElement = await super.getElement(this.switchAnalyticsOption)
1827
return await CheckboxActions.getCheckboxState(switcherElement)
1928
}
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+
}
2037
}

tests/e2e/src/tests/settings/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe('Settings', () => {
3434
// Go to Settings page
3535
await ButtonActions.clickElement(treeView.settingsButton)
3636
await settingsView.switchToInnerViewFrame(InnerViews.SettingsInnerView)
37+
await settingsView.setDelimiterDefaultValue()
3738
})
3839
beforeEach(async () => {
3940
await treeView.switchBack()

0 commit comments

Comments
 (0)