Skip to content

Commit

Permalink
Merge pull request #5961 from avalonmediasystem/cypress_charumitra__3
Browse files Browse the repository at this point in the history
Cypress Automation - Item, playlist , login , media object specs
  • Loading branch information
cjcolvar authored Aug 7, 2024
2 parents 37cfbea + 38e81c8 commit 07b47e1
Show file tree
Hide file tree
Showing 18 changed files with 2,008 additions and 331 deletions.
2 changes: 1 addition & 1 deletion spec/cypress/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {

// implement node event listeners here
const environmentName = process.env.CYPRESS_ENV || 'local';
const environmentName = process.env.CYPRESS_ENV || 'dev';
const environmentFilename = `cypress.env.${environmentName}.json`;
const environmentPath = path.resolve(__dirname, environmentFilename);

Expand Down
22 changes: 16 additions & 6 deletions spec/cypress/cypress.env.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
"env": {
"MEDIA_OBJECT_ID": "fj236208t",
"MEDIA_OBJECT_TITLE":"Beginning Responsibility: Lunchroom Manners",
"SEARCH_COLLECTION":"7.7 regression test",
"USERS_ADMINISTRATOR_EMAIL": "admin_email",
"USERS_ADMINISTRATOR_PASSWORD": "placeholder_password",
"USERS_USER_EMAIL":"user_email",
"USERS_USER_PASSWORD": "placeholder_password",
"USER_MANAGER": "userstudy"
"MEDIA_OBJECT_ID_2": "sj1391978",
"MEDIA_OBJECT_TITLE_2":"Cypress automation test media object",
"MEDIA_OBJECT_CAPTION_2":"sample.vtt",
"SEARCH_COLLECTION":"_Cypress automation collection",
"USERS_ADMINISTRATOR_USERNAME":"admin username",
"USERS_ADMINISTRATOR_EMAIL": "admin email",
"USERS_ADMINISTRATOR_PASSWORD": "admin pass",
"USERS_USER_USERNAME":"some basic user's username",
"USERS_USER_EMAIL":"user email",
"USERS_USER_PASSWORD": "user password",
"USER_MANAGER_USERNAME": "placeholder manager name - must be manager of SEARCH_COLLECTION",
"USER_MANAGER_EMAIL": "manager email",
"USER_MANAGER_PASSWORD": "manager password",
"MEDIA_OBJECT_FIELD_MAIN_CONTRIBUTOR": "Coronet Films",
"MEDIA_OBJECT_FIELD_GENRE": "Automation genre",
"MEDIA_OBJECT_FIELD_LANGUAGE": "Spanish"
}
}
19 changes: 18 additions & 1 deletion spec/cypress/cypress.env.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
{
"baseUrl": "http://localhost:3000",
"env": {

"MEDIA_OBJECT_ID": "11111111",
"MEDIA_OBJECT_TITLE":"Beginning Responsibility: Lunchroom Manners",
"MEDIA_OBJECT_ID_2": "12345679",
"MEDIA_OBJECT_TITLE_2":"Cypress automation test media object",
"MEDIA_OBJECT_CAPTION_2":"sample.vtt",
"SEARCH_COLLECTION":"_Cypress automation collection",
"USERS_ADMINISTRATOR_USERNAME":"admin username",
"USERS_ADMINISTRATOR_EMAIL": "admin email",
"USERS_ADMINISTRATOR_PASSWORD": "admin pass",
"USERS_USER_USERNAME":"some basic user's username",
"USERS_USER_EMAIL":"user email",
"USERS_USER_PASSWORD": "user password",
"USER_MANAGER_USERNAME": "placeholder manager name - must be manager of SEARCH_COLLECTION",
"USER_MANAGER_EMAIL": "manager email",
"USER_MANAGER_PASSWORD": "manager password",
"MEDIA_OBJECT_FIELD_MAIN_CONTRIBUTOR": "Coronet Films",
"MEDIA_OBJECT_FIELD_GENRE": "Automation genre",
"MEDIA_OBJECT_FIELD_LANGUAGE": "Spanish"
}
}
25 changes: 19 additions & 6 deletions spec/cypress/cypress.env.staging.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"baseUrl": "https://avalon-staging.dlib.indiana.edu/",
"env": {
"MEDIA_OBJECT_TITLE":"Beginning Responsibility: Lunchroom Manners",
"USERS_ADMINISTRATOR_EMAIL": "admin_email",
"USERS_ADMINISTRATOR_PASSWORD": "placeholder_password",
"USERS_USER_EMAIL":"user_email",
"USERS_USER_PASSWORD": "placeholder_password"
}
"MEDIA_OBJECT_ID": "n009w228g",
"MEDIA_OBJECT_TITLE":"Beginning Responsibility: Lunchroom Manners",
"MEDIA_OBJECT_ID_2": "2r36tx569",
"MEDIA_OBJECT_TITLE_2":"Cypress automation test media object",
"MEDIA_OBJECT_CAPTION_2":"sample.vtt",
"SEARCH_COLLECTION":"_Cypress automation collection",
"USERS_ADMINISTRATOR_USERNAME":"admin username",
"USERS_ADMINISTRATOR_EMAIL": "admin email",
"USERS_ADMINISTRATOR_PASSWORD": "admin pass",
"USERS_USER_USERNAME":"some basic user's username",
"USERS_USER_EMAIL":"user email",
"USERS_USER_PASSWORD": "user password",
"USER_MANAGER_USERNAME": "placeholder manager name - must be manager of SEARCH_COLLECTION",
"USER_MANAGER_EMAIL": "manager email",
"USER_MANAGER_PASSWORD": "manager password",
"MEDIA_OBJECT_FIELD_MAIN_CONTRIBUTOR": "Coronet Films",
"MEDIA_OBJECT_FIELD_GENRE": "Automation genre",
"MEDIA_OBJECT_FIELD_LANGUAGE": "Spanish"
}
}
84 changes: 84 additions & 0 deletions spec/cypress/fixtures/captions-example.srt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
1
00:00:01,420 --> 00:00:05,120
Hiring a transcriber saves time and resources.

