[gnome-build-meta/sam/openqa-fixes: 3/3] openqa: Use keyword arguments consistently




commit 7005501c524c5147b9f94d6c4c5c9aededa4e854
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Wed Sep 7 13:26:19 2022 +0200

    openqa: Use keyword arguments consistently
    
    Fixes the following error:
    
            Test died: Odd name/value argument for subroutine 'testapi::assert_and_click' at 
/tests/tests/gnome_install.pm line 7.

 openqa/tests/gnome_install.pm | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/openqa/tests/gnome_install.pm b/openqa/tests/gnome_install.pm
index d6c354768..0b8a6006d 100644
--- a/openqa/tests/gnome_install.pm
+++ b/openqa/tests/gnome_install.pm
@@ -4,11 +4,11 @@ use testapi;
 
 sub run {
     my $self = shift;
-    assert_and_click('gnome_install_1', timeout => 120, 'left');
-    assert_and_click('gnome_install_disk', 'left', 10);
-    assert_and_click('gnome_install_disk2', 'left', 10);
-    assert_screen('gnome_install_reformatting1', 120);
-    assert_screen('gnome_install_complete', 120);
+    assert_and_click('gnome_install_1', timeout => 120, button => 'left');
+    assert_and_click('gnome_install_disk', timeout => 10, button => 'left');
+    assert_and_click('gnome_install_disk2', timeout => 10, button => 'left');
+    assert_screen('gnome_install_reformatting1', timeout => 120);
+    assert_screen('gnome_install_complete', timeout => 120);
     eject_cd;
     power('reset');
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]