From 4d990a0d252afbaba208b21afb50f0c1283b9fe5 Mon Sep 17 00:00:00 2001 From: Jan Jasek Date: Wed, 27 Nov 2024 00:47:27 +0100 Subject: [PATCH] pytest-based selenium tests rm login tests Login tests were the first implemented pytest tests during experimenting with fixtures. Now login (as a fixture) is a part of every test so it does not makes sense to have separeted tests for them. Change-Id: I78d40234b186cc065ef41e6fa65481a3f5a70981 --- .../test/selenium/integration/test_login.py | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 openstack_dashboard/test/selenium/integration/test_login.py diff --git a/openstack_dashboard/test/selenium/integration/test_login.py b/openstack_dashboard/test/selenium/integration/test_login.py deleted file mode 100644 index d27fa680e3..0000000000 --- a/openstack_dashboard/test/selenium/integration/test_login.py +++ /dev/null @@ -1,25 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - - -def test_user_login(login, driver): - login('user') - user_dropdown_menu = driver.find_element_by_css_selector( - '.nav.navbar-nav.navbar-right') - assert user_dropdown_menu.is_displayed() - - -def test_admin_login(login, driver): - login('admin') - user_dropdown_menu = driver.find_element_by_css_selector( - '.nav.navbar-nav.navbar-right') - assert user_dropdown_menu.is_displayed()