32 lines
942 B
JavaScript
32 lines
942 B
JavaScript
// Basic smoke test, visit every form to ensure they load
|
|
|
|
describe("SMOKE SETUP", () => {
|
|
it("Generates test data without issue", () => {
|
|
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: ${JSON.stringify(resjob)}`);
|
|
// expect(resjob.body).to.have.property('jobId');
|
|
confirmJobDone(resjob.jobId, res.data.token);
|
|
});
|
|
});
|
|
//-----------------------------------------------------
|
|
});
|
|
});
|