cos-archives / osf-ui-tests Goto Github PK
View Code? Open in Web Editor NEWSelenium-based UI tests for the Open Science Framework
License: Other
Selenium-based UI tests for the Open Science Framework
License: Other
UI tests needed for recently added contributors list in add contributors modal @chennan47. @jmcarp, here's your notification to merge the pull request #208 so UI tests can be written!
Deleting a project should delete all of its non-project children. To test this, we would create a project, create a child component, delete the project, and verify that browsing to the address of the child component yields an 410 / Gone page. We should also verify that deleting a project does NOT delete its project children.
Create a username with non-ASCII characters, and run all the user tests with that name.
Alternatively, we could just change the default username to something like Těst-<random string>
. If it works with Unicode strings, it should work with ASCII strings by definition in Python.
Sometimes the tests using page object will create an unused page and never close it.
Task | Time Estimate | Time Spent |
---|---|---|
Method: upload a file | 0:30 | 0:40 |
Method: verify a file exists on a project | 0:15 | 0:10 |
Method: verify file is embedded | 0:15 | 1:30 |
Verifying that an image was properly embedded took far longer than anticipated - I ran into several smaller issues that needed to be resolved on the OSF before I could proceed. The time spent includes troubleshooting and fixing these.
Some of the older tests have been rewritten but not deleted, meaning that some of the same functionality is tested more than once. For example, the tests in ui_example_tests.py seem to be replicated elsewhere, so that file can probably be deleted. In general, we should delete replicated code and consolidate files with overlapping tests.
The project tear down method should be able to delete all projects setup for the tests, but not only the specific one which is given.
Selenium times out in test_add_contributor_log because it doesn't wait for the page to finish refreshing after adding a new contributor. @lyndsysimon recommended refactoring this test to use the page object pattern to fix.
Regression test for an issue noted by @sloria: hitting Enter in a registration form shouldn't submit the form.
Since both are included in the old project_access_tests.py file, I figured I would tackle them both.
Hgrid tests:(done)
Dashboard Page:
1. viewing tests all levels
2. expand button all levels
3. acess tests all levels
File Page:
1. reorder the bar
2. choose the directory subproject/component
3. drag and drop into a folder subproject/component
4. acess public/private all levels
Add contributor tests update:
add all
remove all
import contributor from parent
select child to add same contributor
other small fix
Watch log tests
When deleting a project or component, there is now a modal popup which asks for the title of the node to confirm deletion. This is not yet handled in the tests.
The change should be made to NodePage.delete()
in /pages/project.py
. An example of a test failing because of this is test_project_fork_counter_decrement
in /fork_tests.py
.
Deleting a project or component now requires confirmation via modal. To delete a project, the user must now enter the project title into the text box in the modal prompt. We should rewrite project deletion tests to reflect this behavior, and also write new tests to verify that typing in the wrong project title, clicking the Cancel button, or pressing the escape key does NOT delete the project.
The test test_registration_add_contributor https://github.com/CenterForOpenScience/osf-ui-tests/blob/develop/project_registration_tests.py#L69 is failing. The test tries to add a new contributor to a project by clicking on the "add" link, then verifies that the contributor wasn't added (since contributor lists on registrations should be immutable). But the "add" link is not displayed on registration pages, so this lookup times out.
When logged in, the page at /dashboard
should show a list of project for which the user is a contributor. This functionality is currently untested.
We need to add a test for this here.
Win 7:
IE 8 (ignore for now bootstrap failure)
IE 10 done
IE 9 done(except the file upload failure)
FIREFOX 24 done
FIREFOX 23 done
CHROME done
Win XP:
IE 7 (ignore for now bootstrap failure)
IE 8 (ignore for now bootstrap failure)
FIREFOX 24 Ongoing
FIREFOX 23
CHROME
Win 8:
IE 10 done
FIREFOX 24 done
FIREFOX 23 done
CHROME done
OX 10.8:
CHROME done
Win 8.1:
IE 11 done
FIREFOX 24
FIREFOX 23
CHROME done
LINUX:
FIREFOX 24
FIREFOX 23
CHROME
OX 10.6:
FIREFOX 24 done
FIREFOX 23
CHROME
test_change_name
in account_profile_tests.py
is currently failing.
A lot of tests have random error as "u'Unable to locate element: {"method":"css selector","selector":"body"}'" which relates with the wait for page reload function. However if you run the tests the second time, it may pass.
After adding a contributor, remove them and verify that they are removed.
Behavior on error pages has changed. Previously, on browsing to a non-existent project (e.g. https://openscienceframework.org/project/fake-project/ ), the user would be redirected to the OSF home page with a status message. Now, the user gets a 404 page. Error responses for deleted projects, projects the user cannot access, etc. have changed similarly.
Users should be asked if they're sure they want to leave the page when changing the URL on the files page if files are currently uploading.
File deletion has changed in the current develop branch of the OSF, such that clicking on the delete button brings up a modal confirmation dialog instead of immediately deleting the file. Tests involving file deletion are failing at the moment. To fix, tests should detect the confirmation modal and click the OK button. We should also add tests verifying that clicking the Cancel button, or pressing the escape key, does NOT delete the file.
component_access_tests.py
node_log_tests.py(done)
project_log_tests.py(done)
project_registration_tests.py (done)
user_login_tests.py(done)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.