You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cypress/e2e/test_crud.cy.js
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ describe('Create a new user', () => {
9
9
method: 'POST',
10
10
url: '/public/v2/users',
11
11
headers: {
12
-
'authorization': 'Bearer '+Cypress.env('access_token'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
12
+
'authorization': 'Bearer '+Cypress.env('ACCESS_TOKEN'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
13
13
},
14
14
body: {
15
15
"name": userName,
@@ -36,7 +36,7 @@ describe('Get user details', () => {
36
36
method: 'GET',
37
37
url: `/public/v2/users/${userId}`,
38
38
headers: {
39
-
'authorization': 'Bearer '+Cypress.env('access_token'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
39
+
'authorization': 'Bearer '+Cypress.env('ACCESS_TOKEN'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
@@ -55,7 +55,7 @@ describe('Update user details', () => {
55
55
method: 'PUT',
56
56
url: `/public/v2/users/${userId}`,
57
57
headers: {
58
-
'authorization': 'Bearer '+Cypress.env('access_token'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
58
+
'authorization': 'Bearer '+Cypress.env('ACCESS_TOKEN'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
59
59
},
60
60
body: {
61
61
"name": "Updated Name",
@@ -80,7 +80,7 @@ describe('Delete user', () => {
80
80
method: 'DELETE',
81
81
url: `/public/v2/users/${userId}`,
82
82
headers: {
83
-
'authorization': 'Bearer '+Cypress.env('access_token'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
83
+
'authorization': 'Bearer '+Cypress.env('ACCESS_TOKEN'),// Generate access token from https://gorest.co.in/consumer/login and add the same to cypress.env.json
0 commit comments