Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/pageObjects/browser-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class BrowserPage extends InstancePage {
progressLine = Selector('div.euiProgress');
progressKeyList = Selector('[data-testid=progress-key-list]');
jsonScalarValue = Selector('[data-testid=json-scalar-value]');
noKeysToDisplayText = Selector('[data-testid=no-keys-selected-text]');
noKeysToDisplayText = Selector('[data-testid=no-result-found-msg]');
streamEntryColumns = Selector(this.streamEntriesContainer.find('[aria-colcount]'));
streamEntryRows = Selector(this.streamEntriesContainer.find('[aria-rowcount]'));
streamEntryDate = Selector('[data-testid*=-date][data-testid*=stream-entry]');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ export class TriggersAndFunctionsLibrariesPage extends InstancePage {
*/
async sendTextToMonaco(input: MonacoEditorInputs, commandPart1: string, commandPart2?: string): Promise<void> {
const inputSelector = Selector(this.inputMonaco.replace(/\$name/g, input));

await t.click(inputSelector);
await t
// remove text since replace doesn't work here
.pressKey('ctrl+a')
.pressKey('delete')
.typeText(inputSelector, commandPart1);
.pressKey('delete');
await t.typeText(inputSelector, commandPart1);
if (commandPart2) {
await t.pressKey('enter')
.typeText(inputSelector, commandPart2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import { KeyTypesTexts, rte } from '../../../helpers/constants';
import { DatabaseAPIRequests } from '../../../helpers/api/api-database';
import { Common } from '../../../helpers/common';
import { verifyKeysDisplayedInTheList, verifyKeysNotDisplayedInTheList } from '../../../helpers/keys';
import { APIKeyRequests } from '../../../helpers/api/api-keys';

const browserPage = new BrowserPage();
const databaseHelper = new DatabaseHelper();
const databaseAPIRequests = new DatabaseAPIRequests();
const apiKeyRequests = new APIKeyRequests();

let keyNames: string[];
let keyName1: string;
Expand Down Expand Up @@ -152,7 +154,9 @@ test
})
.after(async() => {
await t.click(browserPage.patternModeBtn);
await browserPage.deleteKeysByNames(keyNames.slice(1));
for (const element of keyNames.slice(1)) {
await apiKeyRequests.deleteKeyByNameApi(element, ossStandaloneConfig.databaseName);
}
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfig);
})('Search capability Refreshed Tree view preselected folder', async t => {
keyName1 = Common.generateWord(10);
Expand Down
5 changes: 4 additions & 1 deletion tests/e2e/tests/regression/browser/full-screen.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ test
const widthAfterExitFullScreen = await browserPage.keyDetailsTable.clientWidth;
await t.expect(widthAfterExitFullScreen).lt(widthAfterFullScreen, 'Width after switching from full screen not less then before');
});
test('Verify that when no keys are selected user can click on "Close" control for right table and see key list in full screen', async t => {
test.before(async() => {
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfig);
await browserPage.Cli.sendCommandInCli('flushdb');
})('Verify that when no keys are selected user can click on "Close" control for right table and see key list in full screen', async t => {
// Verify that user sees two panels(key list and empty details panel) opening Browser page for the first time
await t.expect(browserPage.noKeysToDisplayText.visible).ok('No keys selected panel not displayed');
// Save key table size before switching to full screen
Expand Down