@@ -76,7 +76,7 @@ export class PrivacyStatsPage {
76
76
await this . ntp . openPage ( { additional : { stats : 'manyOnlyTop' } } ) ;
77
77
78
78
// control, ensure we have 5 rows
79
- expect ( await rows . count ( ) ) . toBe ( 5 ) ;
79
+ await expect ( rows ) . toHaveCount ( 5 ) ;
80
80
81
81
// check the initial values
82
82
expect ( await rows . nth ( 0 ) . textContent ( ) ) . toBe ( 'Facebook310' ) ;
@@ -103,8 +103,8 @@ export class PrivacyStatsPage {
103
103
// open the NTP with the correct param
104
104
await this . ntp . openPage ( { additional : { stats : 'fewOnlyTop' } } ) ;
105
105
106
- // control, ensure we have 5 rows
107
- expect ( await rows . count ( ) ) . toBe ( 3 ) ;
106
+ // control, ensure we have 3 rows
107
+ await expect ( rows ) . toHaveCount ( 3 ) ;
108
108
109
109
// check the initial values
110
110
expect ( await rows . nth ( 0 ) . textContent ( ) ) . toBe ( 'Facebook310' ) ;
@@ -126,7 +126,7 @@ export class PrivacyStatsPage {
126
126
await this . ntp . openPage ( { additional : { stats : 'topAndOneOther' } } ) ;
127
127
128
128
// should show all 5 items
129
- expect ( await rows . count ( ) ) . toBe ( 5 ) ;
129
+ await expect ( rows ) . toHaveCount ( 5 ) ;
130
130
131
131
// And should also show the text, but no expander
132
132
// ensure the toggle is absent
@@ -145,7 +145,7 @@ export class PrivacyStatsPage {
145
145
await this . ntp . openPage ( { additional : { stats : 'manyTopAndOther' } } ) ;
146
146
147
147
// control, ensure we have 5 rows
148
- expect ( await rows . count ( ) ) . toBe ( 5 ) ;
148
+ await expect ( rows ) . toHaveCount ( 5 ) ;
149
149
150
150
// control: ensure 'other' text is absent here
151
151
await expect ( this . page . getByTestId ( 'ListFooter' ) ) . not . toContainText ( '2 attempts from other networks' ) ;
0 commit comments