Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial UI test #151

Merged
merged 1 commit into from Feb 22, 2018
Merged

Add initial UI test #151

merged 1 commit into from Feb 22, 2018

Conversation

elyezer
Copy link
Contributor

@elyezer elyezer commented Feb 20, 2018

Close #106

@elyezer elyezer requested a review from kdelee February 20, 2018 18:16
@coveralls
Copy link

coveralls commented Feb 20, 2018

Coverage Status

Coverage increased (+2.1%) to 71.676% when pulling 65fce03 on issues/106 into c5f4798 on master.

@elyezer
Copy link
Contributor Author

elyezer commented Feb 20, 2018

It seems I need to write some tests for camayoc, I am going to work on that later. Feel free to review as I should only add the tests later.

Copy link
Contributor

@kdelee kdelee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Did leave comment about perhaps putting text into some constants and keeping them in a central location. I'll leave it up to you.

login.password.fill('pass')
login.login.click()

assert browser.selenium.title == 'Red Hat Entitlements Reporting'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make this a constant in constants.py?

assert browser.selenium.title == 'Red Hat Entitlements Reporting'

dashboard = DashboardView(browser)
dashboard.user_dropdown.select_item('Logout')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above comment.

I'm not certain this is better. Maybe even there should be a separate UI constants file, because there will probably be lots of text we will be working with.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for now I will leave the string here. As UI test grows we decide if we would have a constants file for it or not.

@elyezer
Copy link
Contributor Author

elyezer commented Feb 21, 2018

I will wait for travis and coveralls and if they are happy will merge the PR. I've added tests for the new util function to fetch the base URL.

@elyezer elyezer merged commit 65fce03 into master Feb 22, 2018
@elyezer elyezer deleted the issues/106 branch February 22, 2018 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants