Add selector conditional in testZoomSpeedControls

Fixes downstream failure
This commit is contained in:
Justin Stephenson 2021-04-28 08:28:20 -04:00
parent e561f18f56
commit 2c16ca3e2f

View file

@ -296,10 +296,14 @@ class TestApplication(MachineCase):
b.wait_present(".pf-c-data-list:contains('authentication failure')") b.wait_present(".pf-c-data-list:contains('authentication failure')")
def testZoomSpeedControls(self): def testZoomSpeedControls(self):
b, m = self._login()
default_scale_sel = '.console-ct[style^="transform: scale(1)"]' default_scale_sel = '.console-ct[style^="transform: scale(1)"]'
if m.image.startswith('rhel') or m.image.startswith('centos'):
play_scale_sel = '.console-ct[style^="transform: scale(0.3"]'
zoom_one_scale_sel = '.console-ct[style^="transform: scale(0.4"]'
else:
play_scale_sel = '.console-ct[style^="transform: scale(0.4"]' play_scale_sel = '.console-ct[style^="transform: scale(0.4"]'
zoom_one_scale_sel = '.console-ct[style^="transform: scale(0.5"]' zoom_one_scale_sel = '.console-ct[style^="transform: scale(0.5"]'
b, _ = self._login()
self._sel_rec('rec1') self._sel_rec('rec1')
# set speed x16 and begin playing, expecting a size adjustment # set speed x16 and begin playing, expecting a size adjustment
for _ in range(4): for _ in range(4):