|
BEGIN {
$ENV {MOJO_CONFIG} = path(__FILE__)->dirname->to_abs->child( 'slovo.conf' );
};
note $ENV {MOJO_CONFIG};
my $install_root = tempdir( 'slovoXXXX' , TMPDIR => 1, CLEANUP => 1);
my $t = Test::Mojo->with_roles( '+Slovo' )->install(
undef () => $install_root ,
)->new( 'Slovo' );
my $app = $t ->app;
note $app ->home;
my $phone = $app ->config->{consents}{phone_url};
$t ->get_ok( $app ->config->{consents}{gdpr_url})->status_is(200)
->text_like( 'footer.is-fixed .social a.sharer:first-child' => qr/\Q$phone\E/ );
done_testing;
|