summaryrefslogtreecommitdiffstats
path: root/qa/t/test_private_attachments.t
diff options
context:
space:
mode:
Diffstat (limited to 'qa/t/test_private_attachments.t')
-rw-r--r--qa/t/test_private_attachments.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/qa/t/test_private_attachments.t b/qa/t/test_private_attachments.t
index c6b6df5a1..9a6e8d54d 100644
--- a/qa/t/test_private_attachments.t
+++ b/qa/t/test_private_attachments.t
@@ -33,9 +33,9 @@ $sel->type_ok("short_desc", "Some comments are private");
$sel->type_ok("comment", "and some attachments too, like this one.");
$sel->check_ok("comment_is_private");
$sel->click_ok('//input[@value="Add an attachment"]');
-$sel->attach_file("data", $config->{attachment_file});
-$sel->type_ok("description", "private attachment, v1");
-$sel->check_ok("ispatch");
+$sel->attach_file('//input[@name="data"]', $config->{attachment_file});
+$sel->type_ok('//input[@name="description"]', "private attachment, v1");
+$sel->check_ok('//input[@name="ispatch"]');
$sel->click_ok("commit");
$sel->wait_for_page_to_load_ok(WAIT_TIME);
$sel->is_text_present_ok('has been added to the database', 'Bug created');
@@ -49,9 +49,9 @@ $sel->is_checked_ok('//a[@id="comment_link_0"]/../..//div//input[@type="checkbox
$sel->click_ok("link=Add an attachment");
$sel->wait_for_page_to_load_ok(WAIT_TIME);
$sel->title_is("Create New Attachment for Bug #$bug1_id");
-$sel->attach_file("data", $config->{attachment_file});
-$sel->type_ok("description", "public attachment, v2");
-$sel->check_ok("ispatch");
+$sel->attach_file('//input[@name="data"]', $config->{attachment_file});
+$sel->type_ok('//input[@name="description"]', "public attachment, v2");
+$sel->check_ok('//input[@name="ispatch"]');
# The existing attachment name must be displayed, to mark it as obsolete.
$sel->is_text_present_ok("private attachment, v1");
$sel->type_ok("comment", "this patch is public. Everyone can see it.");
@@ -109,11 +109,11 @@ $sel->is_text_present_ok("This attachment is not mine");
$sel->click_ok("link=Add an attachment");
$sel->wait_for_page_to_load_ok(WAIT_TIME);
$sel->title_is("Create New Attachment for Bug #$bug1_id");
-$sel->attach_file("data", $config->{attachment_file});
-$sel->check_ok("ispatch");
+$sel->attach_file('//input[@name="data"]', $config->{attachment_file});
+$sel->check_ok('//input[@name="ispatch"]');
# The user doesn't have editbugs privs.
$sel->is_text_present_ok("[no attachments can be made obsolete]");
-$sel->type_ok("description", "My patch, which I should see, always");
+$sel->type_ok('//input[@name="description"]', "My patch, which I should see, always");
$sel->type_ok("comment", "This is my patch!");
$sel->click_ok("create");
$sel->wait_for_page_to_load_ok(WAIT_TIME);