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

End-to-End Testing Viewing an Existing ValueChart #129

Open
aaronpmishkin opened this issue May 24, 2017 · 0 comments
Open

End-to-End Testing Viewing an Existing ValueChart #129

aaronpmishkin opened this issue May 24, 2017 · 0 comments

Comments

@aaronpmishkin
Copy link
Collaborator

aaronpmishkin commented May 24, 2017

Implement end-to-end tests for viewing ValueCharts using the "View Existing ValueChart" button on the home page. These tests should include the cases:

  1. Attempting to view a ValueChart that does not exist.
  2. Attempting to a view a ValueChart that exists using an invalid password/name combination.
  3. Successfully viewing a ValueChart with on only user (i.e. an individual ValueChart).
  4. Successfully viewing a ValueChart with more than one user (i.e. a group ValueChart).

// The following are for testing if a user can change preferences (when only viewing a chart):

  1. A user who is viewing a group ValueChart that they don't own is barred from changing the preferences
  2. A user who is viewing a group ValueChart that they own is barred from changing the preferences.
  3. A user who is viewing an individual ValueChart that they don't own is barred from changing the preferences in that ValueChart.
  4. A user who is viewing an individual ValueChart that they own AND who is the current user in that chart CAN change the preferences.
  5. A user who is viewing an individual ValueChart that they own BUT who is not the current user in that chart CANNOT change the preferences.

In the future, an explicit distinction will be added between the two types of charts - individual or group - that the user selects when they create the chart. This way, an individual chart will ALWAYS contain only the creator. Then, we will enable interactions for individual charts only. In that case, item 9 will no longer apply.

Include additional test cases as you see fit.

vw511 added a commit that referenced this issue Jun 3, 2017
vw511 added a commit that referenced this issue Jun 4, 2017
vw511 added a commit that referenced this issue Jun 15, 2017
# Conflicts:
#	test/client/e2e/login.test.ts
#	test/client/e2e/myAccount.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants