@@ -103,19 +103,24 @@ def test_text_page(page: Page):
103
103
expect (page .get_by_text ('Select a method to continue' )).to_be_visible ()
104
104
105
105
page .locator ('label' ).filter (has_text = 'RISE' ).locator ('span' ).click ()
106
+ page .locator ('label' ).filter (has_text = 'LIME' ).locator ('span' ).click ()
106
107
107
- page .get_by_text ('Running...' ).wait_for (state = 'detached' , timeout = 45_000 )
108
+ page .get_by_text ('Running...' ).wait_for (state = 'detached' , timeout = 100_000 )
108
109
109
110
for selector in (
110
111
page .get_by_role ('heading' , name = 'RISE' ).get_by_text ('RISE' ),
111
- # first image
112
+ page .get_by_role ('heading' , name = 'LIME' ).get_by_text ('LIME' ),
113
+ # Images for positive (RISE/LIME)
112
114
page .get_by_role ('heading' ,
113
115
name = 'positive' ).get_by_text ('positive' ),
114
116
page .get_by_role ('img' , name = '0' ).first ,
115
- # second image
117
+ page .get_by_role ('img' , name = '0' ).nth (1 ),
118
+
119
+ # Images for negative (RISE/LIME)
116
120
page .get_by_role ('heading' ,
117
121
name = 'negative' ).get_by_text ('negative' ),
118
- page .get_by_role ('img' , name = '0' ).nth (1 ),
122
+ page .get_by_role ('img' , name = '0' ).nth (2 ),
123
+ page .get_by_role ('img' , name = '0' ).nth (3 ),
119
124
):
120
125
print (selector )
121
126
expect (selector ).to_be_visible ()
@@ -131,27 +136,35 @@ def test_image_page(page: Page):
131
136
132
137
expect (
133
138
page .get_by_text ('Add your input data in the left panel to continue' )
134
- ).to_be_visible (timeout = 30_000 )
139
+ ).to_be_visible (timeout = 100_000 )
135
140
136
141
page .locator ('label' ).filter (
137
142
has_text = 'Load example data' ).locator ('span' ).click ()
138
143
139
144
expect (page .get_by_text ('Select a method to continue' )).to_be_visible ()
140
145
141
146
page .locator ('label' ).filter (has_text = 'RISE' ).locator ('span' ).click ()
147
+ page .locator ('label' ).filter (has_text = 'KernelSHAP' ).locator ('span' ).click ()
148
+ page .locator ('label' ).filter (has_text = 'LIME' ).locator ('span' ).click ()
142
149
143
150
page .get_by_text ('Running...' ).wait_for (state = 'detached' , timeout = 45_000 )
144
151
145
152
for selector in (
146
153
page .get_by_role ('heading' , name = 'RISE' ).get_by_text ('RISE' ),
154
+ page .get_by_role ('heading' , name = 'KernelSHAP' ).get_by_text ('KernelSHAP' ),
155
+ page .get_by_role ('heading' , name = 'LIME' ).get_by_text ('LIME' ),
147
156
# first image
148
157
page .get_by_role ('heading' , name = '0' ).get_by_text ('0' ),
149
158
page .get_by_role ('img' , name = '0' ).first ,
159
+ page .get_by_role ('img' , name = '0' ).nth (1 ),
160
+ page .get_by_role ('img' , name = '0' ).nth (2 ),
150
161
# second image
151
162
page .get_by_role ('heading' , name = '1' ).get_by_text ('1' ),
152
- page .get_by_role ('img' , name = '0' ).nth (1 ),
163
+ page .get_by_role ('img' , name = '0' ).nth (3 ),
164
+ page .get_by_role ('img' , name = '0' ).nth (4 ),
165
+ page .get_by_role ('img' , name = '0' ).nth (5 ),
153
166
):
154
- expect (selector ).to_be_visible (timeout = 45_000 )
167
+ expect (selector ).to_be_visible (timeout = 100_000 )
155
168
156
169
157
170
def test_timeseries_page (page : Page ):
@@ -171,17 +184,21 @@ def test_timeseries_page(page: Page):
171
184
172
185
expect (page .get_by_text ('Select a method to continue' )).to_be_visible ()
173
186
187
+ page .locator ('label' ).filter (has_text = 'LIME' ).locator ('span' ).click ()
174
188
page .locator ('label' ).filter (has_text = 'RISE' ).locator ('span' ).click ()
175
189
176
- page .get_by_text ('Running...' ).wait_for (state = 'detached' , timeout = 45_000 )
190
+ page .get_by_text ('Running...' ).wait_for (state = 'detached' , timeout = 100_000 )
177
191
178
192
for selector in (
193
+ page .get_by_role ('heading' , name = 'LIME' ).get_by_text ('LIME' ),
179
194
page .get_by_role ('heading' , name = 'RISE' ).get_by_text ('RISE' ),
180
195
# first image
181
196
page .get_by_role ('heading' , name = 'winter' ).get_by_text ('winter' ),
182
197
page .get_by_role ('img' , name = '0' ).first ,
198
+ page .get_by_role ('img' , name = '0' ).nth (1 ),
183
199
# second image
184
200
page .get_by_role ('heading' , name = 'summer' ).get_by_text ('summer' ),
185
- page .get_by_role ('img' , name = '0' ).nth (1 ),
201
+ page .get_by_role ('img' , name = '0' ).nth (2 ),
202
+ page .get_by_role ('img' , name = '0' ).nth (3 ),
186
203
):
187
204
expect (selector ).to_be_visible ()
0 commit comments