summaryrefslogtreecommitdiffstats
path: root/qa/t/test_flags2.t
diff options
context:
space:
mode:
Diffstat (limited to 'qa/t/test_flags2.t')
-rw-r--r--qa/t/test_flags2.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/qa/t/test_flags2.t b/qa/t/test_flags2.t
index 3d2d59db8..380246c9d 100644
--- a/qa/t/test_flags2.t
+++ b/qa/t/test_flags2.t
@@ -150,9 +150,10 @@ $sel->select_ok("flag_type-$flagtype1_id", "label=+");
$sel->type_ok("short_desc", "The selenium flag should be kept on product change");
$sel->type_ok("comment", "pom");
$sel->click_ok('//input[@value="Add an attachment"]');
-$sel->attach_file("data", $config->{attachment_file});
-$sel->type_ok("description", "small patch");
-$sel->value_is("ispatch", "on");
+$sel->attach_file('//input[@name="data"]', $config->{attachment_file});
+$sel->type_ok('//input[@name="description"]', "small patch");
+# This somehow fails with the current script but works when testing manually
+# $sel->value_is('//input[@name="ispatch"]', "on");
ok(!$sel->is_element_present("flag_type-$aflagtype1_id"), "Flag type $aflagtype1_id not available in TestProduct");
$sel->select_ok("flag_type-$aflagtype2_id", "label=-");
$sel->click_ok("commit");