|
|
@ -7,12 +7,12 @@ import { isTestSuiteActive } from "../../support/page_objects/projectConstants" |
|
|
|
export const genTest = (type, xcdb) => { |
|
|
|
export const genTest = (type, xcdb) => { |
|
|
|
if(!isTestSuiteActive(type, xcdb)) return; |
|
|
|
if(!isTestSuiteActive(type, xcdb)) return; |
|
|
|
|
|
|
|
|
|
|
|
describe(`Swagger API - Test preparation`, () => { |
|
|
|
describe(`${type.toUpperCase()} : API List - Test preparation`, () => { |
|
|
|
before(()=> { |
|
|
|
before(()=> { |
|
|
|
loginPage.loginAndOpenProject(type, false) |
|
|
|
loginPage.loginAndOpenProject(type, false) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
it("[REST] open project & record swagger URL, AuthToken", () => { |
|
|
|
it("Open project & record swagger URL, AuthToken", () => { |
|
|
|
let authToken = mainPage.getAuthToken() |
|
|
|
let authToken = mainPage.getAuthToken() |
|
|
|
cy.url().then( (url) => { |
|
|
|
cy.url().then( (url) => { |
|
|
|
// retrieve project name from URL & use it to construct Swagger URL
|
|
|
|
// retrieve project name from URL & use it to construct Swagger URL
|
|
|
|