Coder Social home page Coder Social logo

cadasta-test's People

Contributors

alukach avatar amplifi avatar manoramahp avatar oliverroick avatar seav avatar shailysangwan avatar wonderchook avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cadasta-test's Issues

Specify which test to run

I would like to be able to narrow down which tests are run each time so that I have the option of running All, Category (i.e. accounts) or Specific Test (i.e. PasswordReset) rather than having to fun all of them every time.

Leaves behind test objects

Every time you run the tests, it creates a new organization and a new project that are not removed at the end of the tests. If you have to run the tests multiple times, it really clutters up the database, which isn't a huge issue for local envs, but might be more of an issue for running it against staging if we plan on doing that.

Implement Imports test cases

Note: Imports test cases can be tested using dev VM. (Exports test cases cannot be easily implemented because of lack of access to backend infrastructure.)

Implement Projects test cases #B8, #B9, and #B28 [map interaction]

#B8: Org member can see all org projects on the site dashboard
#B9: Non-org member can only see public projects on the site dashboard
#B28: Anonymous member can only see public projects on the site dashboard

These test cases require map interaction/inspection for the site dashboard map.

Functional tests stop running without error or termination

Functional tests intermittently stop running, without any error or explicit termination. I've seen this both on Travis builds and locally.

Examples:

.tox/py35-functional-batch3/lib/python3.5/site-packages/cadasta/test/record_tests/test_tenure_relationship_creation.py::TestTenureRelationshipCreation::test_user_can_create_custom_rel_with_new_conditional_individual 
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated
.tox/py35-functional-batch2/lib/python3.5/site-packages/cadasta/test/project_tests/test_browsing.py::TestBrowsing::test_org_member_can_see_all_org_projects_on_projects_lists 
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

Implement Search UI test cases

Some Search test cases can be implemented even without the Elasticsearch infrastructure such as the following:

#S8: Search bar pops up when clicking the search tab
#S9: Nothing pops up when clicking the search tab on the search page
#S10: Sidebar search bar is activated by clicking the search button
#S11: Sidebar search bar is activated by pressing the return key

Implement Projects test case #B6

#B6: Public user cannot view project data

Note: The test script assumes that the public user cannot view the Data, Parties, and Resources list pages since the project sidebar is missing. Currently, the user can go to these pages by modifying the URL but cannot actually view individual locations, parties, or resources.

Upgrade to python3?

This is more of a question: Since the Cadasta Platform is set-up for python3, my dev environment has python3 set as the default. I ran into several conflicts because these tests were looking for files in the python2 directory that existed in the python3 directory. Maybe it would make sense to have a python3 branch so that we have the option of both?

Set fixed screensize

Certain elements are out of view at different screen sizes. To prevent conflicts when switching from screen size to screen size, we should run set_window_size at the beginning of each test for consistency.

Implement Projects user management test cases

This includes changing roles of org members from one role to another and checking that the user has indeed been granted/revoked permissions. Or we can just check that the updated roles are reflected in project member lists and assume that their indicated role does have the correct permissions as tested by other existing implemented test cases (e.g., only project manager can upload questionnaire, or only data collector can create records, or only project user can view records).

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.