This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"open": "./node_modules/.bin/cypress open",
|
||||
"smoke-ff": "./node_modules/.bin/cypress run --browser firefox --spec ./tests/regression/smoke/*.js"
|
||||
"all-chrome": "./node_modules/.bin/cypress run --browser chrome",
|
||||
"all-ff": "./node_modules/.bin/cypress run --browser firefox",
|
||||
"smoke-ff": "./node_modules/.bin/cypress run --browser firefox --spec ./tests/regression/1-smoke/*.js",
|
||||
"smoke-chrome": "./node_modules/.bin/cypress run --browser chrome --spec ./tests/regression/1-smoke/*.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
|
||||
@@ -63,29 +63,29 @@ function confirmJobDone(jobId, authToken) {
|
||||
}
|
||||
|
||||
|
||||
// before(() => {
|
||||
// cy.request({
|
||||
// url: `${Cypress.env("apiBaseUrl")}auth`,
|
||||
// method: "POST",
|
||||
// body: {
|
||||
// login: Cypress.env("adminusername"),
|
||||
// password: Cypress.env("adminpassword")
|
||||
// }
|
||||
// })
|
||||
// .its("body")
|
||||
// .then((res) => {
|
||||
// cy.request({
|
||||
// method: "POST",
|
||||
// url: `${Cypress.env("apiBaseUrl")}trial/seed/small/-7/true`,
|
||||
// auth: {
|
||||
// bearer: res.data.token
|
||||
// }
|
||||
// })
|
||||
// .its("body")
|
||||
// .then((resjob) => {
|
||||
// cy.log(`resjob is: ${resjob}`);
|
||||
// // expect(resjob.body).to.have.property('jobId');
|
||||
// confirmJobDone(resjob.jobId, res.data.token);
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
before(() => {
|
||||
cy.request({
|
||||
url: `${Cypress.env("apiBaseUrl")}auth`,
|
||||
method: "POST",
|
||||
body: {
|
||||
login: Cypress.env("adminusername"),
|
||||
password: Cypress.env("adminpassword")
|
||||
}
|
||||
})
|
||||
.its("body")
|
||||
.then((res) => {
|
||||
cy.request({
|
||||
method: "POST",
|
||||
url: `${Cypress.env("apiBaseUrl")}trial/seed/small/-7/true`,
|
||||
auth: {
|
||||
bearer: res.data.token
|
||||
}
|
||||
})
|
||||
.its("body")
|
||||
.then((resjob) => {
|
||||
cy.log(`resjob is: ${resjob}`);
|
||||
// expect(resjob.body).to.have.property('jobId');
|
||||
confirmJobDone(resjob.jobId, res.data.token);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user