Commit Graph

13 Commits

Author SHA1 Message Date
Landon Wilkins c12f8666df da licença part 62
add consistent license headers to all source files

Change-Id: Ia3107f34470b6e8687df2baed79fed58a728f240
Reviewed-on: https://gerrit.instructure.com/110313
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-05-01 21:24:33 +00:00
MFairbourn e9a662abca specs: small refactor to clean up specs to use dismiss flash messages
Test Plan:
- Code Review
- Pass Jenkins

Change-Id: I6043af08be71d768af84a1b3363686dc9715a25a
Reviewed-on: https://gerrit.instructure.com/98825
Tested-by: Jenkins
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2017-01-04 23:11:52 +00:00
Jeremy Stanley f2125b37f2 update selenium-webdriver to 2.53.0
for compatibility with firefox 44

!

main problem is that labels for checkboxes are blocking
 them from being clicked on

Change-Id: I85d3572d47ed95249f7216e5e102b4d398168251
Reviewed-on: https://gerrit.instructure.com/73207
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-04-20 11:16:18 +00:00
MFairbourn c28cf0430c spec: fix specs to run in chrome
test plan:
- Specs pass
- Code review

Change-Id: Ia0c712d536a501ffad61a76b49e006d919ad8796
Reviewed-on: https://gerrit.instructure.com/75122
Tested-by: Jenkins
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2016-03-23 02:48:55 +00:00
Brad Horrocks 3fee901ac0 Remove Google Docs plugin
Google drive relevant code has been moved to the gems/google_drive
Actually test google drive with mocked api responses
cleaned up lots of code

Fixes PLAT-1301

Test Plan:
*** You'll need to use 2 separate google accounts to fully test ***
** Its helpful to have multiple chrome profiles so you dont have to log in and
** out a bunch https://support.google.com/chrome/answer/2364824?hl=en

BEFORE SWITCHING TO THIS PATCH SET
  - Make sure you have some google doc collaborations
    - Directions for creating one are below
  - Disable your google docs plugin

Switch to the patch set
Enable google drive. (if not already)
  - You should be able to paste in a client_secrets.json
  - Update Redirect URI to point to your local instance (The URI should exist in the JSON)

As an admin/teacher
  - Goto `profile/settings` and add the google drive user service
    - Your email should be displayed with the service
  - Goto Collaborations
    - Make sure existing collaborations still work
    - Click "Start new collaboration"
    - give it a nice name (Created by admin)
    - select your student
    - click start collaborating
    - You should be redirected to the new doc in google
    - create another collaboration without the student (Created by admin, no users)
  - Create an assignment with
    Submission Type: Online
    Online Entry Options: File Uploads
  - Make sure your student has access to the course/assignment
  - Goto Account settings -> Users
    - Click View User Groups in the top right
    - create a new group set with a group in it
    - add yourself and your student to the group
  - Goto the Group's Collaborations (Courses & Groups -> [group name] -> Collaborations)
    - Click "Start new collaboration"
    - give it a nice name (Created by admin for group)
    - select your student
    - click start collaborating
    - You should be redirected to the new doc in google

As a student
  - Goto `profile/settings` and add the google drive user service
    - Your email should be displayed with the service
  - Goto the assignment
    - Submit the assignment
    - You should have a "Google Doc" tab
    - Choose a document and submit it
    - After it submitted, click download on the right side
      just to make sure its correct
  - Goto Collaborations
    - Make sure existing collaborations still work
    - make sure the "created by admin" collaboration works
    - make sure you can't see "Created by admin, no users"
    - Click "Start new collaboration"
    - give it a nice name (created by a student)
    - click start collaborating
    - You should be redirected to the new doc in google
    - Switch to your admin/teacher and make sure they can't access it
    - Edit the collaboration add the teacher, click Save
    - Switch to your admin/teacher and make sure they can access it
  - Goto `profile/settings` and REMOVE the google drive user service
  - Go back to collaborations
  - You should be forced to add the google service in order to use a collaboration
  - Goto the Group's Collaborations (Courses & Groups -> [group name] -> Collaborations)
    - Make sure you can access "Created by admin for group"
    - Click "Start new collaboration"
    - select your admin/teacher
    - click start collaborating
    - You should be redirected to the new doc in google
    - make sure your admin can access it to

As a site admin
  - Disable Google Drive
  - Then with your student
    - Make sure you can still do file upload submissions on the assignment
    - Collaborations should no longer show up (unless you have etherpad enabled)
  - Google drive should no longer show up in your profile settings as a registered service
Change-Id: I4dfaff6f5262743c044aadd12266fd0bd85a60e1
Reviewed-on: https://gerrit.instructure.com/69078
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brad Horrocks <bhorrocks@instructure.com>
2016-02-01 23:41:53 +00:00
Michael Hargiss cc4b21444b spec: add modules to helper files
Test Plan:
 - Pass Jenkins

Change-Id: I2b5f8e9b5e9ab1c2bb0ecd38c440ee6d4ab031b8
Reviewed-on: https://gerrit.instructure.com/67155
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Product-Review: Robert Lamb <rlamb@instructure.com>
QA-Review: Robert Lamb <rlamb@instructure.com>
2015-11-14 01:03:21 +00:00
cguanzon 35b9cae005 spec:selenium: in-process server selenium tests is now a context
- reasoning: this group contains set-up and teardown,
  it does not include 'it' blocks

Change-Id: I1803420a5c7f59246f3af211e42ced808a994c3f
Reviewed-on: https://gerrit.instructure.com/60329
Tested-by: Jenkins
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-07 23:24:00 +00:00
MFairbourn 08333fbeac fixed some collaboration methods to be consistant, added test_id
Test Plan:
-Passes Jenkins
-Check for syntax errors

Change-Id: Ic534dd3ab41af952d10733f676b7718c05c1cf4e
Reviewed-on: https://gerrit.instructure.com/57927
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-07-09 03:05:37 +00:00
Derek Hansen 0626907836 Removed two dupliate specs
Change-Id: I75210954fc673886ea500aa909f4706c5284ad25
Reviewed-on: https://gerrit.instructure.com/57713
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-07-07 17:35:42 +00:00
Derek Hansen e0bd008628 Removed depricated etherpad specs
Change-Id: I4df0060248f8d575770503dc9417b6020583ac0a
Reviewed-on: https://gerrit.instructure.com/57711
Tested-by: Jenkins
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-07-06 15:53:42 +00:00
Derek Hansen bf6dbb2503 Switch out old style hashrockets
Change-Id: I4c1b60087202a9a0f9192c17a7b2a3c1a39a23ba
Reviewed-on: https://gerrit.instructure.com/57710
Tested-by: Jenkins
Reviewed-by: Alex Boyd <aboyd@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-07-05 14:46:26 +00:00
Derek Hansen 2715d5d021 Google Drive assignment submission selenium specs
Test plan:
- Pass Jenkins

Change-Id: I183dcb617675af36f49d6b4b71641804f8e5b6ba
Reviewed-on: https://gerrit.instructure.com/51359
Tested-by: Jenkins
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-04-17 22:21:29 +00:00
Derek Hansen 8220e60906 Initial commit and refactor for google drive
Test plan:
- Pass jenkins

Change-Id: I6091aa0e68e2bbff7bdb6ca96fd4525d803c2b5a
Reviewed-on: https://gerrit.instructure.com/49479
Tested-by: Jenkins
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-03-19 03:45:24 +00:00