-
Notifications
You must be signed in to change notification settings - Fork 5
Various additions and fixes. #21
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
Conversation
chrome-app-1.0.0.8.zip will be installed on chrome browser during webdriver creation.
When browserName is chrome, webdriver installs the codebender app.
Updated version and seleniumVersion variables so that selenium tests can run on chrome.
Added global variable BROWSER with default value firefox that updates its value from capabilities.yaml browserName parameter. Added user agent on Chrome browser for Linux, Windows and Mac to test walkthrough pages, on each OS.
Files that were affected: conftest.py, test_sketch.py. The requires_extension fixture was removed since now we are able to install Chrome extension on Chrome versions > 41 and there is no need to skip tests that require extension when running tests under Chrome.
Logout now waits for Log in button to be visible.
The function now waits until the uploaded project is found.
seleniumbender: Removed argument "--source" from tox commands.
config.py: Removed TEST_CREDENTIALS used when logging into the bachelor site.
Removed names of sources used to generate the codebender site.
utils.py: Removed reference to TEST_CREDENTIALS in function login.
Updated comment related to bachelor site in function compile_sketch.
conftest.py: Removed fixture requires_source since we have only codebender_cc source used
to generate codebender site.
Removed fixture source used to specify the source repository from which the
site was derived (e.g. bachelor or codebender_cc).
Removed Removed parser.addoption "--source" used to indicate the source used
to generate the site.
Removed TEST_CREDENTIALS used as default value in testing_credentials
function.
test_home.py: Removed TEST_CREDENTIALS used for bachelor site from test_login function.
test_user_home.py: Removed functions test_create_project_blank_name,
test_create_project_invalid_name, test_create_project_valid_name since
the way that a project is created when Create sketch button is clicked
has changed.
Removed @pytest.mark.requires_source(SOURCE_CODEBENDER_CC).
Files affected: conftest.py, test_alerts.py. This marker is used so that we skip tests when running under chrome since we have an unexpected behavior when the extension is not installed.
| @@ -73,40 +73,43 @@ NO_LOGS=0 # flag for tests that do not send any logs on their email | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove SOURCE="codebender_cc" at line 67 as it is not used any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tsiknas Are we still using this script? I thought it became obsolete after the new seleniumbender in python
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dastergon Kept it until the seleniumbender in Python completes and we start using it.
BROWSER variable is already initialised to "firefox", its assignment after checking that browser_name="firefox" can be omitted.
The variable was removed since it is not used anymore.
56a0872 to
d6138ee
Compare
|
@tsiknas: Your comments have been fixed in commits: @dastergon: Comments related to test_walkthrough.py will be corrected by tsiknas to pr#22. |
|
Looks good to me 👍 |
Various additions and fixes.
Added comments to config.py file.
Deleted codebender-app.crx from extensions/ directory.
Added codebender chrome app version 1.0.0.8 to extensions/ directory.
Updated create_webdriver function to install chrome codebender app.
Updated capabilities.yaml for chrome browser.
Fixed test for walkthrough pages on Chrome browser.
Removed @pytest.fixture requires_extension.
Modified logout function in utils.py file.
Updated function _upload_test in test_user_home.py file.
Removed code used in bachelor site.
Added @pytest.fixture does_not_require_extension.
Omitted BROWSER variable assignment when browser is firefox.
Added missing identifier codebender-selenium at the Chrome UA.
Removed SOURCE variable from seleniumbender.