This commit is contained in:
2021-12-16 20:50:42 +00:00
parent 6d81364178
commit 1d3fbc5352
2 changed files with 30 additions and 30 deletions

View File

@@ -2,13 +2,13 @@
"defaultCommandTimeout":10000, "defaultCommandTimeout":10000,
"integrationFolder": "tests", "integrationFolder": "tests",
"supportFile":"support", "supportFile":"support",
"xbaseUrl": "http://localhost:7575", "baseUrl": "http://localhost:7575",
"DEVOPS_baseUrl": "https://test.helloayanova.com", "xxxbaseUrl": "https://test.helloayanova.com",
"baseUrl":"http://localhost:8080", "xxbaseUrl":"http://localhost:8080",
"video":false, "video":false,
"env": { "env": {
"apiBaseUrl":"http://localhost:7575/api/v8.0/", "apiBaseUrl":"http://localhost:7575/api/v8.0/",
"DEVOPS_apiBaseUrl":"https://test.helloayanova.com/api/v8.0/", "xxapiBaseUrl":"https://test.helloayanova.com/api/v8.0/",
"adminusername": "superuser", "adminusername": "superuser",
"adminpassword": "l3tm3in", "adminpassword": "l3tm3in",
"accountinguser": "Accounting", "accountinguser": "Accounting",

View File

@@ -63,29 +63,29 @@ function confirmJobDone(jobId, authToken) {
} }
// before(() => { before(() => {
// cy.request({ cy.request({
// url: `${Cypress.env("apiBaseUrl")}auth`, url: `${Cypress.env("apiBaseUrl")}auth`,
// method: "POST", method: "POST",
// body: { body: {
// login: Cypress.env("adminusername"), login: Cypress.env("adminusername"),
// password: Cypress.env("adminpassword") password: Cypress.env("adminpassword")
// } }
// }) })
// .its("body") .its("body")
// .then((res) => { .then((res) => {
// cy.request({ cy.request({
// method: "POST", method: "POST",
// url: `${Cypress.env("apiBaseUrl")}trial/seed/small/-7/true`, url: `${Cypress.env("apiBaseUrl")}trial/seed/small/-7/true`,
// auth: { auth: {
// bearer: res.data.token bearer: res.data.token
// } }
// }) })
// .its("body") .its("body")
// .then((resjob) => { .then((resjob) => {
// cy.log(`resjob is: ${resjob}`); cy.log(`resjob is: ${resjob}`);
// // expect(resjob.body).to.have.property('jobId'); // expect(resjob.body).to.have.property('jobId');
// confirmJobDone(resjob.jobId, res.data.token); confirmJobDone(resjob.jobId, res.data.token);
// }); });
// }); });
// }); });