From 01a9431e0bc8988a61bcd50595059e173c89872a Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Wed, 29 Jan 2020 22:21:14 +0100
Subject: [PATCH] Update selenium tests

---
 aleksis/core/tests/browser/test_selenium.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/aleksis/core/tests/browser/test_selenium.py b/aleksis/core/tests/browser/test_selenium.py
index 6a5f737f3..a4861d6c1 100644
--- a/aleksis/core/tests/browser/test_selenium.py
+++ b/aleksis/core/tests/browser/test_selenium.py
@@ -52,9 +52,8 @@ class SeleniumTests(SeleniumTestCase):
         self._screenshot("login_default_superuser_filled.png")
 
         # Submit form by clicking django-two-factor-auth's Next button
-        self.selenium.find_element_by_xpath('//button[contains(text(), "Next")]').click()
+        self.selenium.find_element_by_xpath('//button[contains(text(), "Login")]').click()
         self._screenshot("login_default_superuser_submitted.png")
 
         # Should redirect away from login page and not put up an alert about wrong credentials
         assert "Please enter a correct username and password." not in self.selenium.page_source
-        assert reverse(settings.LOGIN_URL) not in self.selenium.current_url
-- 
GitLab