X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Farticles%2Fupload-customfields.t;h=29bd677ca224e86ca6c49ee3328fd62f95f9dabf;hb=681a340f6be4184b1472a8e1fa9cd5d074f6f325;hp=912c23ded5d6426973eb1cb69a302c5b8d3b9c11;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/t/articles/upload-customfields.t b/rt/t/articles/upload-customfields.t index 912c23ded..29bd677ca 100644 --- a/rt/t/articles/upload-customfields.t +++ b/rt/t/articles/upload-customfields.t @@ -1,4 +1,3 @@ -#!/usr/bin/perl use strict; use warnings; @@ -9,12 +8,12 @@ use RT; my $logo; BEGIN { $logo = - -e $RT::MasonComponentRoot . '/NoAuth/images/bpslogo.png' + -e $RT::StaticPath . '/images/bpslogo.png' ? 'bpslogo.png' : 'bplogo.gif'; } -use constant ImageFile => $RT::MasonComponentRoot . "/NoAuth/images/$logo"; +use constant ImageFile => $RT::StaticPath . "/images/$logo"; use constant ImageFileContent => do { local $/; @@ -26,14 +25,14 @@ use constant ImageFileContent => do { use RT::Class; my $class = RT::Class->new($RT::SystemUser); my ($ret, $msg) = $class->Create('Name' => 'tlaTestClass-'.$$, - 'Description' => 'A general-purpose test class'); + 'Description' => 'A general-purpose test class'); ok($ret, "Test class created"); my ($url, $m) = RT::Test->started_ok; isa_ok($m, 'Test::WWW::Mechanize'); ok($m->login, 'logged in'); -$m->follow_link_ok( { text => 'Configuration' } ); +$m->follow_link_ok( { text => 'Admin' } ); $m->title_is(q/RT Administration/, 'admin screen'); $m->follow_link_ok( { text => 'Custom Fields' } ); $m->title_is(q/Select a Custom Field/, 'admin-cf screen');