File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { Selector , t } from 'testcafe' ;
2
2
3
3
export class RecommendationsPage {
4
- //CSS Selectors
5
4
veryUsefulVoteBtn = Selector ( '[data-testid=very-useful-vote-btn]' ) . nth ( 0 ) ;
6
5
usefulVoteBtn = Selector ( '[data-testid=useful-vote-btn]' ) . nth ( 0 ) ;
7
6
notUsefulVoteBtn = Selector ( '[data-testid=not-useful-vote-btn]' ) . nth ( 0 ) ;
@@ -24,11 +23,11 @@ export class RecommendationsPage {
24
23
25
24
async verifyVoteDisabled ( ) : Promise < void > {
26
25
// Verify that user can rate recommendations with one of 3 existing types at the same time
27
- await t . expect ( this . veryUsefulVoteBtn . nth ( 0 )
26
+ await t . expect ( this . veryUsefulVoteBtn
28
27
. hasAttribute ( 'disabled' ) ) . ok ( ) ;
29
- await t . expect ( this . usefulVoteBtn . nth ( 0 )
28
+ await t . expect ( this . usefulVoteBtn
30
29
. hasAttribute ( 'disabled' ) ) . ok ( ) ;
31
- await t . expect ( this . notUsefulVoteBtn . nth ( 0 )
30
+ await t . expect ( this . notUsefulVoteBtn
32
31
. hasAttribute ( 'disabled' ) ) . ok ( ) ;
33
32
}
34
33
}
You can’t perform that action at this time.
0 commit comments