2
00:00:05,460 --> 00:00:08,340
Professional transcribers will ensure

3
00:00:08,520 --> 00:00:11,600
that your audio file is translated into text

4
00:00:11,760 --> 00:00:12,660
accurately

5
00:00:12,720 --> 00:00:13,880
and efficiently.

6
00:00:14,200 --> 00:00:17,600
Transcribers are trained and tested in certain niches

7
00:00:17,860 --> 00:00:19,600
from legal and medical

8
00:00:19,700 --> 00:00:20,920
to academic.

9
00:00:21,100 --> 00:00:22,160
Here's how it works.

10
00:00:22,400 --> 00:00:24,700
First, an audio file is received.

11
00:00:25,200 --> 00:00:28,000
Next, the file is pre-screened

12
00:00:28,000 --> 00:00:30,520
to be matched with the perfect transcriber

13
00:00:30,520 --> 00:00:33,960
who is then assigned the task of creating the transcript.

14
00:00:34,220 --> 00:00:36,180
Once the transcript is created,

15
00:00:36,420 --> 00:00:39,800
the document goes through rigorous quality-control channels

16
00:00:39,880 --> 00:00:42,200
before being submitted to the client.

17
00:00:42,540 --> 00:00:45,420
We provide uncompromising quality,

18
00:00:45,800 --> 00:00:47,460
rates within your budget,

19
00:00:47,460 --> 00:00:49,460
timely and convenient delivery.

20
00:00:49,600 --> 00:00:51,160
Upload your file now.

21
00:00:51,240 --> 00:00:53,160
We do the rest.

Binary file added spec/cypress/fixtures/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added spec/cypress/fixtures/test_sample.mp4
Binary file not shown.
Loading

0 comments on commit 07b47e1

Please sign in to comment.