aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin.t
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-01-26 18:13:55 +0100
committerMarius Halden <marius.h@lden.org>2015-01-26 18:13:55 +0100
commit1c5c685d0b0904e7ddc6e764e58e8fae08632d1d (patch)
tree559d5fddb743c1c083e23c9a3831efea92a240cb /t/app/controller/admin.t
parent84de1b811a219c41adbdcc8b65851320a77e98f7 (diff)
parent04117b8be30b5d82d50cdc047ac4e7c19864f8ed (diff)
Merge tag 'v1.5.3' into fiksgatami-dev
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r--t/app/controller/admin.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index 9ff5b5c90..f63a72117 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -201,12 +201,12 @@ subtest 'check contact creation' => sub {
note => 'test/note',
non_public => 'on',
} } );
- $mech->get_ok('/admin/body_edit/' . $body->id . '/test/category');
+ $mech->get_ok('/admin/body/' . $body->id . '/test/category');
};
subtest 'check contact editing' => sub {
- $mech->get_ok('/admin/body_edit/' . $body->id .'/test%20category');
+ $mech->get_ok('/admin/body/' . $body->id .'/test%20category');
$mech->submit_form_ok( { with_fields => {
email => 'test2@example.com',
@@ -219,7 +219,7 @@ subtest 'check contact editing' => sub {
$mech->content_contains( '<td>test2 note' );
$mech->content_contains( 'Private:&nbsp;No' );
- $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category');
+ $mech->get_ok('/admin/body/' . $body->id . '/test%20category');
$mech->submit_form_ok( { with_fields => {
email => 'test2@example.com',
note => 'test2 note',
@@ -228,12 +228,12 @@ subtest 'check contact editing' => sub {
$mech->content_contains( 'Private:&nbsp;Yes' );
- $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category');
+ $mech->get_ok('/admin/body/' . $body->id . '/test%20category');
$mech->content_contains( '<td><strong>test2@example.com' );
};
subtest 'check contact updating' => sub {
- $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category');
+ $mech->get_ok('/admin/body/' . $body->id . '/test%20category');
$mech->content_like(qr{test2\@example.com</strong>[^<]*</td>[^<]*<td>No}s);
$mech->get_ok('/admin/body/' . $body->id);
@@ -243,7 +243,7 @@ subtest 'check contact updating' => sub {
$mech->submit_form_ok({form_number => 1});
$mech->content_like(qr'test2@example.com</td>[^<]*<td>\s*Confirmed:&nbsp;Yes's);
- $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category');
+ $mech->get_ok('/admin/body/' . $body->id . '/test%20category');
$mech->content_like(qr{test2\@example.com[^<]*</td>[^<]*<td><strong>Yes}s);
};
@@ -266,7 +266,7 @@ subtest 'check open311 configuring' => sub {
}
);
$mech->content_contains('Council contacts configured via Open311');
- $mech->content_contains('Configuration updated - contacts will be generated automatically later');
+ $mech->content_contains('Values updated');
my $conf = FixMyStreet::App->model('DB::Body')->find( $body->id );
is $conf->endpoint, 'http://example.com/open311', 'endpoint configured';
@@ -286,7 +286,7 @@ subtest 'check open311 configuring' => sub {
}
);
- $mech->content_contains('Configuration updated');
+ $mech->content_contains('Values updated');
$conf = FixMyStreet::App->model('DB::Body')->find( $body->id );
is $conf->endpoint, 'http://example.org/open311', 'endpoint updated';