This commit is contained in:
2021-12-18 00:49:46 +00:00
parent 5b986a9458
commit a42e8ae2ad
2 changed files with 30 additions and 27 deletions

View File

@@ -12,7 +12,10 @@
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
"open": "./node_modules/.bin/cypress open", "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": "", "author": "",
"license": "ISC" "license": "ISC"

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);
// }); });
// }); });
// }); });