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
This commit is contained in:
Jan Jasek 2024-11-27 00:47:27 +01:00
parent b460315fb7
commit 4d990a0d25

View File

@ -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()