Giter Site home page Giter Site logo

osf-ui-tests's People

Contributors

chennan47 avatar harryrybacki avatar jmcarp avatar lyndsysimon avatar rliebz avatar samportnow avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osf-ui-tests's Issues

Test that deleting a project also deletes its non-project children

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.

User-related tests should be run with usernames in various encodings

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.

Page object problem

Sometimes the tests using page object will create an unused page and never close it.

Uploaded image files should be embedded into their respective page.

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.

Reorganize vestigial tests

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.

Smart project tear down method

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.

[to test] Watch node button

  • User clicks the Watch button on a public project's page
  • User goes to her dashboard
  • User sees log items for the watched project

New tests need to be implemented

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

Node deletion no longer works due to OSF changes

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.

Behavior change on project / component deletion

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.

Project list in user dashboard

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.

Saucelab tests

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

Tests to add

  1. remove node log tests (done)
  2. new wiki page tests (done)
  3. private label

Randomly Test error

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.

Behavior change on file deletion

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.

Old Style tests need to be refacted

component_access_tests.py
node_log_tests.py(done)
project_log_tests.py(done)
project_registration_tests.py (done)
user_login_tests.py(done)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.