|
|
|
@ -57,11 +57,14 @@ export const genTest = (type, xcdb) => {
|
|
|
|
|
let URL = jsonPayload.SWAGGER_URL |
|
|
|
|
Token = jsonPayload.AUTH_TOKEN |
|
|
|
|
|
|
|
|
|
cy.visit(URL) |
|
|
|
|
cy.visit(URL).then(() => { |
|
|
|
|
|
|
|
|
|
// wait to allow time for SWAGGER Library loading to finish
|
|
|
|
|
cy.wait(5000) |
|
|
|
|
cy.log(Token) |
|
|
|
|
|
|
|
|
|
// validate; API order assumed
|
|
|
|
|
cy.get('#operations-tag-Authentication').next().find('.opblock').should('has.length', 9) |
|
|
|
|
cy.get('#operations-tag-Authentication', {timeout: 10000}).next().find('.opblock').should('has.length', 9) |
|
|
|
|
getSwaggerButton("Authentication", 0, "User login").should('exist') |
|
|
|
|
getSwaggerButton("Authentication", 1, "User signup").should('exist') |
|
|
|
|
getSwaggerButton("Authentication", 2, "Password Forgot").should('exist') |
|
|
|
@ -73,6 +76,7 @@ export const genTest = (type, xcdb) => {
|
|
|
|
|
getSwaggerButton("Authentication", 8, "Update user details").should('exist')
|
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
it("Authorize success: Valid token", ()=> { |
|
|
|
|
// authorize button, feed token, click authorize
|
|
|
|
|