Browse Source

Maintenance: Getting Started Email Notification test uses portless FQDN

Mantas Masalskis 2 years ago
parent
commit
515e51c600
1 changed files with 22 additions and 1 deletions
  1. 22 1
      test/browser/aaa_getting_started_test.rb

+ 22 - 1
test/browser/aaa_getting_started_test.rb

@@ -71,7 +71,7 @@ class AaaGettingStartedTest < TestCase
     )
     set(
       css:   '.js-base input[name="url"]',
-      value: browser_url,
+      value: browser_url.sub(%r{(:\d+)$}, ''), # drop port part
     )
     click(
       css: '.js-base .btn--primary',
@@ -85,6 +85,27 @@ class AaaGettingStartedTest < TestCase
     location_check(
       url: '#getting_started/email_notification',
     )
+
+    select(
+      css:   '.js-outbound select[name="adapter"]',
+      value: 'SMTP - configure your own outgoing SMTP settings',
+    )
+
+    # uses zammad-imap docker container
+    set(
+      css:   '.js-outbound input[name="options::host"]',
+      value: 'mail',
+    )
+
+    set(
+      css:   '.js-outbound input[name="options::user"]',
+      value: mailbox_user,
+    )
+
+    set(
+      css:   '.js-outbound input[name="options::password"]',
+      value: mailbox_password,
+    )
     click(
       css: '.js-outbound .btn--primary',
     )