Skip to content

Commit 9858166

Browse files
committed
fix for api and remove button
1 parent 7448652 commit 9858166

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

tests/e2e/src/helpers/api/KeyApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export class KeyAPIRequests {
148148
const databaseId =
149149
await DatabaseAPIRequests.getDatabaseIdByName(databaseName)
150150
const requestBody = {
151+
destination: "TAIL",
151152
keyName: Buffer.from(keyParameters.keyName, 'utf-8'),
152153
elements: keyParameters.element.map(el => Buffer.from(el, 'utf-8'))
153154
}

tests/e2e/src/page-objects/components/editor-view/KeyDetailsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class KeyDetailsView extends WebView {
3737
`//vscode-button[starts-with(@data-testid, 'copy-name-button')]`,
3838
)
3939
detailsDeleteKeyButton = By.xpath(
40-
`//vscode-button[starts-with(@data-testid, 'remove-key-')]`,
40+
`//button[starts-with(@data-testid, 'remove-key-')]`,
4141
)
4242
submitDetailsDeleteKeyButton = By.xpath(
4343
`//div[@class='popup-content ']//vscode-button[starts-with(@data-testid, 'remove-key-')]`,

tests/e2e/src/page-objects/components/tree-view/TreeView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TreeView extends WebView {
2727
`//a[@aria-label='Open Redis for VS Code settings']`,
2828
)
2929
deleteKeyInListBtn = By.xpath(
30-
`//vscode-button[starts-with(@data-testid, 'remove-key-')]`,
30+
`//button[starts-with(@data-testid, 'remove-key-')]`,
3131
)
3232
submitDeleteKeyButton = By.xpath(
3333
`//div[@class='popup-content ']//vscode-button[starts-with(@data-testid, 'remove-key-')]`,

0 commit comments

Comments
 (0)