Skip to content

Commit

Permalink
refactor(tests): Change argument name for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Aug 6, 2024
1 parent f556588 commit 1c576ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Cypress.Commands.add('submitTemplateFields', (fields) => {
cy.get('@templateFillerButtons').find('button[aria-label="Submit button"]').click()
})

Cypress.Commands.add('verifyTemplateFields', (fields, templateId) => {
Cypress.Commands.add('verifyTemplateFields', (fields, fileId) => {
const apiEndpoint = '/ocs/v2.php/apps/richdocuments/api/v1/template/fields/extract/'

cy.request('/csrftoken')
Expand All @@ -285,7 +285,7 @@ Cypress.Commands.add('verifyTemplateFields', (fields, templateId) => {
cy.get('@requestToken').then(requesttoken => {
cy.request({
method: 'GET',
url: Cypress.env('baseUrl') + apiEndpoint + templateId + '?format=json',
url: Cypress.env('baseUrl') + apiEndpoint + fileId + '?format=json',
headers: {
requesttoken
},
Expand Down

0 comments on commit 1c576ec

Please sign in to comment.