diff options
author | Kohei Yoshino <kohei.yoshino@gmail.com> | 2018-08-10 14:56:19 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-10 14:56:19 +0200 |
commit | 5a43b27f7940be9697f312c550fa2de11a9e14d7 (patch) | |
tree | 9e6e91abf14d1052366b8815b0fa63f4a0655372 /qa/t/test_flags2.t | |
parent | 1f35e100eaab5776633a3b995f3c32a0438f6e86 (diff) | |
download | bugzilla-5a43b27f7940be9697f312c550fa2de11a9e14d7.tar.gz bugzilla-5a43b27f7940be9697f312c550fa2de11a9e14d7.tar.xz |
Bug 602313 - Allow creation of attachments by pasting an image from clipboard, as well as by drag-and-dropping a file from desktop
Diffstat (limited to 'qa/t/test_flags2.t')
-rw-r--r-- | qa/t/test_flags2.t | 7 |
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"); |