@@ -103,28 +103,28 @@ class TestApps(packagelib.PackageCase):
103
103
m .write ("/etc/cockpit/cockpit.conf" , f"[WebService]\n UrlRoot={ urlroot } " )
104
104
105
105
self .login_and_go ("/apps" , urlroot = urlroot )
106
- b .wait_in_text (".pf-v5 -c-empty-state" , "No applications installed or available" )
107
- b .wait_in_text (".pf-v5 -c-empty-state" , "Application information is missing" )
106
+ b .wait_in_text (".pf-v6 -c-empty-state" , "No applications installed or available" )
107
+ b .wait_in_text (".pf-v6 -c-empty-state" , "Application information is missing" )
108
108
109
109
# still no metadata, but already installed application
110
110
self .createAppStreamPackage ("already" , "1.0" , "1" , install = True )
111
- b .wait_not_present (".pf-v5 -c-empty-state" )
111
+ b .wait_not_present (".pf-v6 -c-empty-state" )
112
112
b .wait_visible (".app-list .pf-v5-c-data-list__item-row:contains('already') button:contains('Remove')" )
113
- b .wait_in_text (".pf-v5 -c-alert" , "Application information is missing" )
113
+ b .wait_in_text (".pf-v6 -c-alert" , "Application information is missing" )
114
114
115
115
self .createAppStreamPackage ("app-1" , "1.0" , "1" )
116
116
self .createAppStreamRepoPackage ()
117
117
118
118
# Install package metadata
119
- b .click (".pf-v5 -c-alert button" )
119
+ b .click (".pf-v6 -c-alert button" )
120
120
121
121
with b .wait_timeout (30 ):
122
- b .wait_not_present (".pf-v5 -c-alert" )
122
+ b .wait_not_present (".pf-v6 -c-alert" )
123
123
b .click (".app-list #app-1" )
124
124
125
125
b .wait_visible ('a[href="https://app-1.com"]' )
126
126
b .wait_visible (f'#app-page img[src^="{ urlroot } /cockpit/channel/"]' )
127
- b .click (".pf-v5 -c-breadcrumb a:contains('Applications')" )
127
+ b .click (".pf-v6 -c-breadcrumb a:contains('Applications')" )
128
128
129
129
b .wait_visible ("#list-page" )
130
130
b .wait_not_present ("#app-page" )
@@ -169,7 +169,7 @@ class TestApps(packagelib.PackageCase):
169
169
self .createAppStreamRepoPackage (subdir = "app-info/xmls" )
170
170
171
171
self .login_and_go ("/apps" )
172
- b .wait_visible (".pf-v5 -c-empty-state" )
172
+ b .wait_visible (".pf-v6 -c-empty-state" )
173
173
174
174
# os-release is a symlink target, don't clobber that
175
175
self .restore_file ("/etc/os-release" )
@@ -180,21 +180,21 @@ class TestApps(packagelib.PackageCase):
180
180
# the progress bar is too fast to reliably catch it
181
181
time .sleep (1 )
182
182
b .wait_not_present ("#refresh-progress" )
183
- b .wait_visible (".pf-v5 -c-empty-state" )
183
+ b .wait_visible (".pf-v6 -c-empty-state" )
184
184
# wait until check for installed metadata package finished
185
185
b .wait_attr ("#list-page" , "data-packages-checked" , "true" )
186
186
# no appstream metadata available, don't advertise it
187
- b .wait_in_text (".pf-v5 -c-empty-state" , "No applications installed or available" )
188
- self .assertNotIn ("Install application information" , b .text (".pf-v5 -c-empty-state" ))
189
- b .wait_not_present (".pf-v5 -c-empty-state button" )
187
+ b .wait_in_text (".pf-v6 -c-empty-state" , "No applications installed or available" )
188
+ self .assertNotIn ("Install application information" , b .text (".pf-v6 -c-empty-state" ))
189
+ b .wait_not_present (".pf-v6 -c-empty-state button" )
190
190
191
191
# unknown OS: nothing gets installed
192
192
m .write ("/etc/os-release" , 'ID="unmapped"\n ID_LIKE="mysterious"\n VERSION_ID="1"\n ' )
193
193
b .click ("#refresh" )
194
194
# the progress bar is too fast to reliably catch it
195
195
time .sleep (1 )
196
196
b .wait_not_present ("#refresh-progress" )
197
- b .wait_visible (".pf-v5 -c-empty-state" )
197
+ b .wait_visible (".pf-v6 -c-empty-state" )
198
198
199
199
# known OS: appstream-data-test gets installed from the map
200
200
m .write ("/etc/os-release" , 'ID="derivative"\n ID_LIKE="spicy testy"\n VERSION_ID="1"\n ' )
@@ -215,7 +215,7 @@ class TestApps(packagelib.PackageCase):
215
215
self .addCleanup (m .execute , "for d in /usr/share/metainfo /usr/share/app-info /var/cache/app-info; do umount $d; done" )
216
216
217
217
self .login_and_go ("/apps" )
218
- b .wait_visible (".pf-v5 -c-empty-state" )
218
+ b .wait_visible (".pf-v6 -c-empty-state" )
219
219
220
220
m .write ("/usr/share/app-info/xmls/test.xml" , """
221
221
<components origin="test">
@@ -273,7 +273,7 @@ class TestApps(packagelib.PackageCase):
273
273
appstream_folder = "/usr/share/app-info/xmls"
274
274
275
275
self .login_and_go ("/apps" )
276
- b .wait_visible (".pf-v5 -c-empty-state" )
276
+ b .wait_visible (".pf-v6 -c-empty-state" )
277
277
278
278
self .allow_journal_messages (".*/usr/share/app-info/xmls/test.xml.*" ,
279
279
".*xml.etree.ElementTree.ParseError.*" )
@@ -293,7 +293,7 @@ class TestApps(packagelib.PackageCase):
293
293
<pkgname>foo</pkgname>
294
294
</component>
295
295
</components>""" )
296
- b .wait_not_present (".pf-v5 -c-empty-state" )
296
+ b .wait_not_present (".pf-v6 -c-empty-state" )
297
297
b .wait_visible (".app-list .pf-v5-c-data-list__item-row:contains('Summary')" )
298
298
299
299
# First lay down some good XML so that we can later detect the reaction to broken XML.
@@ -303,14 +303,14 @@ class TestApps(packagelib.PackageCase):
303
303
m .write (f"{ appstream_folder } /test.xml" , """
304
304
This <is <not XML.
305
305
""" )
306
- b .wait_visible (".pf-v5 -c-empty-state" )
306
+ b .wait_visible (".pf-v6 -c-empty-state" )
307
307
reset ()
308
308
309
309
# Not really AppStream
310
310
m .write (f"{ appstream_folder } /test.xml" , """
311
311
<foo></foo>
312
312
""" )
313
- b .wait_visible (".pf-v5 -c-empty-state" )
313
+ b .wait_visible (".pf-v6 -c-empty-state" )
314
314
reset ()
315
315
316
316
# No origin
@@ -328,7 +328,7 @@ This <is <not XML.
328
328
<pkgname>foo</pkgname>
329
329
</component>
330
330
</components>""" )
331
- b .wait_visible (".pf-v5 -c-empty-state" )
331
+ b .wait_visible (".pf-v6 -c-empty-state" )
332
332
reset ()
333
333
334
334
# No package
@@ -345,7 +345,7 @@ This <is <not XML.
345
345
<launchable type="cockpit-manifest">foo</launchable>
346
346
</component>
347
347
</components>""" )
348
- b .wait_visible (".pf-v5 -c-empty-state" )
348
+ b .wait_visible (".pf-v6 -c-empty-state" )
349
349
reset ()
350
350
351
351
# No id
@@ -359,7 +359,7 @@ This <is <not XML.
359
359
<pkgname>foo</pkgname>
360
360
</component>
361
361
</components>""" )
362
- b .wait_visible (".pf-v5 -c-empty-state" )
362
+ b .wait_visible (".pf-v6 -c-empty-state" )
363
363
reset ()
364
364
365
365
# Error (launchable without type) in earlier entry, shouldn't affect the later entry
@@ -388,7 +388,7 @@ This <is <not XML.
388
388
<pkgname>foo</pkgname>
389
389
</component>
390
390
</components>""" )
391
- b .wait_not_present (".pf-v5 -c-empty-state" )
391
+ b .wait_not_present (".pf-v6 -c-empty-state" )
392
392
b .wait_visible (".app-list .pf-v5-c-data-list__item-row:contains('Summary 2')" )
393
393
394
394
def testNoPackageKit (self ):
0 commit comments