From 55cf7c35e17e756223d04aae84939984ff653f5d Mon Sep 17 00:00:00 2001
From: Michael Weimann <mail@michael-weimann.eu>
Date: Tue, 14 Aug 2018 22:28:11 +0200
Subject: [PATCH] Adds an acceptance test for the users settings navigation
 without disabled users

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
---
 tests/acceptance/features/users.feature | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/acceptance/features/users.feature b/tests/acceptance/features/users.feature
index 6baf3063631..b5a22cd3940 100644
--- a/tests/acceptance/features/users.feature
+++ b/tests/acceptance/features/users.feature
@@ -43,6 +43,20 @@ Feature: users
     When I open the "Disabled users" section
     Then I see that the list of users contains the user user0
 
+  Scenario: users navigation without disabled users
+    Given I act as Jane
+    And I am logged in as the admin
+    And I open the User settings
+    And I open the "Disabled users" section
+    And I see that the list of users contains the user disabledUser
+    And I open the actions menu for the user disabledUser
+    And I see that the "Enable user" action in the disabledUser actions menu is shown
+    When I click the "Enable user" action in the disabledUser actions menu
+    Then I see that the section "Disabled users" is not shown
+    # check again after reloading the settings
+    When I open the User settings
+    Then I see that the section "Disabled users" is not shown
+
   Scenario: assign user to a group
     Given I act as Jane
     And I am logged in as the admin
-- 
GitLab