Skip to content

Commit a8a7384

Browse files
fix for test #5
1 parent 5a38e82 commit a8a7384

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/pageObjects/components/myRedisDatabase/add-redis-database.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ export class AddRedisDatabase {
5757
// DROPDOWNS
5858
caCertField = Selector('[data-testid=select-ca-cert]', { timeout: 500 });
5959
clientCertField = Selector('[data-testid=select-cert]', { timeout: 500 });
60-
selectCompressor = Selector('[data-testid=select-compressor]', { timeout: 500 });
60+
selectCompressor = Selector('[data-testid=select-compressor]', { timeout: 1000 });
6161
// CHECKBOXES
6262
useSSHCheckbox = Selector('[data-testid=use-ssh]~div', { timeout: 500 });
6363
dataCompressorCheckbox = Selector('[data-testid=showCompressor] ~ label');
6464
// RADIO BUTTONS
6565
sshPasswordRadioBtn = Selector('#password~div', { timeout: 500 });
6666
sshPrivateKeyRadioBtn = Selector('#privateKey~div', { timeout: 500 });
6767
// LABELS
68-
dataCompressorLabel = Selector('[data-testid=showCompressor] ~ label', { timeout: 500 });
68+
dataCompressorLabel = Selector('[data-testid=showCompressor] ~ label', { timeout: 1000 });
6969

7070
/**
7171
* Adding a new redis database
@@ -268,7 +268,7 @@ export class AddRedisDatabase {
268268
*/
269269
async setCompressorValue(compressor: string){
270270

271-
if(!this.selectCompressor.exists) {
271+
if(!await this.selectCompressor.exists) {
272272
await t.click(this.dataCompressorLabel);
273273
}
274274
await t.click(this.selectCompressor);

0 commit comments

Comments
 (0)