Fix test that required SSL
Change-Id: I329abea8cfe3de4ff2358ea1ff48d599a1e00957
diff --git a/Changes b/Changes
index 7bf542e..7b6227b 100644
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.59 2025-01-14
+0.59 2025-01-23
- Improve appearance of title-addon on logo. (uyen-nhu)
- Create and style new item on top navbar for 'News'. (uyen-nhu)
- Change settings link in logout.html.ep to dynamic link. (uyen-nhu)
@@ -23,6 +23,7 @@
- Fix alerts in hint helper (diewald)
- Don't send empty pipes and states via query param (diewald)
- Fix access of iframe location in tutorials. (diewald)
+ - Fix test that wrongly required SSL support. (diewald)
0.58 2024-11-15
- Cookie path is settable now (hebasta)
diff --git a/t/intro.t b/t/intro.t
index bb1a488..abd5e06 100644
--- a/t/intro.t
+++ b/t/intro.t
@@ -6,8 +6,26 @@
$ENV{KALAMAR_VERSION} = '0.47.999';
+#####################
+# Start Fake server #
+#####################
+my $mount_point = '/realapi/';
+$ENV{KALAMAR_API} = $mount_point;
+
my $t = Test::Mojo->new('Kalamar');
+# Mount fake backend
+# Get the fixture path
+my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'server');
+my $fake_backend = $t->app->plugin(
+ Mount => {
+ $mount_point =>
+ $fixtures_path->child('mock.pl')
+ }
+);
+# Configure fake backend
+$fake_backend->pattern->defaults->{app}->log($t->app->log);
+
$t->app->mode('production');
$t->get_ok('/')
@@ -67,6 +85,7 @@
->element_exists('#koralQuery')
->element_exists('aside.invisible')
->element_exists('aside.off')
+ ->text_is('#notifications > .notify-error', undef)
;
$t->get_ok('/huhuhuhuhu')