mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
describe("Verification request", () => {
|
|
it("lists", () => {
|
|
cy.login();
|
|
cy.createAdminUnit().then(function (adminUnitId) {
|
|
cy.createIncomingVerificationRequest(adminUnitId).then(function (
|
|
requestId
|
|
) {
|
|
cy.visit(
|
|
"/manage/admin_unit/" + adminUnitId + "/verification_requests/incoming"
|
|
);
|
|
cy.screenshot("incoming");
|
|
});
|
|
});
|
|
});
|
|
|
|
it("creates", () => {
|
|
cy.login();
|
|
cy.createAdminUnit().then(function (adminUnitId) {
|
|
cy.createAdminUnit("test@test.de", "Other Crew", false).then(function (otherAdminUnitId) {
|
|
cy.visit("/manage/admin_unit/" + otherAdminUnitId + "/verification_requests/outgoing/create/select");
|
|
cy.screenshot("create-select");
|
|
cy.get(".btn-primary:first").click();
|
|
|
|
cy.url().should("include", "/verification_requests/outgoing/create/target");
|
|
cy.screenshot("create");
|
|
cy.get("#submit").click();
|
|
|
|
cy.url().should("include", "/verification_requests/outgoing");
|
|
cy.screenshot("outgoing");
|
|
});
|
|
});
|
|
});
|
|
});
|