Skip to content

Commit 7439958

Browse files
authored
Add files via upload
1 parent dd1ee6a commit 7439958

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
selene>=2.0.0rc2
2+
pytest>=7.3.1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from selene import browser, have
2+
3+
browser.config.timeout = 6
4+
5+
6+
def test_login_to_cms_with_valid_credentials():
7+
browser.open('https://qa.guru/cms/system/login')
8+
browser.element('.login-form [name=email]').type('qagurubot@gmail.com')
9+
browser.element('.login-form [name=password]').type('qagurupassword').press_enter()
10+
11+
browser.element('.main-header__login').click()
12+
browser.element('.logined-form').should(have.text('QA_GURU_BOT'))
13+
browser.should(have.url_containing('/cms/system/login'))

0 commit comments

Comments
 (0)