|
|
@ -57,20 +57,24 @@ export const genTest = (type, xcdb) => { |
|
|
|
let URL = jsonPayload.SWAGGER_URL |
|
|
|
let URL = jsonPayload.SWAGGER_URL |
|
|
|
Token = jsonPayload.AUTH_TOKEN |
|
|
|
Token = jsonPayload.AUTH_TOKEN |
|
|
|
|
|
|
|
|
|
|
|
cy.visit(URL) |
|
|
|
cy.visit(URL).then(() => { |
|
|
|
cy.log(Token) |
|
|
|
|
|
|
|
|
|
|
|
// wait to allow time for SWAGGER Library loading to finish
|
|
|
|
// validate; API order assumed
|
|
|
|
cy.wait(5000) |
|
|
|
cy.get('#operations-tag-Authentication').next().find('.opblock').should('has.length', 9) |
|
|
|
cy.log(Token) |
|
|
|
getSwaggerButton("Authentication", 0, "User login").should('exist') |
|
|
|
|
|
|
|
getSwaggerButton("Authentication", 1, "User signup").should('exist') |
|
|
|
// validate; API order assumed
|
|
|
|
getSwaggerButton("Authentication", 2, "Password Forgot").should('exist') |
|
|
|
cy.get('#operations-tag-Authentication', {timeout: 10000}).next().find('.opblock').should('has.length', 9) |
|
|
|
getSwaggerButton("Authentication", 3, "Email validate link").should('exist') |
|
|
|
getSwaggerButton("Authentication", 0, "User login").should('exist') |
|
|
|
getSwaggerButton("Authentication", 4, "Validate password reset token").should('exist') |
|
|
|
getSwaggerButton("Authentication", 1, "User signup").should('exist') |
|
|
|
getSwaggerButton("Authentication", 5, "Password reset").should('exist') |
|
|
|
getSwaggerButton("Authentication", 2, "Password Forgot").should('exist') |
|
|
|
getSwaggerButton("Authentication", 6, "User details").should('exist') |
|
|
|
getSwaggerButton("Authentication", 3, "Email validate link").should('exist') |
|
|
|
getSwaggerButton("Authentication", 7, "Update user details").should('exist') |
|
|
|
getSwaggerButton("Authentication", 4, "Validate password reset token").should('exist') |
|
|
|
getSwaggerButton("Authentication", 8, "Update user details").should('exist') |
|
|
|
getSwaggerButton("Authentication", 5, "Password reset").should('exist') |
|
|
|
|
|
|
|
getSwaggerButton("Authentication", 6, "User details").should('exist') |
|
|
|
|
|
|
|
getSwaggerButton("Authentication", 7, "Update user details").should('exist') |
|
|
|
|
|
|
|
getSwaggerButton("Authentication", 8, "Update user details").should('exist')
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|