summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2018-04-03 12:34:25 +0200
committeranonym <anonym@riseup.net>2018-04-06 16:03:50 +0200
commit21ae36e9609cb8fef6adb83ea19d9118b816132f (patch)
tree6280e71c237e51d9726bc99905dddf540023a664
parentc7d8a345a6f0c624d70d4135b8239ecf4d9b8be2 (diff)
Test suite: test secure account configuration more thoroughly.feature/6156-thunderbird-secure-auto-config
-rw-r--r--features/step_definitions/thunderbird.rb10
-rw-r--r--features/thunderbird.feature48
2 files changed, 52 insertions, 6 deletions
diff --git a/features/step_definitions/thunderbird.rb b/features/step_definitions/thunderbird.rb
index d236cdf..f8818f1 100644
--- a/features/step_definitions/thunderbird.rb
+++ b/features/step_definitions/thunderbird.rb
@@ -82,10 +82,14 @@ Then /^I see that Torbirdy is configured to use Tor$/ do
.child('TorBirdy Enabled: Tor', roleName: 'label')
end
-When /^I enter my email credentials into the autoconfiguration wizard$/ do
- address = $config['Icedove']['address']
+When /^I enter (my email credentials|.*@.*) into the autoconfiguration wizard$/ do |address|
+ if address == 'my email credentials'
+ address = $config['Icedove']['address']
+ password = $config['Icedove']['password']
+ else
+ password = ''
+ end
name = address.split('@').first
- password = $config['Icedove']['password']
thunderbird_wizard.child('Your name:', roleName: 'entry').text = name
thunderbird_wizard.child('Email address:', roleName: 'entry').text = address
thunderbird_wizard.child('Password:', roleName: 'entry').text = password
diff --git a/features/thunderbird.feature b/features/thunderbird.feature
index 0de44b8..514285b 100644
--- a/features/thunderbird.feature
+++ b/features/thunderbird.feature
@@ -22,9 +22,51 @@ Feature: Thunderbird email client
#11890
@fragile
- Scenario: Thunderbird's autoconfiguration wizard defaults to IMAP and secure protocols
- When I enter my email credentials into the autoconfiguration wizard
- Then the autoconfiguration wizard's choice for the incoming server is secure IMAP
+ Scenario: Thunderbird's autoconfiguration wizard
+ When I enter tails@riseup.net into the autoconfiguration wizard
+ Then I see the "Configuration found on Thunderbird installation" label
+ And the autoconfiguration wizard's choice for the incoming server is secure IMAP
+ When I select the autoconfiguration wizard's POP3 choice
+ Then the autoconfiguration wizard's choice for the incoming server is secure POP3
+ And the autoconfiguration wizard's choice for the outgoing server is secure SMTP
+
+ #11890
+ @fragile
+ Scenario: Thunderbird's autoconfiguration wizard
+ When I enter tails@boum.org into the autoconfiguration wizard
+ Then I see the "Configuration found at email provider" label
+ And the autoconfiguration wizard's choice for the incoming server is secure IMAP
+ When I select the autoconfiguration wizard's POP3 choice
+ Then the autoconfiguration wizard's choice for the incoming server is secure POP3
+ And the autoconfiguration wizard's choice for the outgoing server is secure SMTP
+
+ #11890
+ @fragile
+ Scenario: Thunderbird's autoconfiguration wizard
+ When I enter tails@gmail.com into the autoconfiguration wizard
+ Then I see the "Configuration found in Mozilla ISP database" label
+ And the autoconfiguration wizard's choice for the incoming server is secure IMAP
+ And the autoconfiguration wizard's choice for the outgoing server is secure SMTP
+ When I click the "Manual config" button
+ Then I do not see any "OAuth2" menu item
+ But I see 2 "Normal password" menu items
+ When I enter tails@gmail.com into the autoconfiguration wizard
+ Then I see the "Configuration found in Mozilla ISP database" label
+ And I select the autoconfiguration wizard's POP3 choice
+ And the autoconfiguration wizard's choice for the incoming server is secure POP3
+ And the autoconfiguration wizard's choice for the outgoing server is secure SMTP
+ When I click the "Manual config" button
+ Then I do not see any "OAuth2" menu item
+ But I see 2 "Normal password" menu items
+
+ #11890
+ @fragile
+ Scenario: Thunderbird's autoconfiguration wizard
+ When I enter tails@herbesfolles.org into the autoconfiguration wizard
+ Then I see the "Configuration found by trying common server names" label
+ And the autoconfiguration wizard's choice for the incoming server is secure IMAP
+ When I select the autoconfiguration wizard's POP3 choice
+ Then the autoconfiguration wizard's choice for the incoming server is secure POP3
Then the autoconfiguration wizard's choice for the outgoing server is secure SMTP
#11890