File tree Expand file tree Collapse file tree 6 files changed +24
-21
lines changed Expand file tree Collapse file tree 6 files changed +24
-21
lines changed Original file line number Diff line number Diff line change 1
1
class DeleteFolderModal {
2
- private CONTAINER = '.ant-modal-content' ;
2
+ private CONTAINER = '.ant-modal-wrap:not([style="display: none;"]) .ant-modal- content' ;
3
3
private TITLE = '[data-testid="create-folder-modal-title"]' ;
4
4
private DESCRIPTION = '[data-testid="create-folder-modal-description"]' ;
5
5
private CANCEL_BUTTON = '[data-testid="delete-folder-modal-cancel"]' ;
@@ -10,19 +10,19 @@ class DeleteFolderModal {
10
10
}
11
11
12
12
get title ( ) {
13
- return $ ( this . TITLE ) ;
13
+ return this . container . $ ( this . TITLE ) ;
14
14
}
15
15
16
16
get description ( ) {
17
- return $ ( this . DESCRIPTION ) ;
17
+ return this . container . $ ( this . DESCRIPTION ) ;
18
18
}
19
19
20
20
get cancelButton ( ) {
21
- return $ ( this . CANCEL_BUTTON ) ;
21
+ return this . container . $ ( this . CANCEL_BUTTON ) ;
22
22
}
23
23
24
24
get confirmButton ( ) {
25
- return $ ( this . CONFIRM_BUTTON ) ;
25
+ return this . container . $ ( this . CONFIRM_BUTTON ) ;
26
26
}
27
27
28
28
async clickCancelButton ( ) {
Original file line number Diff line number Diff line change 2
2
import { ChainablePromiseElement } from 'webdriverio' ;
3
3
4
4
class YoullHaveToStartAgainModal {
5
- private CONTAINER = '.ant-modal-content' ;
5
+ private CONTAINER = '.ant-modal-wrap:not([style="display: none;"]) .ant-modal- content' ;
6
6
private TITLE = '[data-testid="create-folder-modal-title"]' ;
7
7
private DESCRIPTION = '[data-testid="create-folder-modal-description"]' ;
8
8
private CANCEL_BUTTON = '[data-testid="create-folder-modal-cancel"]' ;
@@ -13,19 +13,19 @@ class YoullHaveToStartAgainModal {
13
13
}
14
14
15
15
get title ( ) : ChainablePromiseElement < WebdriverIO . Element > {
16
- return $ ( this . TITLE ) ;
16
+ return this . container . $ ( this . TITLE ) ;
17
17
}
18
18
19
19
get description ( ) : ChainablePromiseElement < WebdriverIO . Element > {
20
- return $ ( this . DESCRIPTION ) ;
20
+ return this . container . $ ( this . DESCRIPTION ) ;
21
21
}
22
22
23
23
get cancelButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
24
- return $ ( this . CANCEL_BUTTON ) ;
24
+ return this . container . $ ( this . CANCEL_BUTTON ) ;
25
25
}
26
26
27
27
get agreeButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
28
- return $ ( this . AGREE_BUTTON ) ;
28
+ return this . container . $ ( this . AGREE_BUTTON ) ;
29
29
}
30
30
}
31
31
Original file line number Diff line number Diff line change 1
1
class DeleteAddressModal {
2
- private CONTAINER = '.ant-modal-content' ;
2
+ private CONTAINER = '.ant-modal-wrap:not([style="display: none;"]) .ant-modal- content' ;
3
3
private TITLE = '[data-testid="delete-address-modal-title"]' ;
4
4
private DESCRIPTION = '[data-testid="delete-address-modal-description"]' ;
5
5
private CANCEL_BUTTON = '[data-testid="delete-address-modal-cancel"]' ;
@@ -10,19 +10,19 @@ class DeleteAddressModal {
10
10
}
11
11
12
12
get title ( ) {
13
- return $ ( this . TITLE ) ;
13
+ return this . container . $ ( this . TITLE ) ;
14
14
}
15
15
16
16
get description ( ) {
17
- return $ ( this . DESCRIPTION ) ;
17
+ return this . container . $ ( this . DESCRIPTION ) ;
18
18
}
19
19
20
20
get cancelButton ( ) {
21
- return $ ( this . CANCEL_BUTTON ) ;
21
+ return this . container . $ ( this . CANCEL_BUTTON ) ;
22
22
}
23
23
24
24
get deleteAddressButton ( ) {
25
- return $ ( this . DELETE_ADDRESS_BUTTON ) ;
25
+ return this . container . $ ( this . DELETE_ADDRESS_BUTTON ) ;
26
26
}
27
27
}
28
28
Original file line number Diff line number Diff line change 2
2
import { ChainablePromiseElement } from 'webdriverio' ;
3
3
4
4
class Modal {
5
- private CONTAINER = '.ant-modal-content' ;
5
+ private CONTAINER = '.ant-modal-wrap:not([style="display: none;"]) .ant-modal- content' ;
6
6
private TITLE = '[data-testid="delete-address-modal-title"]' ;
7
7
private DESCRIPTION = '[data-testid="delete-address-modal-description"]' ;
8
8
private CANCEL_BUTTON = '[data-testid="delete-address-modal-cancel"]' ;
@@ -13,19 +13,19 @@ class Modal {
13
13
}
14
14
15
15
get title ( ) : ChainablePromiseElement < WebdriverIO . Element > {
16
- return $ ( this . TITLE ) ;
16
+ return this . container . $ ( this . TITLE ) ;
17
17
}
18
18
19
19
get description ( ) : ChainablePromiseElement < WebdriverIO . Element > {
20
- return $ ( this . DESCRIPTION ) ;
20
+ return this . container . $ ( this . DESCRIPTION ) ;
21
21
}
22
22
23
23
get cancelButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
24
- return $ ( this . CANCEL_BUTTON ) ;
24
+ return this . container . $ ( this . CANCEL_BUTTON ) ;
25
25
}
26
26
27
27
get confirmButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
28
- return $ ( this . CONFIRM_BUTTON ) ;
28
+ return this . container . $ ( this . CONFIRM_BUTTON ) ;
29
29
}
30
30
31
31
buttonWithText ( value : string ) : ChainablePromiseElement < WebdriverIO . Element > {
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class SettingsExtendedPageObject {
169
169
}
170
170
171
171
async multiAddressModalConfirm ( ) {
172
- if ( await Modal . confirmButton . isDisplayed ( ) ) {
172
+ if ( await Modal . container . isDisplayed ( ) ) {
173
173
expect ( await Modal . confirmButton . getText ( ) ) . to . equal ( await t ( 'modals.beta.button' , 'staking' ) ) ;
174
174
await Modal . confirmButton . click ( ) ;
175
175
}
Original file line number Diff line number Diff line change @@ -39,15 +39,18 @@ import settingsExtendedPageObject from '../pageobject/settingsExtendedPageObject
39
39
import consoleManager from '../utils/consoleManager' ;
40
40
import consoleAssert from '../assert/consoleAssert' ;
41
41
import { addAndActivateWalletInRepository , clearWalletRepository } from '../fixture/walletRepositoryInitializer' ;
42
+ import MainLoader from '../elements/MainLoader' ;
42
43
43
44
Given ( / ^ L a c e i s r e a d y f o r t e s t $ / , async ( ) => {
45
+ await MainLoader . waitUntilLoaderDisappears ( ) ;
44
46
await settingsExtendedPageObject . waitUntilSyncingModalDisappears ( ) ;
45
47
await settingsExtendedPageObject . multiAddressModalConfirm ( ) ;
46
48
await tokensPageObject . waitUntilCardanoTokenLoaded ( ) ;
47
49
await settingsExtendedPageObject . closeWalletSyncedToast ( ) ;
48
50
} ) ;
49
51
50
52
Then ( / ^ L a c e i s l o a d e d p r o p e r l y $ / , async ( ) => {
53
+ await MainLoader . waitUntilLoaderDisappears ( ) ;
51
54
await settingsExtendedPageObject . waitUntilSyncingModalDisappears ( ) ;
52
55
await tokensPageObject . waitUntilCardanoTokenLoaded ( ) ;
53
56
} ) ;
You can’t perform that action at this time.
0 commit comments