/
var
/
www
/
html
/
subscription-test-cases
/
Upload File
HOME
{ "stats": { "suites": 155, "tests": 177, "passes": 158, "pending": 0, "failures": 19, "start": "2021-01-22T01:00:59.124Z", "end": "2021-01-22T01:00:59.124Z", "duration": 24261409, "testsRegistered": 177, "passPercent": 89.26553672316385, "pendingPercent": 0, "other": 0, "hasOther": false, "skipped": 0, "hasSkipped": false }, "results": [ { "uuid": "6aa492c8-7f8d-4cf6-a169-f716015523c5", "title": "", "fullFile": "cypress/integration/p-portal/1-login/1-login_spec.js", "file": "cypress/integration/p-portal/1-login/1-login_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "dda67738-6e10-4394-bc36-2b419dfce03e", "title": "Login to the Customer Portal", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": " I enter <Users Email> and <Password> and I hit 'Sign in' CTA", "fullTitle": "Login to the Customer Portal I enter <Users Email> and <Password> and I hit 'Sign in' CTA", "timedOut": null, "duration": 6277, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit('/portal/login');\ncy.loginPortal('abc@xyz.com', 'test1234');", "err": {}, "uuid": "9133df0c-07d4-4d96-a839-7e2812aa4500", "parentUUID": "dda67738-6e10-4394-bc36-2b419dfce03e", "isHook": false, "skipped": false }, { "title": "I should be on the customer's portal Dashboard/home page", "fullTitle": "Login to the Customer Portal I should be on the customer's portal Dashboard/home page", "timedOut": null, "duration": 53, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.navbar-brand').contains('Dashboard');", "err": {}, "uuid": "5b46e9fa-f9bd-43c0-bd37-3f5f3f40f21f", "parentUUID": "dda67738-6e10-4394-bc36-2b419dfce03e", "isHook": false, "skipped": false }, { "title": "I should see \"Welcome <Username>\" ", "fullTitle": "Login to the Customer Portal I should see \"Welcome <Username>\" ", "timedOut": null, "duration": 25, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.contains('Welcome');", "err": {}, "uuid": "ee2c33a4-8f95-4772-865a-0916a1ecb35b", "parentUUID": "dda67738-6e10-4394-bc36-2b419dfce03e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9133df0c-07d4-4d96-a839-7e2812aa4500", "5b46e9fa-f9bd-43c0-bd37-3f5f3f40f21f", "ee2c33a4-8f95-4772-865a-0916a1ecb35b" ], "failures": [], "pending": [], "skipped": [], "duration": 6355, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c9178b2f-715f-4ecf-9984-f7a7e6cdaa7a", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/1-add-payment-method.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/1-add-payment-method.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f6f0f016-5c40-41db-bb60-acb016b9632c", "title": "Add payment method for ACH using Stripe (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for ACH using Stripe (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 120177, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "1a80a0b8-ac80-4d4b-9f90-a860748b2fa2", "parentUUID": "f6f0f016-5c40-41db-bb60-acb016b9632c", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for ACH using Stripe (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 91426, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "1baed05f-732b-46ce-a5d6-3de0158872cd", "parentUUID": "f6f0f016-5c40-41db-bb60-acb016b9632c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1a80a0b8-ac80-4d4b-9f90-a860748b2fa2", "1baed05f-732b-46ce-a5d6-3de0158872cd" ], "failures": [], "pending": [], "skipped": [], "duration": 211603, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "298f7b00-2943-4562-84b2-02bef123e73c", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/2-Add_payment_method_for_valid_credit_card_using_Stripe_PortalFlow.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/2-Add_payment_method_for_valid_credit_card_using_Stripe_PortalFlow.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0250c7fd-c719-4b0c-ac8f-cdc63005f83b", "title": "Add payment method for valid credit card using Stripe (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for valid credit card using Stripe (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 119441, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "// cy.get('.col-4 .btn.btn-danger').click({force:true})\n// Default Payment\ncy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "82aa94ea-6c88-4626-b10e-305fa12ddc09", "parentUUID": "0250c7fd-c719-4b0c-ac8f-cdc63005f83b", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for valid credit card using Stripe (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 76659, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "e1cd809c-7601-4716-83d1-4ac171692aa0", "parentUUID": "0250c7fd-c719-4b0c-ac8f-cdc63005f83b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "82aa94ea-6c88-4626-b10e-305fa12ddc09", "e1cd809c-7601-4716-83d1-4ac171692aa0" ], "failures": [], "pending": [], "skipped": [], "duration": 196100, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a7bef419-f743-406b-8626-0c1a42933cd8", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/3-Add_payment_method_for_stolen_credit_card_using_Stripe_PortalFlow.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/3-Add_payment_method_for_stolen_credit_card_using_Stripe_PortalFlow.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "79f550cb-077e-41a3-8cc9-489a366d9039", "title": "Add payment method for stolen credit card using Stripe (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for stolen credit card using Stripe (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 123872, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "// cy.get('.col-4 .btn.btn-danger').click({force:true})\n// Default Payment\ncy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "f33f9cd4-4346-434a-ac99-06dc1e12cd29", "parentUUID": "79f550cb-077e-41a3-8cc9-489a366d9039", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for stolen credit card using Stripe (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 60297, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "743ce6f5-1208-4307-9fed-33ceee654d93", "parentUUID": "79f550cb-077e-41a3-8cc9-489a366d9039", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f33f9cd4-4346-434a-ac99-06dc1e12cd29", "743ce6f5-1208-4307-9fed-33ceee654d93" ], "failures": [], "pending": [], "skipped": [], "duration": 184169, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "506cc60a-f17e-470d-a0f9-71df83e8d105", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/4-Add_payment_method_for_credit_card_using_Authorize.Net_PortalFlow.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/4-Add_payment_method_for_credit_card_using_Authorize.Net_PortalFlow.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0f70c75a-3733-4577-9a0b-46d1f62e3125", "title": "Add payment method for credit card using Authorize.net (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for credit card using Authorize.net (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 115541, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "// Default Payment\ncy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "8afbcaa1-09f5-4bfa-b5f5-c9c1fd742561", "parentUUID": "0f70c75a-3733-4577-9a0b-46d1f62e3125", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for credit card using Authorize.net (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 64980, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "d49f7d22-a964-49a6-8f2f-67d6431ec772", "parentUUID": "0f70c75a-3733-4577-9a0b-46d1f62e3125", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8afbcaa1-09f5-4bfa-b5f5-c9c1fd742561", "d49f7d22-a964-49a6-8f2f-67d6431ec772" ], "failures": [], "pending": [], "skipped": [], "duration": 180521, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "17c8624d-223b-4553-8218-b08c679ed57e", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/5-Add_payment_method_for_ACH_using_Authorize.Net_PortalFlow.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/5-Add_payment_method_for_ACH_using_Authorize.Net_PortalFlow.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "34b9d715-23a9-464b-9980-0cb3f8ffac44", "title": "Add payment method for credit card using Authorize.net (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for credit card using Authorize.net (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 112307, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "// Default Payment\ncy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "e747aa1e-8edf-453d-8fb5-eefb5f5819cd", "parentUUID": "34b9d715-23a9-464b-9980-0cb3f8ffac44", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for credit card using Authorize.net (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 79543, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "f6489010-3930-483f-aff1-020f65d6e212", "parentUUID": "34b9d715-23a9-464b-9980-0cb3f8ffac44", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e747aa1e-8edf-453d-8fb5-eefb5f5819cd", "f6489010-3930-483f-aff1-020f65d6e212" ], "failures": [], "pending": [], "skipped": [], "duration": 191850, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8ae06872-e27d-4b86-b969-21391fa7ac31", "title": "", "fullFile": "cypress/integration/p-portal/4-payment-methods/6-Add_payment_method_for_Paypal_express_checkout_PortalFlow.spec.js", "file": "cypress/integration/p-portal/4-payment-methods/6-Add_payment_method_for_Paypal_express_checkout_PortalFlow.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "da3a16f1-a770-4dcd-b52f-562481ef348f", "title": "Add payment method for PayPal Express Checkout (PortalFlow)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Subscriptionflow and delete existing payment methods", "fullTitle": "Add payment method for PayPal Express Checkout (PortalFlow) Go to Subscriptionflow and delete existing payment methods", "timedOut": null, "duration": 106059, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "// Default Payment\ncy.visit(\"https://test.subscriptionflow.com/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('PayPal Express Checkout').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000); // Delete payment methods\ncy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(8000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n return false;\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});", "err": {}, "uuid": "c9721b63-ead2-435e-b417-0cbcd51da272", "parentUUID": "da3a16f1-a770-4dcd-b52f-562481ef348f", "isHook": false, "skipped": false }, { "title": "Add payment method from Portal", "fullTitle": "Add payment method for PayPal Express Checkout (PortalFlow) Add payment method from Portal", "timedOut": null, "duration": 61171, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "addPaymentMethod();", "err": {}, "uuid": "7ae31e28-c6bf-4d5e-8999-a152684076e0", "parentUUID": "da3a16f1-a770-4dcd-b52f-562481ef348f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c9721b63-ead2-435e-b417-0cbcd51da272", "7ae31e28-c6bf-4d5e-8999-a152684076e0" ], "failures": [], "pending": [], "skipped": [], "duration": 167230, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "dd7e9c7d-0632-47fd-a2f5-2e9fa5c0909d", "title": "", "fullFile": "cypress/integration/SF/a-dashboard/1-login_spec.js", "file": "cypress/integration/SF/a-dashboard/1-login_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c3cf4cfc-88c9-4300-b294-67a3f7b63660", "title": "Login to the site", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": " I enter <Users Email> and <Password> and I hit 'Sign in' CTA", "fullTitle": "Login to the site I enter <Users Email> and <Password> and I hit 'Sign in' CTA", "timedOut": null, "duration": 12995, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit('/login');\ncy.login('admin@subscriptionflow.com', 'sf@superadmin#$');", "err": {}, "uuid": "243025b3-255a-4b88-ba12-3c949f5c52a4", "parentUUID": "c3cf4cfc-88c9-4300-b294-67a3f7b63660", "isHook": false, "skipped": false }, { "title": "I should be on the users Dashboard/home page", "fullTitle": "Login to the site I should be on the users Dashboard/home page", "timedOut": null, "duration": 71, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.title().should('include', 'SubscriptionFlow - Dashboard');", "err": {}, "uuid": "6d265b74-c6eb-4c5b-a4f2-8e0de2a920a6", "parentUUID": "c3cf4cfc-88c9-4300-b294-67a3f7b63660", "isHook": false, "skipped": false }, { "title": "I should see \"Welcome <Username>\" ", "fullTitle": "Login to the site I should see \"Welcome <Username>\" ", "timedOut": null, "duration": 825, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.contains('Welcome');", "err": {}, "uuid": "031fea47-9e10-4bc7-9782-e915261189fa", "parentUUID": "c3cf4cfc-88c9-4300-b294-67a3f7b63660", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "243025b3-255a-4b88-ba12-3c949f5c52a4", "6d265b74-c6eb-4c5b-a4f2-8e0de2a920a6", "031fea47-9e10-4bc7-9782-e915261189fa" ], "failures": [], "pending": [], "skipped": [], "duration": 13891, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "80f2f074-f6fe-4d7c-8d1a-0617038ac3c8", "title": "", "fullFile": "cypress/integration/SF/a-dashboard/2-dashboard_view_spec.js", "file": "cypress/integration/SF/a-dashboard/2-dashboard_view_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1116dd4b-dd0d-4498-b75a-2eb85ce93c9e", "title": "Dashboard View", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "I observe the Dashboard", "fullTitle": "Dashboard View I observe the Dashboard", "timedOut": null, "duration": 14011, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.location('pathname').should('include', 'dashboard');", "err": {}, "uuid": "26af01aa-6961-4ab4-887c-95c4e2ff9111", "parentUUID": "1116dd4b-dd0d-4498-b75a-2eb85ce93c9e", "isHook": false, "skipped": false }, { "title": "I should see a main nav bar", "fullTitle": "Dashboard View I should see a main nav bar", "timedOut": null, "duration": 65, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.main-navbar').should('be.visible');", "err": {}, "uuid": "aec23447-7171-40c8-a3ae-e32b3e4ff844", "parentUUID": "1116dd4b-dd0d-4498-b75a-2eb85ce93c9e", "isHook": false, "skipped": false }, { "title": "I should see two CTA's : Classic view , Action", "fullTitle": "Dashboard View I should see two CTA's : Classic view , Action", "timedOut": null, "duration": 49, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.classic_view_btn').should('exist');\ncy.get('.actions-dropdown > .btn').should('exist');", "err": {}, "uuid": "95dd87bd-b89d-426d-9bd9-fd467c6bb6a0", "parentUUID": "1116dd4b-dd0d-4498-b75a-2eb85ce93c9e", "isHook": false, "skipped": false }, { "title": "I scroll down to the bottom, Expect footer", "fullTitle": "Dashboard View I scroll down to the bottom, Expect footer", "timedOut": null, "duration": 36, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.scrollTo('bottom', {\n ensureScrollable: true\n});\ncy.get('.main-footer').should('be.visible');", "err": {}, "uuid": "934eda67-c8d0-44c1-b843-ddb1714447f8", "parentUUID": "1116dd4b-dd0d-4498-b75a-2eb85ce93c9e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "26af01aa-6961-4ab4-887c-95c4e2ff9111", "aec23447-7171-40c8-a3ae-e32b3e4ff844", "95dd87bd-b89d-426d-9bd9-fd467c6bb6a0", "934eda67-c8d0-44c1-b843-ddb1714447f8" ], "failures": [], "pending": [], "skipped": [], "duration": 14161, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2cc772a5-569c-490e-9e6f-b6982c137430", "title": "", "fullFile": "cypress/integration/SF/b-forgot-password/forgot-password.js", "file": "cypress/integration/SF/b-forgot-password/forgot-password.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d5e364d1-2876-4f4f-a610-6ddcd4bda872", "title": "Forgot Password", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Valid Email ", "fullTitle": "Forgot Password Valid Email ", "timedOut": null, "duration": 3859, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.forgot_password('admin@subscriptionflow.com');", "err": {}, "uuid": "fcdaea4c-e7f1-467f-beec-180cb6ef54c4", "parentUUID": "d5e364d1-2876-4f4f-a610-6ddcd4bda872", "isHook": false, "skipped": false }, { "title": "Email not in record", "fullTitle": "Forgot Password Email not in record", "timedOut": null, "duration": 6063, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.forgot_password('noman@subscriptionflow.com').get('.btn').click({\n force: true\n}).get('.invalid-feedback').should('be.visible');", "err": {}, "uuid": "b78e222e-6239-49f9-847c-878392570c71", "parentUUID": "d5e364d1-2876-4f4f-a610-6ddcd4bda872", "isHook": false, "skipped": false }, { "title": "Successfull Password Reset Link", "fullTitle": "Forgot Password Successfull Password Reset Link", "timedOut": null, "duration": 6342, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.forgot_password('admin@subscriptionflow.com').get('.btn').click({\n force: true\n}).get('.alert-success').should('be.visible');", "err": {}, "uuid": "79736a4c-80fb-47f9-9e2b-81b9b3e95166", "parentUUID": "d5e364d1-2876-4f4f-a610-6ddcd4bda872", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "fcdaea4c-e7f1-467f-beec-180cb6ef54c4", "b78e222e-6239-49f9-847c-878392570c71", "79736a4c-80fb-47f9-9e2b-81b9b3e95166" ], "failures": [], "pending": [], "skipped": [], "duration": 16264, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "172d5a05-ad69-4c52-9018-ce4d6b53a180", "title": "", "fullFile": "cypress/integration/SF/c-contacts/cancel_contact_spec.js", "file": "cypress/integration/SF/c-contacts/cancel_contact_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bf2711a8-bd55-42bb-828b-1b5ed4a83703", "title": "Create contacts", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Successfully creates contact when all information is added correctly and shows error on inaccurate information", "fullTitle": "Create contacts Successfully creates contact when all information is added correctly and shows error on inaccurate information", "timedOut": null, "duration": 44392, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/contacts\");\ncy.check();\ncy.contains('Create Contact').click({\n force: true\n});\ncy.url().should('include', '/contacts/create');\ncy.contains('Basic Information').should('be.visible');\ncy.contains('Address Information').should('be.visible');\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").should('be.visible');\ncy.contains('Cancel').should('be.visible'); // cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-results li:first-child').click({force:true})\ncy.get('#select2-customer_id-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-customer_id-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-customer_id-input-results li:first-child').click({\n force: true\n});\ncy.get('#salutation-input').select('Ms.', {\n force: true\n});\ncy.get('#first_name-input').type('Steven', {\n force: true\n}).should('have.value', 'Steven');\nvar rand = userID_Alpha_Numeric();\ncy.get('input[type=\"email\"]').eq(0).type(rand, {\n force: true\n}).should('have.value', rand);\ncy.get('#work_phone-input').type('000', {\n force: true\n});\ncy.get('#personal_phone-input').type('000', {\n force: true\n});\ncy.get('#home_phone-input').type('000', {\n force: true\n});\ncy.get('#other_phone-input').type('000', {\n force: true\n});\ncy.get('#fax-input').type('000', {\n force: true\n});\ncy.get('textarea[name=\"description\"]').type('This is the description', {\n force: true\n});\ncy.get('#billing_address_1-input').type('Line11', {\n force: true\n}).should('have.value', 'Line11');\ncy.get('#billing_address_2-input').type('Line21', {\n force: true\n}).should('have.value', 'Line21');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#billing_postal_code-input').type('gfgdfg1', {\n force: true\n}).should('have.value', 'gfgdfg1');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').should('be.hidden');\ncy.get('#shipping_address_2-input').should('be.hidden');\ncy.get('#shipping_city-input').should('be.hidden');\ncy.get('#shipping_state-input').should('be.hidden');\ncy.get('#shipping_county-input').should('be.hidden');\ncy.get('#shipping_postal_code-input').should('be.hidden');\ncy.get('#shipping_country-input').should('be.hidden');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').type('Line12', {\n force: true\n}).should('have.value', 'Line12');\ncy.get('#shipping_address_2-input').type('Line22', {\n force: true\n}).should('have.value', 'Line22');\ncy.get('#shipping_postal_code-input').type('gfgdfg2', {\n force: true\n}).should('have.value', 'gfgdfg2');\ncy.get('#select2-shipping_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-shipping_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-shipping_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-shipping_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-shipping_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-shipping_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n}).then(function () {\n cy.get(\".invalid-feedback\").contains(' This Field is Required ').should('be.visible');\n cy.get(\".invalid-feedback\").contains(' Invalid Email Value ').should('be.visible');\n cy.get(\".invalid-feedback\").contains(' Invalid Phone Number').should('be.visible');\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/contacts');", "err": { "message": "CypressError: `cy.type()` can only be called on a single element. Your subject contained 2 elements.\n\nhttps://on.cypress.io/type", "estack": "CypressError: `cy.type()` can only be called on a single element. Your subject contained 2 elements.\n\nhttps://on.cypress.io/type\n at Context.type (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153711:17)\n at Context.<anonymous> (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:170049:21)\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/c-contacts/cancel_contact_spec.js:165:38)", "diff": null }, "uuid": "0969aadb-3aee-41ae-9ad2-96395793b738", "parentUUID": "bf2711a8-bd55-42bb-828b-1b5ed4a83703", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "0969aadb-3aee-41ae-9ad2-96395793b738" ], "pending": [], "skipped": [], "duration": 44392, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "da5a8fde-402f-419d-8478-22352eca3ed1", "title": "", "fullFile": "cypress/integration/SF/c-contacts/create_contact_spec.js", "file": "cypress/integration/SF/c-contacts/create_contact_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d95a59dd-e2fe-41fd-91c8-4e29c2a77010", "title": "Create contacts", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Successfully creates contact when all information is added correctly and shows error on inaccurate information", "fullTitle": "Create contacts Successfully creates contact when all information is added correctly and shows error on inaccurate information", "timedOut": null, "duration": 44621, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/contacts\");\ncy.check();\ncy.contains('Create Contact').click({\n force: true\n});\ncy.url().should('include', '/contacts/create');\ncy.contains('Basic Information').should('be.visible');\ncy.contains('Address Information').should('be.visible');\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").should('be.visible');\ncy.contains('Cancel').should('be.visible'); // cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-results li:first-child').click({force:true})\ncy.get('#select2-customer_id-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-customer_id-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-customer_id-input-results li:first-child').click({\n force: true\n});\ncy.get('#salutation-input').select('Ms.', {\n force: true\n});\ncy.get('#first_name-input').type('Steven', {\n force: true\n}).should('have.value', 'Steven');\nvar rand = userID_Alpha_Numeric();\ncy.get('input[type=\"email\"]').eq(0).type(rand, {\n force: true\n}).should('have.value', rand);\ncy.get('#work_phone-input').type('000', {\n force: true\n});\ncy.get('#personal_phone-input').type('000', {\n force: true\n});\ncy.get('#home_phone-input').type('000', {\n force: true\n});\ncy.get('#other_phone-input').type('000', {\n force: true\n});\ncy.get('#fax-input').type('000', {\n force: true\n});\ncy.get('textarea[name=\"description\"]').type('This is the description', {\n force: true\n});\ncy.get('#billing_address_1-input').type('Line11', {\n force: true\n}).should('have.value', 'Line11');\ncy.get('#billing_address_2-input').type('Line21', {\n force: true\n}).should('have.value', 'Line21');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#billing_postal_code-input').type('gfgdfg1', {\n force: true\n}).should('have.value', 'gfgdfg1');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').should('be.hidden');\ncy.get('#shipping_address_2-input').should('be.hidden');\ncy.get('#shipping_city-input').should('be.hidden');\ncy.get('#shipping_state-input').should('be.hidden');\ncy.get('#shipping_county-input').should('be.hidden');\ncy.get('#shipping_postal_code-input').should('be.hidden');\ncy.get('#shipping_country-input').should('be.hidden');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').type('Line12', {\n force: true\n}).should('have.value', 'Line12');\ncy.get('#shipping_address_2-input').type('Line22', {\n force: true\n}).should('have.value', 'Line22');\ncy.get('#shipping_postal_code-input').type('gfgdfg2', {\n force: true\n}).should('have.value', 'gfgdfg2');\ncy.get('#select2-shipping_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-shipping_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-shipping_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-shipping_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-shipping_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-shipping_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n}).then(function () {\n cy.get(\".invalid-feedback\").contains(' This Field is Required ').should('be.visible');\n cy.get(\".invalid-feedback\").contains(' Invalid Email Value ').should('be.visible');\n cy.get(\".invalid-feedback\").contains(' Invalid Phone Number').should('be.visible');\n});\ncy.get('#last_name-input').type('Anderson', {\n force: true\n});\ncy.get('input[type=\"email\"]').eq(0).type('@gmail.com', {\n force: true\n});\ncy.get('#work_phone-input').clear({\n force: true\n}).type('03009765278', {\n force: true\n});\ncy.get('#personal_phone-input').clear({\n force: true\n}).type('03009765278', {\n force: true\n});\ncy.get('#home_phone-input').clear({\n force: true\n}).type('03009765278', {\n force: true\n});\ncy.get('#other_phone-input').clear({\n force: true\n}).type('03009765278', {\n force: true\n});\ncy.get('#fax-input').clear({\n force: true\n}).type('03009765278', {\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n});\ncy.get('.page-title').should('contain', 'Steven Anderson');", "err": { "message": "CypressError: `cy.type()` can only be called on a single element. Your subject contained 2 elements.\n\nhttps://on.cypress.io/type", "estack": "CypressError: `cy.type()` can only be called on a single element. Your subject contained 2 elements.\n\nhttps://on.cypress.io/type\n at Context.type (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153711:17)\n at Context.<anonymous> (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:170049:21)\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/c-contacts/create_contact_spec.js:165:38)", "diff": null }, "uuid": "7e9d6607-daf1-4820-9731-79cf9290916d", "parentUUID": "d95a59dd-e2fe-41fd-91c8-4e29c2a77010", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "7e9d6607-daf1-4820-9731-79cf9290916d" ], "pending": [], "skipped": [], "duration": 44621, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "93d437bc-a72a-4310-b4d3-a8e300ab76a1", "title": "", "fullFile": "cypress/integration/SF/d-product/01-create_product_spec.js", "file": "cypress/integration/SF/d-product/01-create_product_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "85273a69-7509-4d16-a2c8-9e0e62ba249e", "title": "Create product", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": " I enter <Email> and <Password> and I hit 'Sign in' CTA", "fullTitle": "Create product I enter <Email> and <Password> and I hit 'Sign in' CTA", "timedOut": null, "duration": 19158, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/products\");\ncy.check();\ncy.contains('Create Product').click({\n force: true\n});\ncy.url().should('include', '/products/create');", "err": {}, "uuid": "5b0714a1-1275-447f-a173-77fd662d1741", "parentUUID": "85273a69-7509-4d16-a2c8-9e0e62ba249e", "isHook": false, "skipped": false }, { "title": "Fill the form and click CTA", "fullTitle": "Create product Fill the form and click CTA", "timedOut": null, "duration": 25404, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "var todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.wait(5000);\ncy.get('.select2-selection.select2-selection--multiple').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li:first-child').click({\n force: true\n});\ncy.get('#type-input').select('Base Products', {\n force: true\n});\ncy.get('#name-input').type('cyp_test_product', {\n force: true\n});\ncy.get('#sku-input').type('cyp_test_product', {\n force: true\n});\ncy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n});\ncy.get('#effective_end_date-input').type(endDate, {\n force: true\n});\ncy.get(':nth-child(5) > :nth-child(1) > .form-group > .form-control').type('cyp_test_product', {\n force: true\n});\ncy.get('#select2-manager_id-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-manager_id-input-results li:first-child').click({\n force: true\n});\ncy.get('button.btn.btn-create').eq(1).contains('Save').click({\n force: true\n});", "err": {}, "uuid": "17d05661-9b6a-41b7-8589-18b1651144fd", "parentUUID": "85273a69-7509-4d16-a2c8-9e0e62ba249e", "isHook": false, "skipped": false }, { "title": "I observe the product detail page, and verified created product", "fullTitle": "Create product I observe the product detail page, and verified created product", "timedOut": null, "duration": 87, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.location('pathname').should('include', 'product-detail');\ncy.get('.page-title').should('contain', 'Cyp_test_product');", "err": {}, "uuid": "40d97ccb-85c2-457b-b35f-470b480e6be5", "parentUUID": "85273a69-7509-4d16-a2c8-9e0e62ba249e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5b0714a1-1275-447f-a173-77fd662d1741", "17d05661-9b6a-41b7-8589-18b1651144fd", "40d97ccb-85c2-457b-b35f-470b480e6be5" ], "failures": [], "pending": [], "skipped": [], "duration": 44649, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2f443133-e69b-4c9a-89a7-ea4c2fd62373", "title": "", "fullFile": "cypress/integration/SF/d-product/02-add_product_plan_spec.js", "file": "cypress/integration/SF/d-product/02-add_product_plan_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d3fbb655-a666-4178-ad5c-18f62a002bf9", "title": "Add Plan", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to products, and click test product", "fullTitle": "Add Plan Go to products, and click test product", "timedOut": null, "duration": 58941, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/products\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('cyp_test_product', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.url().should('contain', 'product-detail'); // cy.wait(50)\n// cy.get('#related-table-plan table:nth-child(2) tbody > :nth-child(3) > :nth-child(1) > .mt-2 > .col-md-4 > a').click({force: true, failOnStatusCode: false});\n// cy.wait(300);\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n cy.get('#related-table-plan .sf-pagination-wrapper span.bold').eq(0).then(function (Plan1) {\n createPlan();\n cy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n });\n cy.get('#related-table-plan .sf-pagination-wrapper span.bold').eq(0).then(function (Plan2) {\n var count = parseFloat(Plan1.text()) + 1;\n expect(count).to.eq(parseFloat(Plan2.text()));\n });\n });\n } else {\n createPlan();\n cy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n });\n cy.get('#related-table-plan .sf-pagination-wrapper span.bold').eq(0).then(function (Plan2) {\n var count = 1;\n expect(count).to.eq(parseFloat(Plan2.text()));\n });\n }\n});", "err": {}, "uuid": "a0ac89da-2f9e-48e5-9f3e-2645d448d29b", "parentUUID": "d3fbb655-a666-4178-ad5c-18f62a002bf9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a0ac89da-2f9e-48e5-9f3e-2645d448d29b" ], "failures": [], "pending": [], "skipped": [], "duration": 58941, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ba22f570-13e3-445f-8480-f2a5b7162de2", "title": "", "fullFile": "cypress/integration/SF/d-product/03-add_plan_detail_one_time_spec.js", "file": "cypress/integration/SF/d-product/03-add_plan_detail_one_time_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ab1334a8-49d0-4bc5-9557-4b7202d0eaca", "title": "Add Plan details (one time)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to product detail, and add new plan pricing", "fullTitle": "Add Plan details (one time) Go to product detail, and add new plan pricing", "timedOut": null, "duration": 51146, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/products\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('cyp_test_product', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.url().should('contain', 'product-detail');\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n addPricing();\n } else {\n cy.get('a[data-title=\"New Plan\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n addPricing();\n }\n});", "err": {}, "uuid": "6c73b07f-8530-41da-a655-b5316276c9d0", "parentUUID": "ab1334a8-49d0-4bc5-9557-4b7202d0eaca", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6c73b07f-8530-41da-a655-b5316276c9d0" ], "failures": [], "pending": [], "skipped": [], "duration": 51146, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ed2b1fa7-2094-4dbb-ac56-cd6db6301dee", "title": "", "fullFile": "cypress/integration/SF/d-product/04-add_plan_detail_recurring_spec.js", "file": "cypress/integration/SF/d-product/04-add_plan_detail_recurring_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ad90f09e-fdff-4cf6-9c44-65a3b357d382", "title": "Add Plan details (recurring time)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to product detail, and add new plan pricing", "fullTitle": "Add Plan details (recurring time) Go to product detail, and add new plan pricing", "timedOut": null, "duration": 52706, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/products\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('cyp_test_product', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.url().should('contain', 'product-detail');\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n addPricing();\n } else {\n cy.get('a[data-title=\"New Plan\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n addPricing();\n }\n});", "err": {}, "uuid": "1fdaae68-2369-4601-b4f8-1f2d4993f887", "parentUUID": "ad90f09e-fdff-4cf6-9c44-65a3b357d382", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1fdaae68-2369-4601-b4f8-1f2d4993f887" ], "failures": [], "pending": [], "skipped": [], "duration": 52706, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ad4e2cf8-b52f-4bb6-877c-8dac4c6555b1", "title": "", "fullFile": "cypress/integration/SF/d-product/05-add_plan_detail_UOM_spec.js", "file": "cypress/integration/SF/d-product/05-add_plan_detail_UOM_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "403d3c61-ecb1-4538-855d-69d64b0f5993", "title": "Add Plan details (usage time)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to product detail, and add new plan pricing", "fullTitle": "Add Plan details (usage time) Go to product detail, and add new plan pricing", "timedOut": null, "duration": 49837, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/products\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('cyp_test_product', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.url().should('contain', 'product-detail');\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n addPricing();\n } else {\n cy.get('a[data-title=\"New Plan\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n addPricing();\n }\n});", "err": {}, "uuid": "ea2de8c8-ba2c-456b-bac0-defb4480224b", "parentUUID": "403d3c61-ecb1-4538-855d-69d64b0f5993", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ea2de8c8-ba2c-456b-bac0-defb4480224b" ], "failures": [], "pending": [], "skipped": [], "duration": 49837, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "33b7e70f-5634-4491-8538-abc06f8a2f6f", "title": "", "fullFile": "cypress/integration/SF/d-product/06HPP_Trial_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/SF/d-product/06HPP_Trial_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6e91bc62-42c3-4843-b0cf-6bb87eddc8dd", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with Authorize.NET", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page using Credit Card with Authorize.NET", "timedOut": null, "duration": 236331, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "3289cc82-8152-4082-936c-7520ab5e620f", "parentUUID": "6e91bc62-42c3-4843-b0cf-6bb87eddc8dd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3289cc82-8152-4082-936c-7520ab5e620f" ], "failures": [], "pending": [], "skipped": [], "duration": 236331, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "672a4dd1-4e03-4570-96cc-224657682b93", "title": "", "fullFile": "cypress/integration/SF/d-product/07HPP_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/SF/d-product/07HPP_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "36f86e12-a1ee-453b-90fa-6e19d7768562", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with Authorize.NET", "fullTitle": "Hosted Payment Page Hosted Payment Page using Credit Card with Authorize.NET", "timedOut": null, "duration": 241921, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "2c481657-204e-42ba-abe4-fdc8d2234c5a", "parentUUID": "36f86e12-a1ee-453b-90fa-6e19d7768562", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2c481657-204e-42ba-abe4-fdc8d2234c5a" ], "failures": [], "pending": [], "skipped": [], "duration": 241921, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a7abc721-2f99-48ce-9fcf-55bb1d40ce77", "title": "", "fullFile": "cypress/integration/SF/d-product/08HPP_Trial_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/SF/d-product/08HPP_Trial_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "87835efe-0c4a-4078-976a-fe6994dfecae", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Bank Transfer with Authorize.NET", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page using Bank Transfer with Authorize.NET", "timedOut": null, "duration": 250336, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "10791379-0f65-485b-a87c-111610cb0f9f", "parentUUID": "87835efe-0c4a-4078-976a-fe6994dfecae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "10791379-0f65-485b-a87c-111610cb0f9f" ], "failures": [], "pending": [], "skipped": [], "duration": 250336, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f7d05bd0-5de6-46ac-8444-ac45ef3aafc4", "title": "", "fullFile": "cypress/integration/SF/d-product/09HPP_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/SF/d-product/09HPP_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "93cbda99-2503-41b2-aba8-5e44fb143b87", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Bank Transfer with Authorize.NET", "fullTitle": "Hosted Payment Page Hosted Payment Page using Bank Transfer with Authorize.NET", "timedOut": null, "duration": 253432, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "9b561233-dcdb-404a-9f55-3a351028a546", "parentUUID": "93cbda99-2503-41b2-aba8-5e44fb143b87", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9b561233-dcdb-404a-9f55-3a351028a546" ], "failures": [], "pending": [], "skipped": [], "duration": 253432, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8c660a65-cd43-4af7-b609-1e9ebf0bc545", "title": "", "fullFile": "cypress/integration/SF/d-product/12HPP_Trial_CreditCard_Stripe.spec.js", "file": "cypress/integration/SF/d-product/12HPP_Trial_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b79444f2-eb5f-47a2-af94-f74585d46829", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with Stripe", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page using Credit Card with Stripe", "timedOut": null, "duration": 184781, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `.__PrivateStripeElement > iframe`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `.__PrivateStripeElement > iframe`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/12HPP_Trial_CreditCard_Stripe.spec.js:340:14)", "diff": null }, "uuid": "135f8a5f-a153-4c65-915e-b4caedaad493", "parentUUID": "b79444f2-eb5f-47a2-af94-f74585d46829", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "135f8a5f-a153-4c65-915e-b4caedaad493" ], "pending": [], "skipped": [], "duration": 184781, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4a6dbd1d-4b50-45e8-8559-e9a57c35d713", "title": "", "fullFile": "cypress/integration/SF/d-product/13HPP_CreditCard_Stripe.spec.js", "file": "cypress/integration/SF/d-product/13HPP_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b66f5325-b8e8-427f-9d0a-1bad7d9d873a", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with Stripe", "fullTitle": "Hosted Payment Page Hosted Payment Page using Credit Card with Stripe", "timedOut": null, "duration": 186256, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `.__PrivateStripeElement > iframe`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `.__PrivateStripeElement > iframe`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/13HPP_CreditCard_Stripe.spec.js:340:14)", "diff": null }, "uuid": "2f545be4-7f6a-40ab-804b-c632fd4211ae", "parentUUID": "b66f5325-b8e8-427f-9d0a-1bad7d9d873a", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "2f545be4-7f6a-40ab-804b-c632fd4211ae" ], "pending": [], "skipped": [], "duration": 186256, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0545971b-edc9-4686-bd7e-abc421949da5", "title": "", "fullFile": "cypress/integration/SF/d-product/14HPP_Trial_BankTransfer_Stripe.spec.js", "file": "cypress/integration/SF/d-product/14HPP_Trial_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e2029167-4be6-4cd4-ae29-22bc61c6df63", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Bank Transfer with Stripe", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page using Bank Transfer with Stripe", "timedOut": null, "duration": 188018, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Please enter correct routing number' within the element: <div#ach-errors.text-danger> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Please enter correct routing number' within the element: <div#ach-errors.text-danger> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/14HPP_Trial_BankTransfer_Stripe.spec.js:344:81)", "diff": null }, "uuid": "6dfeaf8d-97e4-41cf-815c-02b457b70ae0", "parentUUID": "e2029167-4be6-4cd4-ae29-22bc61c6df63", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "6dfeaf8d-97e4-41cf-815c-02b457b70ae0" ], "pending": [], "skipped": [], "duration": 188018, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7583423f-f98d-476a-85f0-a32f3bf3a9a8", "title": "", "fullFile": "cypress/integration/SF/d-product/15HPP_BankTransfer_Stripe.spec.js", "file": "cypress/integration/SF/d-product/15HPP_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5f551235-4d34-47c3-9e2a-ace96f5e9c5a", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Bank Transfer with Stripe", "fullTitle": "Hosted Payment Page Hosted Payment Page using Bank Transfer with Stripe", "timedOut": null, "duration": 262588, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "bcf85de1-aba7-4afc-a984-f5591477f927", "parentUUID": "5f551235-4d34-47c3-9e2a-ace96f5e9c5a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bcf85de1-aba7-4afc-a984-f5591477f927" ], "failures": [], "pending": [], "skipped": [], "duration": 262588, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "23d95fce-b235-4322-bff9-bfcd7f892fee", "title": "", "fullFile": "cypress/integration/SF/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js", "file": "cypress/integration/SF/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "546e90ae-02cc-4196-9d26-6a7a78a54aa6", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page with PayPal Express Checkout", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page with PayPal Express Checkout", "timedOut": null, "duration": 229004, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('PayPal Express Checkout').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "2c86493d-0941-45cf-97cd-d4ef30985b1f", "parentUUID": "546e90ae-02cc-4196-9d26-6a7a78a54aa6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2c86493d-0941-45cf-97cd-d4ef30985b1f" ], "failures": [], "pending": [], "skipped": [], "duration": 229004, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e03d93b1-734d-4af4-b6ec-f9aee57f0ec7", "title": "", "fullFile": "cypress/integration/SF/d-product/19HPP_PayPalExpressCheckout.spec.js", "file": "cypress/integration/SF/d-product/19HPP_PayPalExpressCheckout.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ad78001c-c769-437a-88b4-a647610911f6", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with PayPal Express Checkout", "fullTitle": "Hosted Payment Page Hosted Payment Page using Credit Card with PayPal Express Checkout", "timedOut": null, "duration": 232338, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('PayPal Express Checkout').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Plans Added Yet')) {\n HPP();\n } else {\n cy.get('a[data-title=\"New Plans\"]').click({\n force: true\n });\n var todaysDate = Cypress.moment().format('MM/DD/YYYY');\n var addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\n var endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\n cy.get('#name-input').type('cyp_test_product_plan');\n cy.wait(50);\n cy.location('pathname').should('include', 'plans');\n cy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n });\n cy.get('#effective_end_date-input').type(endDate, {\n force: true\n });\n cy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n });\n cy.get('.col-md-12 > .btn-create').click({\n force: true\n });\n cy.get('#scroll-style .table.plans-table a').contains('add new').click({\n force: true\n });\n cy.get('.plan_headings').contains('Name').should('be.visible');\n cy.get('.plan_headings').contains('Charge Amount').should('be.visible');\n cy.get('#exampleFormControlInput1').type('cypress one time charge', {\n force: true\n });\n cy.get('textarea[name=\"description\"]').eq(1).type('This is a Description', {\n force: true\n });\n cy.get('#account_code_select').select('Sales (25)', {\n force: true\n });\n cy.get('#list_price-input').type('20', {\n force: true\n });\n cy.get('button[type=\"submit\"]').eq(0).click({\n force: true\n });\n HPP();\n }\n});", "err": {}, "uuid": "9b86d7bc-ad94-4e31-a95b-2dbb899a3521", "parentUUID": "ad78001c-c769-437a-88b4-a647610911f6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9b86d7bc-ad94-4e31-a95b-2dbb899a3521" ], "failures": [], "pending": [], "skipped": [], "duration": 232338, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "117a10b5-e063-4b5d-80c5-022e65fad273", "title": "", "fullFile": "cypress/integration/SF/e-plan/cancel-plan.js", "file": "cypress/integration/SF/e-plan/cancel-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "19b0c7b1-945e-44b3-909b-d1fe7de6e711", "title": "Cancel Plan", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Fill the form and click CTA", "fullTitle": "Cancel Plan Fill the form and click CTA", "timedOut": null, "duration": 29357, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit('/en/plans');\ncy.check();\ncy.contains('Create Plan').click({\n force: true\n});\ncy.url().should('include', '/plans/create');\nvar todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.get('#name-input').type('cyp_test_plan');\ncy.wait(50);\ncy.location('pathname').should('include', 'plans');\ncy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n});\ncy.get('#effective_end_date-input').type(endDate, {\n force: true\n});\ncy.get('textarea[name=\"description\"]').type('this is description', {\n force: true\n});\ncy.get('a.btn').contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/plans');", "err": {}, "uuid": "3917009c-89ae-470c-b86c-0882c4dfd826", "parentUUID": "19b0c7b1-945e-44b3-909b-d1fe7de6e711", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3917009c-89ae-470c-b86c-0882c4dfd826" ], "failures": [], "pending": [], "skipped": [], "duration": 29357, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0b0abc3f-3d6a-4627-a198-61f5b250b407", "title": "", "fullFile": "cypress/integration/SF/e-plan/create-plan.js", "file": "cypress/integration/SF/e-plan/create-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7a0af94e-b22d-4a28-85f2-330a409c0f6f", "title": "Create Plan", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Fill the form and click CTA", "fullTitle": "Create Plan Fill the form and click CTA", "timedOut": null, "duration": 30362, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit('/en/plans');\ncy.check();\ncy.contains('Create Plan').click({\n force: true\n});\ncy.url().should('include', '/plans/create');\nvar todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(5, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.get('#name-input').type('cyp_test_plan');\ncy.wait(50);\ncy.location('pathname').should('include', 'plans');\ncy.get('#effective_start_date-input').type(todaysDate, {\n force: true\n});\ncy.get('#effective_end_date-input').type(endDate, {\n force: true\n});\ncy.get('textarea[name=\"description\"]').type('cyp_test_product', {\n force: true\n});\ncy.get('.col-md-12 > .btn-create').click({\n force: true\n});\ncy.location('pathname').should('include', 'plan-detail');\ncy.get('.page-title').should('contain', 'Cyp_test_plan');", "err": {}, "uuid": "9d6a5063-2bf3-41c2-bf05-a3ed650c88eb", "parentUUID": "7a0af94e-b22d-4a28-85f2-330a409c0f6f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9d6a5063-2bf3-41c2-bf05-a3ed650c88eb" ], "failures": [], "pending": [], "skipped": [], "duration": 30362, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c86b49a4-74e5-4dbe-82bf-29ecb6913517", "title": "", "fullFile": "cypress/integration/SF/f-coupon/cancel-coupon.js", "file": "cypress/integration/SF/f-coupon/cancel-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "81eceb14-1df7-467c-8ae8-296bcb8573ab", "title": "Cancel Coupon", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Fill the form with Regular Availability and click CTA", "fullTitle": "Cancel Coupon Fill the form with Regular Availability and click CTA", "timedOut": null, "duration": 60712, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('.nav-link').contains('More').click();\ncy.get('.dropdown-menu a').contains('Coupon').click({\n force: true\n});\ncy.wait(8000);\ncy.get('span').contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#name-input').type('Noman', {\n force: true\n});\ncy.get('#code-input').type('A2%T-IY', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Regular');\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search--dropdown .select2-search__field').type('Test{downarrow} {enter}');\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/coupons');", "err": {}, "uuid": "06ede1a3-f44b-48b7-9994-e3ae3adaa47e", "parentUUID": "81eceb14-1df7-467c-8ae8-296bcb8573ab", "isHook": false, "skipped": false }, { "title": "Fill the form with Limited Availability and click CTA", "fullTitle": "Cancel Coupon Fill the form with Limited Availability and click CTA", "timedOut": null, "duration": 56228, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('.nav-link').contains('More').click();\ncy.get('.dropdown-menu a').contains('Coupon').click({\n force: true\n});\ncy.wait(8000);\ncy.get('span').contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#name-input').type('Noman', {\n force: true\n});\ncy.get('#code-input').type('A2%T-IY', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Limited');\ncy.get('#available_from-input').should('be.visible');\ncy.get('#available_to-input').should('be.visible');\nvar todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(10, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.get('#available_from-input').type(todaysDate, {\n force: true\n});\ncy.get('#available_to-input').type(endDate, {\n force: true\n});\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search--dropdown .select2-search__field').type('Test{downarrow} {enter}');\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/coupons');", "err": {}, "uuid": "259a600d-b1fa-4b88-a414-1699a7d6ebfe", "parentUUID": "81eceb14-1df7-467c-8ae8-296bcb8573ab", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "06ede1a3-f44b-48b7-9994-e3ae3adaa47e", "259a600d-b1fa-4b88-a414-1699a7d6ebfe" ], "failures": [], "pending": [], "skipped": [], "duration": 116940, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "be433769-e822-467c-8e02-67501ed38d85", "title": "", "fullFile": "cypress/integration/SF/f-coupon/create-coupon.js", "file": "cypress/integration/SF/f-coupon/create-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "80448d82-18ff-41bc-92e8-19f70ac7f348", "title": "Create Coupon", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Fill the form with Regular Availability and click CTA", "fullTitle": "Create Coupon Fill the form with Regular Availability and click CTA", "timedOut": null, "duration": 38204, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/coupons\");\ncy.check();\ncy.contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#code-input').type('ABC', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Regular');\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.get('.col-md-12 > .btn-create').click({\n force: true\n});\ncy.get('.invalid-feedback').contains('This Field is Required').should('be.visible');\ncy.get('#name-input').type('Test Coupon', {\n force: true\n});\ncy.get('.col-md-12 > .btn-create').click({\n force: true\n});\ncy.url().should('include', '/coupon-detail');", "err": {}, "uuid": "1863efda-b283-49ee-885d-b3cd509c83b7", "parentUUID": "80448d82-18ff-41bc-92e8-19f70ac7f348", "isHook": false, "skipped": false }, { "title": "Fill the form with Limited Availability and click CTA", "fullTitle": "Create Coupon Fill the form with Limited Availability and click CTA", "timedOut": null, "duration": 31094, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/coupons\");\ncy.check();\ncy.contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#code-input').type('DEF', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Limited');\ncy.get('#available_from-input').should('be.visible');\ncy.get('#available_to-input').should('be.visible');\nvar todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(10, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.get('#available_from-input').type(todaysDate, {\n force: true\n});\ncy.get('#available_to-input').type(endDate, {\n force: true\n});\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.get('.col-md-12 > .btn-create').click({\n force: true\n});\ncy.get('.invalid-feedback').contains('This Field is Required').should('be.visible');\ncy.get('#name-input').type('Test Coupon 2', {\n force: true\n});\ncy.get('.col-md-12 > .btn-create').click({\n force: true\n});\ncy.url().should('include', '/coupon-detail');", "err": {}, "uuid": "3b5b66a7-9f0c-4877-99e3-4bf071a3d094", "parentUUID": "80448d82-18ff-41bc-92e8-19f70ac7f348", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1863efda-b283-49ee-885d-b3cd509c83b7", "3b5b66a7-9f0c-4877-99e3-4bf071a3d094" ], "failures": [], "pending": [], "skipped": [], "duration": 69298, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "adfed331-4535-4971-9b2b-0e949d663ba5", "title": "", "fullFile": "cypress/integration/SF/g-customer/01customer_page.spec.js", "file": "cypress/integration/SF/g-customer/01customer_page.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "120ec9d8-9eaf-4f31-a8c3-a116bd7c9ffb", "title": "Customers Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When: I click on Customers -> Customers from the main nav", "fullTitle": "Customers Page When: I click on Customers -> Customers from the main nav", "timedOut": null, "duration": 36408, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n});\ncy.wait(5000);\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.contains('Create Customer').should('be.visible');\ncy.get('#list-table_filter').get('input').should('be.visible');\ncy.get('#sidebar-search').should('exist');\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').should('be.visible');\n cy.contains('Import').should('be.visible');\n cy.contains('Export').should('be.visible');\n});\ncy.get('.dataTables_scrollHead .check-all-records').click({\n force: true\n}).then(function () {\n debugger;\n cy.contains('Actions').click({\n force: true\n }).then(function () {\n cy.contains('Send Mail').should('be.visible');\n cy.contains('Delete').should('be.visible');\n cy.contains('Update').should('be.visible');\n });\n});\ncy.get('#lv_filter_hide').click({\n force: true\n});\ncy.wait(3000);\ncy.get('.dropbtn.btn-import').contains('All').click({\n force: true\n}).then(function () {\n cy.contains('Create View').should('be.visible');\n});", "err": {}, "uuid": "c92b96d9-c69d-4fa1-8aec-096d3e1411ef", "parentUUID": "120ec9d8-9eaf-4f31-a8c3-a116bd7c9ffb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c92b96d9-c69d-4fa1-8aec-096d3e1411ef" ], "failures": [], "pending": [], "skipped": [], "duration": 36408, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "39d6c02d-91d1-49c5-89f6-49c497a08133", "title": "", "fullFile": "cypress/integration/SF/g-customer/02create_customer_spec.js", "file": "cypress/integration/SF/g-customer/02create_customer_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1021e6cb-51a1-41f7-a8b6-88465d10a592", "title": "Create Customer creation", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When: I click on Customers -> Customers from the main nav", "fullTitle": "Create Customer creation When: I click on Customers -> Customers from the main nav", "timedOut": null, "duration": 125844, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.contains('Create Customer').click({\n force: true\n});\ncy.url().should('include', '/customers/create');\ncy.contains('Basic Information').should('be.visible');\ncy.contains('Primary Contact').should('be.visible');\ncy.get('.card-header.border-bottom').contains('Tax Information').should('exist');\ncy.contains('Address Information').should('be.visible');\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").should('be.visible');\ncy.contains('Cancel').should('be.visible');\ncy.get('#name-input').type('Test Customer', {\n force: true\n}).should('have.value', 'Test Customer');\ncy.get('#name-input').clear(); // cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-results li:first-child').click({force:true})\ncy.wait(5000);\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-assigned_to-input-results li:first-child').click({\n force: true\n});\ncy.get('#select2-parent_id-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-parent_id-input-results li:first-child').click({\n force: true\n});\ncy.get('#contact_salutation-input').select('Mr.', {\n force: true\n});\ncy.get('#contact_first_name-input').type('First Test', {\n force: true\n}).should('have.value', 'First Test');\ncy.get('#contact_last_name-input').type('Last Test', {\n force: true\n}).should('have.value', 'Last Test');\nvar rand = userID_Alpha_Numeric();\ncy.get('.col-10.col-sm-7 input[type=\"email\"]').type(rand, {\n force: true\n}).should('have.value', rand);\ncy.get('#phone_number-input').type(\"1dfgdfg4\", {\n force: true\n}).should('have.value', '1dfgdfg4');\ncy.get('#po_number-input').type(\"1dfgdfg4\", {\n force: true\n}).should('have.value', '1dfgdfg4');\ncy.get('textarea[name=\"notes\"').type(\"NOTES\", {\n force: true\n}).should('have.value', 'NOTES');\ncy.get('#legal_entity-input').select('North America', {\n force: true\n});\ncy.get('#billing_cycle_day-input').select('4th of the Month', {\n force: true\n});\ncy.get('#terms-input').select('Net0', {\n force: true\n});\ncy.get('label[for=\"auto_charge-input\"]').click({\n force: true\n});\ncy.get('.card-header.border-bottom a .m-0 .fa').click({\n force: true\n});\ncy.get('#certificate_id-input').should('be.hidden');\ncy.get('#certificate_type-input').should('be.hidden');\ncy.get('#issuing_jurisdiction-input').should('be.hidden');\ncy.get('#entity_use_code-input').should('be.hidden');\ncy.get('textarea[name=\"description\"]').should('be.hidden');\ncy.get('label[for=\"tax_exempt-input\"]').click({\n force: true\n});\ncy.get('#certificate_id-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#certificate_type-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#issuing_jurisdiction-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#entity_use_code-input').should('be.visible').select('Federal government', {\n force: true\n});\ncy.get('textarea[name=\"description\"]').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434'); // cy.get('#select2-tax_company-input-container').click({force: true});\n// cy.wait(5000);\n// cy.get('#select2-tax_company-input-container-results li:first-child').click({force: true}) \ncy.get('#vat_id-input').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#billing_address_1-input').type('Line11', {\n force: true\n}).should('have.value', 'Line11');\ncy.get('#billing_address_2-input').type('Line21', {\n force: true\n}).should('have.value', 'Line21');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#billing_postal_code-input').type('gfgdfg1', {\n force: true\n}).should('have.value', 'gfgdfg1');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').should('be.hidden');\ncy.get('#shipping_address_2-input').should('be.hidden');\ncy.get('#shipping_city-input').should('be.hidden');\ncy.get('#shipping_state-input').should('be.hidden');\ncy.get('#shipping_county-input').should('be.hidden');\ncy.get('#shipping_postal_code-input').should('be.hidden');\ncy.get('#shipping_country-input').should('be.hidden');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').type('Line12', {\n force: true\n}).should('have.value', 'Line12');\ncy.get('#shipping_address_2-input').type('Line22', {\n force: true\n}).should('have.value', 'Line22');\ncy.get('#shipping_postal_code-input').type('gfgdfg2', {\n force: true\n}).should('have.value', 'gfgdfg2');\ncy.get('#select2-shipping_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-shipping_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-shipping_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-shipping_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-shipping_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-shipping_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n}).then(function () {\n cy.url().then(function ($myUrl) {\n if ($myUrl == \"https://test.subscriptionflow.com/en/customers/create\") {\n cy.get(\".col-10.col-sm-7 .invalid-feedback\").should('be.visible');\n cy.get('.col-10 > .invalid-feedback').should('be.visible');\n cy.get(':nth-child(3) > .form-group > .invalid-feedback').should('be.visible');\n }\n });\n});\ncy.get('.col-10.col-sm-7 input[type=\"email\"]').type('@gmail.com', {\n force: true\n});\ncy.get('#name-input').type('Test Customer', {\n force: true\n});\ncy.get('#phone_number-input').clear({\n force: true\n}).type(\"03004872354\", {\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n});\ncy.get('.page-title').should('contain', 'Test Customer');\ncy.url().should('include', '/customer-detail');", "err": {}, "uuid": "e47e8124-79c9-4592-861d-42d6937a7d8f", "parentUUID": "1021e6cb-51a1-41f7-a8b6-88465d10a592", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e47e8124-79c9-4592-861d-42d6937a7d8f" ], "failures": [], "pending": [], "skipped": [], "duration": 125844, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "96b714f7-72ad-4d40-909c-5528c67481f2", "title": "", "fullFile": "cypress/integration/SF/g-customer/03cancel_customer_spec.js", "file": "cypress/integration/SF/g-customer/03cancel_customer_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b8b9821c-4a8a-4f6a-82c3-43feb7a93599", "title": "Cancel Customer creation", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When: I click on Customers -> Customers from the main nav", "fullTitle": "Cancel Customer creation When: I click on Customers -> Customers from the main nav", "timedOut": null, "duration": 121904, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.contains('Create Customer').click({\n force: true\n});\ncy.url().should('include', '/customers/create');\ncy.contains('Basic Information').should('be.visible');\ncy.contains('Primary Contact').should('be.visible');\ncy.get('.card-header.border-bottom').contains('Tax Information').should('exist');\ncy.contains('Address Information').should('be.visible');\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").should('be.visible');\ncy.contains('Cancel').should('be.visible');\ncy.get('#name-input').type('Test Customer', {\n force: true\n}).should('have.value', 'Test Customer');\ncy.get('#name-input').clear(); // cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-container').click({force:true})\n// cy.wait(5000)\n// cy.get('#select2-assigned_group_id-input-results li:first-child').click({force:true})\ncy.wait(5000);\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-assigned_to-input-results li:first-child').click({\n force: true\n});\ncy.get('#select2-parent_id-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-parent_id-input-results li:first-child').click({\n force: true\n});\ncy.get('#contact_salutation-input').select('Mr.', {\n force: true\n});\ncy.get('#contact_first_name-input').type('First Test', {\n force: true\n}).should('have.value', 'First Test');\ncy.get('#contact_last_name-input').type('Last Test', {\n force: true\n}).should('have.value', 'Last Test');\nvar rand = userID_Alpha_Numeric();\ncy.get('.col-10.col-sm-7 input[type=\"email\"]').type(rand, {\n force: true\n}).should('have.value', rand);\ncy.get('#phone_number-input').type(\"1dfgdfg4\", {\n force: true\n}).should('have.value', '1dfgdfg4');\ncy.get('#po_number-input').type(\"1dfgdfg4\", {\n force: true\n}).should('have.value', '1dfgdfg4');\ncy.get('textarea[name=\"notes\"').type(\"NOTES\", {\n force: true\n}).should('have.value', 'NOTES');\ncy.get('#legal_entity-input').select('North America', {\n force: true\n});\ncy.get('#billing_cycle_day-input').select('4th of the Month', {\n force: true\n});\ncy.get('#terms-input').select('Net0', {\n force: true\n});\ncy.get('label[for=\"auto_charge-input\"]').click({\n force: true\n});\ncy.get('.card-header.border-bottom a .m-0 .fa').click({\n force: true\n});\ncy.get('#certificate_id-input').should('be.hidden');\ncy.get('#certificate_type-input').should('be.hidden');\ncy.get('#issuing_jurisdiction-input').should('be.hidden');\ncy.get('#entity_use_code-input').should('be.hidden');\ncy.get('textarea[name=\"description\"]').should('be.hidden');\ncy.get('label[for=\"tax_exempt-input\"]').click({\n force: true\n});\ncy.get('#certificate_id-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#certificate_type-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#issuing_jurisdiction-input').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#entity_use_code-input').should('be.visible').select('Federal government', {\n force: true\n});\ncy.get('textarea[name=\"description\"]').should('be.visible').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434'); // cy.get('#select2-tax_company-input-container').click({force: true});\n// cy.wait(5000);\n// cy.get('#select2-tax_company-input-container-results li:first-child').click({force: true}) \ncy.get('#vat_id-input').type('jshbd434', {\n force: true\n}).should('have.value', 'jshbd434');\ncy.get('#billing_address_1-input').type('Line11', {\n force: true\n}).should('have.value', 'Line11');\ncy.get('#billing_address_2-input').type('Line21', {\n force: true\n}).should('have.value', 'Line21');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#billing_postal_code-input').type('gfgdfg1', {\n force: true\n}).should('have.value', 'gfgdfg1');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').should('be.hidden');\ncy.get('#shipping_address_2-input').should('be.hidden');\ncy.get('#shipping_city-input').should('be.hidden');\ncy.get('#shipping_state-input').should('be.hidden');\ncy.get('#shipping_county-input').should('be.hidden');\ncy.get('#shipping_postal_code-input').should('be.hidden');\ncy.get('#shipping_country-input').should('be.hidden');\ncy.get('.custom-control-label small').click({\n force: true\n});\ncy.get('#shipping_address_1-input').type('Line12', {\n force: true\n}).should('have.value', 'Line12');\ncy.get('#shipping_address_2-input').type('Line22', {\n force: true\n}).should('have.value', 'Line22');\ncy.get('#shipping_postal_code-input').type('gfgdfg2', {\n force: true\n}).should('have.value', 'gfgdfg2');\ncy.get('#select2-shipping_country-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-shipping_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-shipping_state-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-shipping_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-shipping_city-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-shipping_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n}).then(function () {\n cy.url().then(function ($myUrl) {\n if ($myUrl == \"https://test.subscriptionflow.com/en/customers/create\") {\n cy.get(\".col-10.col-sm-7 .invalid-feedback\").should('be.visible');\n cy.get('.col-10 > .invalid-feedback').should('be.visible');\n cy.get(':nth-child(3) > .form-group > .invalid-feedback').should('be.visible');\n }\n });\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/customers');", "err": {}, "uuid": "ab6c1ace-438e-4ae5-8391-19580bc7c21b", "parentUUID": "b8b9821c-4a8a-4f6a-82c3-43feb7a93599", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ab6c1ace-438e-4ae5-8391-19580bc7c21b" ], "failures": [], "pending": [], "skipped": [], "duration": 121904, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e5bff187-5947-49c0-89f0-eefc02fe564a", "title": "", "fullFile": "cypress/integration/SF/g-customer/04search_customer.spec.js", "file": "cypress/integration/SF/g-customer/04search_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b97cff2a-dc3e-41a3-a683-a422f382145d", "title": "Search customers", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When: I enter 3 characters of Customers name in Search Field", "fullTitle": "Search customers When: I enter 3 characters of Customers name in Search Field", "timedOut": null, "duration": 47342, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('input[type=\"search\"]').type('Tes', {\n force: true\n}).then(function () {\n cy.wait(10000);\n var k = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + k + \"]\";\n cy.get(j).its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get(j).eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.include('tes');\n });\n }\n });\n } else {\n k = k + 1;\n }\n });\n});\ncy.get('input[type=\"search\"]').clear().type('Test Customer', {\n force: true\n}).then(function () {\n cy.wait(10000);\n var m = 0;\n var n;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n n = \"[data-sfuniqueid = dataTable__table-td-\" + m + \"]\";\n cy.get(n).its('length').then(function ($length) {\n for (var z = 0; z < $length - 1; z++) {\n cy.get(n).eq(z).then(function ($element) {\n expect($element.text()).to.include('Test Customer');\n });\n }\n });\n } else {\n m = m + 1;\n }\n });\n});", "err": {}, "uuid": "cdbd72da-9295-43e6-b575-fa8936f403e9", "parentUUID": "b97cff2a-dc3e-41a3-a683-a422f382145d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "cdbd72da-9295-43e6-b575-fa8936f403e9" ], "failures": [], "pending": [], "skipped": [], "duration": 47342, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "de452409-305b-4990-9ab3-4e3092e37b22", "title": "", "fullFile": "cypress/integration/SF/g-customer/05delete_customer.spec.js", "file": "cypress/integration/SF/g-customer/05delete_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "13f2be3e-b393-4eef-a732-54797cc2e6e1", "title": "Delete a customer", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Should delete customers", "fullTitle": "Delete a customer Should delete customers", "timedOut": null, "duration": 201779, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\nvar m = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + m + \"]\";\n cy.get(j).eq(5).then(function ($element) {\n cy.get('tbody tr td input').eq(5).click({\n force: true\n });\n cy.contains('Actions').click({\n force: true\n });\n cy.contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(30000);\n cy.get(j).eq(5).invoke('text').should('not.eq', $element.text());\n });\n });\n } else {\n m = m + 1;\n }\n});\ncy.get('#list-table_info').then(function ($data) {\n for (var i = 0; i < 6; i++) {\n cy.get('tbody tr td input').eq(i).click({\n force: true\n });\n }\n cy.contains('Actions').click({\n force: true\n });\n cy.contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(120000);\n });\n cy.get('#list-table_info').invoke('text').should('not.eq', $data.text());\n});\nvar z = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + z + \"]\";\n cy.get(j).eq(5).then(function ($element) {\n cy.get('tbody tr td input').eq(5).click({\n force: true\n });\n cy.contains('Actions').click({\n force: true\n });\n cy.contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return false;\n }).then(function () {\n cy.get('.dataTables_scrollHead th').each(function (element) {\n cy.get(j).eq(5).invoke('text').should('include', $element.text());\n });\n });\n });\n } else {\n z = z + 1;\n }\n});\ncy.wait(10000);\ncy.get('#list-table_info').then(function ($data) {\n for (var i = 0; i < 6; i++) {\n cy.get('tbody tr td input').eq(i).click({\n force: true\n });\n }\n cy.contains('Actions').click({\n force: true\n });\n cy.contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return false;\n });\n cy.get('#list-table_info').invoke('text').should('include', $data.text());\n});", "err": {}, "uuid": "8e84284b-dc98-49a6-9501-e7d553576153", "parentUUID": "13f2be3e-b393-4eef-a732-54797cc2e6e1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8e84284b-dc98-49a6-9501-e7d553576153" ], "failures": [], "pending": [], "skipped": [], "duration": 201779, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "65a5872a-8309-4662-a5db-57414fbe3fa7", "title": "", "fullFile": "cypress/integration/SF/g-customer/06edit_customer.spec.js", "file": "cypress/integration/SF/g-customer/06edit_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3243df58-7fcf-472c-988b-93a5796a57f2", "title": "Edit Customers", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Customers should be editted successfully", "fullTitle": "Edit Customers Customers should be editted successfully", "timedOut": null, "duration": 41159, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.show-edit').eq(4).click({\n force: true\n});\ncy.url().should('contain', '/edit');\ncy.get('#name-input').then(function ($element) {\n cy.get($element).type(' Updated', {\n force: true\n });\n cy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n });\n cy.location('pathname').then(function ($myPath) {\n if ($myPath.includes(\"/edit\")) {\n cy.get('#contact_first_name-input').type('Test', {\n force: true\n });\n cy.get('#contact_last_name-input').type('Test', {\n force: true\n });\n var rand = userID_Alpha_Numeric();\n cy.get('.col-10.col-sm-7 input[type=\"email\"]').type(rand + '@gmail.com', {\n force: true\n });\n cy.get('.col-md-12 .btn.btn-create').contains(\"Save\").click({\n force: true\n });\n }\n });\n cy.url().should('contain', '/customer-detail/');\n cy.get('.page-title.p-title').should('contain', $element.text() + ' Updated');\n cy.get('.col-6.col-md-4.detail-text span').first().should('contain', $element.text() + 'Updated');\n});", "err": {}, "uuid": "bd28ab02-d3f7-46f3-9355-08918acd19b4", "parentUUID": "3243df58-7fcf-472c-988b-93a5796a57f2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bd28ab02-d3f7-46f3-9355-08918acd19b4" ], "failures": [], "pending": [], "skipped": [], "duration": 41159, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fe9ba58d-8ce0-4628-b086-dc802425e0fe", "title": "", "fullFile": "cypress/integration/SF/g-customer/07clear_selection.spec.js", "file": "cypress/integration/SF/g-customer/07clear_selection.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "acb1ccb9-bb13-48e7-b0c0-5b0c1a4510e2", "title": "Clear Selections", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Unselect all selected entries", "fullTitle": "Clear Selections Unselect all selected entries", "timedOut": null, "duration": 25816, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.dataTables_scrollHead .check-all-records').click({\n force: true\n});\ncy.contains('Actions').should('be.visible');\ncy.get('.selected-rows a').should('be.visible').click({\n force: true\n});\ncy.get('tbody tr td input').then(function ($element) {\n for (var i = 0; i < $element.length; i++) {\n cy.get('tbody tr td input').eq(i).should('not.be.checked');\n }\n});", "err": {}, "uuid": "486c6e2e-6006-4a87-a451-5aaadc63d286", "parentUUID": "acb1ccb9-bb13-48e7-b0c0-5b0c1a4510e2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "486c6e2e-6006-4a87-a451-5aaadc63d286" ], "failures": [], "pending": [], "skipped": [], "duration": 25816, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "196dff60-c95a-459e-94bb-29dc57bdac46", "title": "", "fullFile": "cypress/integration/SF/g-customer/08aesc_desc.spec.js", "file": "cypress/integration/SF/g-customer/08aesc_desc.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b308914a-b165-449c-bbf4-487da2fa86bd", "title": "Asec Desc", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Sort the column in Asec or Desc", "fullTitle": "Asec Desc Sort the column in Asec or Desc", "timedOut": null, "duration": 55165, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#updated_at').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\nvar names1 = [];\nvar check1 = [];\nvar names2 = [];\nvar check2 = [];\ncy.get('.dataTables_scrollHead th').contains('Name').click({\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary span').each(function (elements) {\n // var normalizedelement = normalizeText(elements.text())\n names1.push(elements.text());\n check1.push(elements.text());\n check1.sort(function (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase());\n });\n });\n});\ncy.wrap(names1).should(\"deep.equal\", check1);\ncy.get('.dataTables_scrollHead th').contains('Name').click({\n force: true\n}).then(function () {\n cy.wait(7000);\n cy.get('.link-primary span').each(function (elements) {\n // var normalizedelement = normalizeText(elements.text())\n names2.push(elements.text());\n check2.push(elements.text());\n check2.sort(function (a, b) {\n return b - a;\n });\n });\n});\ncy.wrap(names2).should(\"deep.equal\", check2);\nvar update1 = [];\nvar checkup1 = [];\nvar update2 = [];\nvar checkup2 = [];\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Updated At\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n cy.get(j).each(function (elements) {\n //var normalizedelement = normalizeText(elements.text())\n update1.push(element.text());\n checkup1.push(element.text());\n checkup1.sort(function (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase());\n });\n });\n } else {\n i = i + 1;\n }\n});\ncy.wrap(update1).should(\"deep.equal\", checkup1);\nvar x = 0;\nvar y;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Updated At\") {\n y = \"[data-sfuniqueid = dataTable__table-td-\" + x + \"]\";\n console.log(y);\n cy.get(j).each(function (elements) {\n //var normalizedelement = normalizeText(elements.text())\n update2.push(elements.text());\n checkup2.push(elements.text());\n checkup2.sort(function (a, b) {\n return b - a;\n });\n });\n } else {\n x = x + 1;\n }\n});\ncy.wrap(update2).should(\"deep.equal\", checkup2);", "err": {}, "uuid": "f05ab424-2bcf-4dd4-9637-4bbc0bbf0346", "parentUUID": "b308914a-b165-449c-bbf4-487da2fa86bd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f05ab424-2bcf-4dd4-9637-4bbc0bbf0346" ], "failures": [], "pending": [], "skipped": [], "duration": 55165, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9fb8a859-0ffd-4110-8410-c55bc443c6cf", "title": "", "fullFile": "cypress/integration/SF/g-customer/09filter_by_name.spec.js", "file": "cypress/integration/SF/g-customer/09filter_by_name.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2c3ee656-76d7-4bf1-8c37-6977a14ed22d", "title": "Filter customers by name", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by name Filters customers based on given condition", "timedOut": null, "duration": 123735, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Name\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('Mary Girl', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.eq('marygirl');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('Mary Girl', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.not.eq('marygirl');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('Ma', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.include('ma');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('Ma', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.not.include('ma');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('ma', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n var reg = /^ma/;\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('an', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n var reg = /an$/;\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.eq('');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[name]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.link-primary').its('length').then(function ($length) {\n for (var i = 0; i < $length - 1; i++) {\n cy.get('.link-primary span').eq(i).then(function ($element) {\n var normalizedelement = normalizeText($element.text());\n expect(normalizedelement).to.not.eq('');\n });\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "31e87d5b-f19b-45b0-be9f-590b1a506071", "parentUUID": "2c3ee656-76d7-4bf1-8c37-6977a14ed22d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "31e87d5b-f19b-45b0-be9f-590b1a506071" ], "failures": [], "pending": [], "skipped": [], "duration": 123735, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8b15530f-c2e3-4933-9505-b84dfda3f77b", "title": "", "fullFile": "cypress/integration/SF/g-customer/10filter_by_customernumber.spec.js", "file": "cypress/integration/SF/g-customer/10filter_by_customernumber.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2212429f-b9a2-4c2b-838a-973e659da175", "title": "Filter customers by customer number", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by customer number Filters customers based on given condition", "timedOut": null, "duration": 125231, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#customer_number').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Customer Number\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Customer Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('CUST_000167', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('CUST_000167');\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('CUST_000167', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('CUST_000167');\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('CUST', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /^CUST/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('7', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /7$/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[customer_number]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "9218de6d-3643-4e57-993e-101e6124a8c2", "parentUUID": "2212429f-b9a2-4c2b-838a-973e659da175", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9218de6d-3643-4e57-993e-101e6124a8c2" ], "failures": [], "pending": [], "skipped": [], "duration": 125231, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "89fc0b18-0329-42c6-af5e-5cc7c716e77b", "title": "", "fullFile": "cypress/integration/SF/g-customer/11filter_by_phonenumber.spec.js", "file": "cypress/integration/SF/g-customer/11filter_by_phonenumber.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "25fe815d-2df9-4e9b-8746-64930d46292d", "title": "Filter customers by phone number", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by phone number Filters customers based on given condition", "timedOut": null, "duration": 126081, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#phone_number').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Phone Number\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Phone Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('03006789363', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq(' \\n 03006789363\\n ');\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('03006789363', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq(' \\n 03006789363\\n ');\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('03', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /^ \\n 03/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('3', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /3\\n $/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq(' \\n \\n ');\n });\n cy.get('.filerSelect [name=\"filter_condition[phone_number]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq(' \\n \\n ');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "46c376ea-bf4f-418e-9c6f-5a725c9d04b6", "parentUUID": "25fe815d-2df9-4e9b-8746-64930d46292d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "46c376ea-bf4f-418e-9c6f-5a725c9d04b6" ], "failures": [], "pending": [], "skipped": [], "duration": 126081, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "372701a1-fa0a-4130-8729-94b02488b324", "title": "", "fullFile": "cypress/integration/SF/g-customer/12filter_by_email.spec.js", "file": "cypress/integration/SF/g-customer/12filter_by_email.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "70bad278-a1af-48ac-8609-0cb7d2205423", "title": "Filter customers by email", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by email Filters customers based on given condition", "timedOut": null, "duration": 288569, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#email').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(18000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Email\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Email\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('mary@girl.com', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('mary@girl.com');\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('mary@girl.com', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('mary@girl.com');\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('mailinator', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('mailinator');\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('mailinator', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('mailinator');\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('ma', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n var reg = /^ma/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('r.com', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(30000);\n cy.get(j).each(function (elements) {\n var reg = /r.com$/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(50000);\n cy.get('tbody td').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[email]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(50000);\n cy.get('td').each(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n }\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `tbody td`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `tbody td`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/12filter_by_email.spec.js:231:16)", "diff": null }, "uuid": "43242d81-df4a-4356-9b24-a9f8b13c97e7", "parentUUID": "70bad278-a1af-48ac-8609-0cb7d2205423", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "43242d81-df4a-4356-9b24-a9f8b13c97e7" ], "pending": [], "skipped": [], "duration": 288569, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2dfbd708-c1dc-4291-ac47-74992920ed5d", "title": "", "fullFile": "cypress/integration/SF/g-customer/13filter_by_PO.spec.js", "file": "cypress/integration/SF/g-customer/13filter_by_PO.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9f9dc5fd-0155-4640-aceb-6fe6abcda6af", "title": "Filter customers by PO", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by PO Filters customers based on given condition", "timedOut": null, "duration": 125046, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#po_number').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"PO Number\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"PO Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('808', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('808');\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('808', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('808');\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('6', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('6');\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('8', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /^8/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('8', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /8$/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[po_number]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "474bea82-ded8-44de-b84d-0b0d46ad5d56", "parentUUID": "9f9dc5fd-0155-4640-aceb-6fe6abcda6af", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "474bea82-ded8-44de-b84d-0b0d46ad5d56" ], "failures": [], "pending": [], "skipped": [], "duration": 125046, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "471cd687-6cdf-482b-8a63-03d6d6fe6177", "title": "", "fullFile": "cypress/integration/SF/g-customer/14filter_by_LegalEntity.spec.js", "file": "cypress/integration/SF/g-customer/14filter_by_LegalEntity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "94693f56-c9eb-41f0-a9f5-289b5fbf147b", "title": "Filter customers by legal entity", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by legal entity Filters customers based on given condition", "timedOut": null, "duration": 104601, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#legal_entity').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Legal Entity\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Legal Entity\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get('#select2-legal_entity-input-container').click({\n force: true\n });\n cy.get('#select2-legal_entity-input-results li').contains('North America').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('North America');\n });\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').select(\"isn't\", {\n force: true\n });\n cy.get('#select2-legal_entity-input-container').click({\n force: true\n });\n cy.get('#select2-legal_entity-input-results li').contains('North America').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('North America');\n });\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').select('contains', {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-legal_entity-input-results li').contains('North America').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('North America');\n });\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-legal_entity-input-results li').contains('North America').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('North America');\n });\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[legal_entity]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "9f0ef0c3-ce9c-4bd7-bef4-04b3449d3860", "parentUUID": "94693f56-c9eb-41f0-a9f5-289b5fbf147b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9f0ef0c3-ce9c-4bd7-bef4-04b3449d3860" ], "failures": [], "pending": [], "skipped": [], "duration": 104601, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b094e13e-19ed-4216-a9f3-1e64e93a18a3", "title": "", "fullFile": "cypress/integration/SF/g-customer/15filter_by_billingCycle.spec.js", "file": "cypress/integration/SF/g-customer/15filter_by_billingCycle.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2cd6a48e-6739-4166-b5e3-4f9fcb78c02f", "title": "Filter customers by billing cycle", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by billing cycle Filters customers based on given condition", "timedOut": null, "duration": 103032, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_cycle_day').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing Cycle Day\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing Cycle Day\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-container').click({\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-results li').contains('1st of the Month').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('1');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').select(\"isn't\", {\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-container').click({\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-results li').contains('1st of the Month').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('1');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').select('contains', {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-results li').contains('1st of the Month').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('1');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-billing_cycle_day-input-results li').contains('1st of the Month').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('1');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_cycle_day]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "46dafdbf-2cc8-4d62-b9e1-4a8ea7c6f810", "parentUUID": "2cd6a48e-6739-4166-b5e3-4f9fcb78c02f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "46dafdbf-2cc8-4d62-b9e1-4a8ea7c6f810" ], "failures": [], "pending": [], "skipped": [], "duration": 103032, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5a3f0569-5dc7-4550-b556-229868f4858a", "title": "", "fullFile": "cypress/integration/SF/g-customer/16filter_by_TaxExempt.spec.js", "file": "cypress/integration/SF/g-customer/16filter_by_TaxExempt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d90b1b7f-0b06-4b29-a1a2-f9b37d645736", "title": "Filter customers by tax exempt", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by tax exempt Filters customers based on given condition", "timedOut": null, "duration": 24736, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Tax Exempt\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Tax Exempt\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] i\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[tax_exempt]\"]').should('be.visible').select('is checked', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n cy.get(elements).should('have.class', 'fa-check');\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_exempt]\"]').select(\"is not checked\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n cy.get(elements).should('have.class', 'fa-times');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "eb9ec263-71b2-4581-b5be-e833cd41d0a1", "parentUUID": "d90b1b7f-0b06-4b29-a1a2-f9b37d645736", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "eb9ec263-71b2-4581-b5be-e833cd41d0a1" ], "failures": [], "pending": [], "skipped": [], "duration": 24736, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "26f60574-b183-4e3d-b5f7-bd7d86023232", "title": "", "fullFile": "cypress/integration/SF/g-customer/17filter_by_certificateid.spec.js", "file": "cypress/integration/SF/g-customer/17filter_by_certificateid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "358cfb82-e09e-4090-960c-ad1b6d1db982", "title": "Filter customers by Certificate ID", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Certificate ID Filters customers based on given condition", "timedOut": null, "duration": 37824, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#certificate_id').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Certificate ID\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Certificate ID\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select('is', {\n force: true\n });\n cy.get(y).type('jkjhkj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jkjhkj');\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jkjhkj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jkjhkj');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /^jk/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('hkj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /hkj$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_id]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "e7e418fa-2502-47d3-bdf9-2fedc18e1e64", "parentUUID": "358cfb82-e09e-4090-960c-ad1b6d1db982", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e7e418fa-2502-47d3-bdf9-2fedc18e1e64" ], "failures": [], "pending": [], "skipped": [], "duration": 37824, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8a29890a-8a28-4473-a1ea-395df314cea0", "title": "", "fullFile": "cypress/integration/SF/g-customer/18filter_by_certificatetype.spec.js", "file": "cypress/integration/SF/g-customer/18filter_by_certificatetype.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "cd950189-1723-4e1b-9b01-ec31b34e8783", "title": "Filter customers by Certificate type", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Certificate type Filters customers based on given condition", "timedOut": null, "duration": 126334, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#certificate_type').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Certificate Type\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Certificate Type\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select('is', {\n force: true\n });\n cy.get(y).type('jhkjjhk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jhkjjhk');\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jhkjjhk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jhkjjhk');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^jh/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('hk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /hk$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[certificate_type]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "f159d456-eb31-42f6-b0c2-cb8389da24a8", "parentUUID": "cd950189-1723-4e1b-9b01-ec31b34e8783", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f159d456-eb31-42f6-b0c2-cb8389da24a8" ], "failures": [], "pending": [], "skipped": [], "duration": 126334, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6663de78-66fe-4502-950e-0ff35e316d86", "title": "", "fullFile": "cypress/integration/SF/g-customer/19filter_by_issuingJurisdiction.spec.js", "file": "cypress/integration/SF/g-customer/19filter_by_issuingJurisdiction.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b0d931a4-c873-472b-9657-fd76b86ff711", "title": "Filter customers by issuing jurisdiction", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by issuing jurisdiction Filters customers based on given condition", "timedOut": null, "duration": 124541, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#issuing_jurisdiction').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Issuing Jurisdiction\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Issuing Jurisdiction\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select('is', {\n force: true\n });\n cy.get(y).type('jhkjhkjh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jhkjhkjh');\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jhkjhkjh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jhkjhkjh');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /^jh/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('jh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /jh$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[issuing_jurisdiction]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "898f8425-005f-47b1-919a-0a85ffca86e1", "parentUUID": "b0d931a4-c873-472b-9657-fd76b86ff711", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "898f8425-005f-47b1-919a-0a85ffca86e1" ], "failures": [], "pending": [], "skipped": [], "duration": 124541, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7f9e656e-9815-4c86-9ea6-99267258da13", "title": "", "fullFile": "cypress/integration/SF/g-customer/20filter_by_entityUsecode.spec.js", "file": "cypress/integration/SF/g-customer/20filter_by_entityUsecode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "83b90d1d-5217-4153-a161-92164095f4f0", "title": "Filter customers by entity use code", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by entity use code Filters customers based on given condition", "timedOut": null, "duration": 111120, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#entity_use_code').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Entity Use Code\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Entity Use Code\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').should('exist').select('is', {\n force: true\n });\n cy.get('#select2-entity_use_code-input-container').click({\n force: true\n });\n cy.get('#select2-entity_use_code-input-results li').contains('State government').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').each(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('B');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').select(\"isn't\", {\n force: true\n });\n cy.get('#select2-entity_use_code-input-container').click({\n force: true\n });\n cy.get('#select2-entity_use_code-input-results li').contains('State government').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').each(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('B');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').select('contains', {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-entity_use_code-input-results li').contains('State government').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').each(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('B');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-entity_use_code-input-results li').contains('State government').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').each(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('B');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[entity_use_code]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n }\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "a2447817-a1bf-4d5c-9e21-419a93add1d7", "parentUUID": "83b90d1d-5217-4153-a161-92164095f4f0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a2447817-a1bf-4d5c-9e21-419a93add1d7" ], "failures": [], "pending": [], "skipped": [], "duration": 111120, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7ef0199f-e904-4372-b313-30782734da95", "title": "", "fullFile": "cypress/integration/SF/g-customer/21filter_by_Description.spec.js", "file": "cypress/integration/SF/g-customer/21filter_by_Description.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "486cf884-0fc5-4a45-acbb-6f33c827103c", "title": "Filter customers by description", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by description Filters customers based on given condition", "timedOut": null, "duration": 125203, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#description').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Description\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Description\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').should('exist').select('is', {\n force: true\n });\n cy.get(y).type('jkhjkhjk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jkhjkhjk');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jkhjkhjk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jkhjkhjk');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^jk/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('jk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /jk$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[description]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "4917c7ec-c127-44d9-a289-6da5fc6e1c58", "parentUUID": "486cf884-0fc5-4a45-acbb-6f33c827103c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4917c7ec-c127-44d9-a289-6da5fc6e1c58" ], "failures": [], "pending": [], "skipped": [], "duration": 125203, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "719518ec-34ac-4b70-ac63-6d00b5861df9", "title": "", "fullFile": "cypress/integration/SF/g-customer/22filter_by_TaxCompany.spec.js", "file": "cypress/integration/SF/g-customer/22filter_by_TaxCompany.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "917173e4-1d26-4847-a96e-7630f75d3961", "title": "Filter customers by tax company", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by tax company Filters customers based on given condition", "timedOut": null, "duration": 145526, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#tax_company').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Tax Company\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Tax Company\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get('#select2-tax_company-input-container').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#select2-tax_company-input-results li').contains('Techlo').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('techlo');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').select(\"isn't\", {\n force: true\n });\n cy.get('#select2-tax_company-input-container').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#select2-tax_company-input-results li').contains('Techlo').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('techlo');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').select(\"contains\", {\n force: true\n });\n cy.wait(2000);\n cy.get('.select2-selection.select2-selection--multiple').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.select2-results__option').contains('Techlo').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('techlo');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-selection.select2-selection--multiple').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.select2-results__option').contains('Techlo').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('techlo');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[tax_company]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "c1cce235-4f42-438b-931a-de205cb6058f", "parentUUID": "917173e4-1d26-4847-a96e-7630f75d3961", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c1cce235-4f42-438b-931a-de205cb6058f" ], "failures": [], "pending": [], "skipped": [], "duration": 145526, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "dfc9ada7-1933-49b5-bbb5-935dbf92de7d", "title": "", "fullFile": "cypress/integration/SF/g-customer/23filter_by_VATID.spec.js", "file": "cypress/integration/SF/g-customer/23filter_by_VATID.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0ef99e2a-2608-442d-abc9-386041c31945", "title": "Filter customers by VAT ID", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by VAT ID Filters customers based on given condition", "timedOut": null, "duration": 126410, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#vat_id').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"VAT ID\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"VAT ID\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('43tssd', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('43tssd');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('43tssd', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('43tssd');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('s', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('s');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('s', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('s');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('43', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^43/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('ssd', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /ssd$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[vat_id]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "0ef1cd13-7a38-41d8-bf21-e956b1836ccd", "parentUUID": "0ef99e2a-2608-442d-abc9-386041c31945", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0ef1cd13-7a38-41d8-bf21-e956b1836ccd" ], "failures": [], "pending": [], "skipped": [], "duration": 126410, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1dff365c-c75a-42cd-8879-ba3d359c6e8e", "title": "", "fullFile": "cypress/integration/SF/g-customer/24filter_by_PortalisEnabled.spec.js", "file": "cypress/integration/SF/g-customer/24filter_by_PortalisEnabled.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f1efae20-fee5-4286-a9bf-46c6ef257546", "title": "Filter customers by Portal is Enabled", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Portal is Enabled Filters customers based on given condition", "timedOut": null, "duration": 60987, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#portal_is_enabled').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Portal Is Enabled\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Portal Is Enabled\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] i\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[portal_is_enabled]\"]').should('exist').select('is checked', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n cy.get(elements).should('have.class', 'fa-check');\n });\n cy.get('.filerSelect [name=\"filter_condition[portal_is_enabled]\"]').select(\"is not checked\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n cy.get(elements).should('have.class', 'fa-times');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "01bb6ac4-d0a7-4faa-ba17-5491b266b155", "parentUUID": "f1efae20-fee5-4286-a9bf-46c6ef257546", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "01bb6ac4-d0a7-4faa-ba17-5491b266b155" ], "failures": [], "pending": [], "skipped": [], "duration": 60987, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6883e4a7-adf8-4718-81e1-c27578a27d89", "title": "", "fullFile": "cypress/integration/SF/g-customer/25filter_by_BillingAddress1.spec.js", "file": "cypress/integration/SF/g-customer/25filter_by_BillingAddress1.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7f194280-8bbc-4876-b08b-f8e2fe5ae709", "title": "Filter customers by Billing Address 1", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing Address 1 Filters customers based on given condition", "timedOut": null, "duration": 126666, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_address_1').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing Address 1\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing Address 1\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('yuytu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('yuytu');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('yuytu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('yuytu');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('t', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('t');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('t', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('t');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('yu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^yu/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('tu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /tu$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_1]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "44fb6244-61e6-48f4-9547-9d3e38292817", "parentUUID": "7f194280-8bbc-4876-b08b-f8e2fe5ae709", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "44fb6244-61e6-48f4-9547-9d3e38292817" ], "failures": [], "pending": [], "skipped": [], "duration": 126666, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0df4dbeb-a18e-4382-9092-5ced0f2e9115", "title": "", "fullFile": "cypress/integration/SF/g-customer/26filter_by_BillingAddress2.spec.js", "file": "cypress/integration/SF/g-customer/26filter_by_BillingAddress2.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "756f896e-a18a-4ade-8be7-5106dcbdc10d", "title": "Filter customers by Billing Address 2", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing Address 2 Filters customers based on given condition", "timedOut": null, "duration": 37706, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_address_2').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing Address 2\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing Address 2\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('utytu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('utytu');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('utytu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('utytu');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('t', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('t');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('t', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('t');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('ut', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^ut/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('tu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /tu$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_address_2]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "bec385fc-3fd9-4eac-886c-4be249eb63a2", "parentUUID": "756f896e-a18a-4ade-8be7-5106dcbdc10d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bec385fc-3fd9-4eac-886c-4be249eb63a2" ], "failures": [], "pending": [], "skipped": [], "duration": 37706, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "41bab509-faa6-4e43-8aa2-c94bcdd7866c", "title": "", "fullFile": "cypress/integration/SF/g-customer/27filter_by_Billing_Country.spec.js", "file": "cypress/integration/SF/g-customer/27filter_by_Billing_Country.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5e109110-eeee-4520-b6ce-4a54d32cf9a3", "title": "Filter customers by Billing country", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing country Filters customers based on given condition", "timedOut": null, "duration": 126096, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_country').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing Country\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing Country\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('PK');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('PK');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('PK');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('PK');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^PK/;\n expect(elements.text()).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('PK', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /PK$/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_country]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "97d9f21d-4f90-4555-b2a2-2e56e305defb", "parentUUID": "5e109110-eeee-4520-b6ce-4a54d32cf9a3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "97d9f21d-4f90-4555-b2a2-2e56e305defb" ], "failures": [], "pending": [], "skipped": [], "duration": 126096, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1da9a4e3-b371-4b09-b0b5-c0d9b35ac8fa", "title": "", "fullFile": "cypress/integration/SF/g-customer/28filter_by_BillingState.spec.js", "file": "cypress/integration/SF/g-customer/28filter_by_BillingState.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "128de185-d66e-403a-98c2-f25fd2f493ae", "title": "Filter customers by Billing State", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing State Filters customers based on given condition", "timedOut": null, "duration": 126355, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_state').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing State\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing State\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('Punjab', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('Punjab');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('Punjab', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('Punjab');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('un', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.include('un');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('un', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.include('un');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('Pu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^Pu/;\n expect(elements.text()).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('ab', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /ab$/;\n expect(elements.text()).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_state]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n expect(elements.text()).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "40029a0a-4537-4c5f-9bb3-5908b9fc689e", "parentUUID": "128de185-d66e-403a-98c2-f25fd2f493ae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "40029a0a-4537-4c5f-9bb3-5908b9fc689e" ], "failures": [], "pending": [], "skipped": [], "duration": 126355, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2a85a1ff-2770-4336-99b6-0999056e9839", "title": "", "fullFile": "cypress/integration/SF/g-customer/29filter_by_BillingCity.spec.js", "file": "cypress/integration/SF/g-customer/29filter_by_BillingCity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b161f0a5-c4f2-4c3c-abfe-911301aad0f7", "title": "Filter customers by Billing City", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing City Filters customers based on given condition", "timedOut": null, "duration": 125902, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_city').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing City\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing City\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('Lahore', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('lahore');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('Lahore', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('lahore');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('ho', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('ho');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('ho', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('ho');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('La', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^la/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('re', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /re$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_city]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "09504a72-d179-4104-9886-dee927f11cbb", "parentUUID": "b161f0a5-c4f2-4c3c-abfe-911301aad0f7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "09504a72-d179-4104-9886-dee927f11cbb" ], "failures": [], "pending": [], "skipped": [], "duration": 125902, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f63128e7-f068-4696-9509-ee82b4199a4b", "title": "", "fullFile": "cypress/integration/SF/g-customer/30filter_by_BillingPostalCode.spec.js", "file": "cypress/integration/SF/g-customer/30filter_by_BillingPostalCode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "dc9b56b1-3593-439d-aca6-51eecf598c2f", "title": "Filter customers by Billing Postal Code", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Billing Postal Code Filters customers based on given condition", "timedOut": null, "duration": 125612, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#billing_postal_code').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Billing Postal Code\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Billing Postal Code\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('53720', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('53720');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('53720', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('53720');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('37', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('37');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('37', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('37');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('53', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^53/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('20', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /20$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[billing_postal_code]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "f071da28-ee08-498c-8335-69b26416c8d7", "parentUUID": "dc9b56b1-3593-439d-aca6-51eecf598c2f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f071da28-ee08-498c-8335-69b26416c8d7" ], "failures": [], "pending": [], "skipped": [], "duration": 125612, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7541d722-3af5-4381-b612-1514c8c68a7b", "title": "", "fullFile": "cypress/integration/SF/g-customer/31filter_by_ShippingAddress1.spec.js", "file": "cypress/integration/SF/g-customer/31filter_by_ShippingAddress1.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7ae62cf1-536b-4fa2-bc72-8aafcdb30931", "title": "Filter customers by Shipping Address 1", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping Address 1 Filters customers based on given condition", "timedOut": null, "duration": 126480, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_address_1').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping Address 1\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping Address 1\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('jhkjhk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jhkjhk');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jhkjhk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jhkjhk');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('k', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('k');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('k', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('k');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jh', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^jh/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('hk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /hk$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_1]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "392cc154-8653-49d1-98a2-dc14e928426d", "parentUUID": "7ae62cf1-536b-4fa2-bc72-8aafcdb30931", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "392cc154-8653-49d1-98a2-dc14e928426d" ], "failures": [], "pending": [], "skipped": [], "duration": 126480, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f0507d6f-30f4-4b12-902b-a8d38740d14d", "title": "", "fullFile": "cypress/integration/SF/g-customer/32filter_by_ShippingAddress2.spec.js", "file": "cypress/integration/SF/g-customer/32filter_by_ShippingAddress2.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8709b6c4-1d14-4347-a53d-8f859040780a", "title": "Filter customers by Shipping Address 2", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping Address 2 Filters customers based on given condition", "timedOut": null, "duration": 38492, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_address_2').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping Address 2\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping Address 2\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('jkhkhj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jkhkhj');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jkhkhj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jkhkhj');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('k', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('k');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('k', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('k');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^jk/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('hj', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /hj$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_address_2]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "ca82dc2b-2b8f-4562-8779-e1867b631ae8", "parentUUID": "8709b6c4-1d14-4347-a53d-8f859040780a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ca82dc2b-2b8f-4562-8779-e1867b631ae8" ], "failures": [], "pending": [], "skipped": [], "duration": 38492, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "489381f7-050b-4c61-831e-08303c38c325", "title": "", "fullFile": "cypress/integration/SF/g-customer/33filter_by_ShippingCountry.spec.js", "file": "cypress/integration/SF/g-customer/33filter_by_ShippingCountry.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "58f0c4bb-b5d2-4170-9830-118444978781", "title": "Filter customers by Shipping Country", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping Country Filters customers based on given condition", "timedOut": null, "duration": 125518, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_country').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping Country\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping Country\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('dz', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('dz');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('dz', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('dz');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('dz', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('dz');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('dz', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('dz');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('d', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^d/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('z', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /z$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_country]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "a924c13a-c2a5-40e6-a7ca-ea9173bb3bbf", "parentUUID": "58f0c4bb-b5d2-4170-9830-118444978781", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a924c13a-c2a5-40e6-a7ca-ea9173bb3bbf" ], "failures": [], "pending": [], "skipped": [], "duration": 125518, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0d612097-f1d8-4d4a-8945-31e67f16c2a7", "title": "", "fullFile": "cypress/integration/SF/g-customer/34filter_by_ShippingState.spec.js", "file": "cypress/integration/SF/g-customer/34filter_by_ShippingState.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "765af3d4-d5d4-438c-94d3-be094312128d", "title": "Filter customers by Shipping State", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping State Filters customers based on given condition", "timedOut": null, "duration": 125640, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_state').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping State\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping State\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('Aïn Defla Province', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('aïndeflaprovince');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('Aïn Defla Province', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('aïndeflaprovince');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('fla', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('fla');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('fla', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('fla');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('pu', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^pu/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('ce', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /ce$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_state]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "dd29c288-33dd-44c5-8673-d8b2189d0d96", "parentUUID": "765af3d4-d5d4-438c-94d3-be094312128d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "dd29c288-33dd-44c5-8673-d8b2189d0d96" ], "failures": [], "pending": [], "skipped": [], "duration": 125640, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e15e38b7-e73e-4bf6-8dd9-07d40dc81cff", "title": "", "fullFile": "cypress/integration/SF/g-customer/35filter_by_ShippingCity.spec.js", "file": "cypress/integration/SF/g-customer/35filter_by_ShippingCity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f3b32e23-bfc8-40f5-a1c2-57dde37f69c3", "title": "Filter customers by Shipping City", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping City Filters customers based on given condition", "timedOut": null, "duration": 125676, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_city').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping City\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping City\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('El Abadia', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('elabadia');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('El Abadia', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('elabadia');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('aba', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('aba');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('aba', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('aba');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('El', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^el/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('dia', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /dia$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_city]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "428d60a3-d5a4-4981-aa9d-5d16c56c10e2", "parentUUID": "f3b32e23-bfc8-40f5-a1c2-57dde37f69c3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "428d60a3-d5a4-4981-aa9d-5d16c56c10e2" ], "failures": [], "pending": [], "skipped": [], "duration": 125676, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ffb8756a-a7dd-4b02-8e29-6faab342fb35", "title": "", "fullFile": "cypress/integration/SF/g-customer/36filter_by_ShippingPostalCode.spec.js", "file": "cypress/integration/SF/g-customer/36filter_by_ShippingPostalCode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "28d00398-4ee3-45e0-b5f8-2824e762bf3a", "title": "Filter customers by Shipping Postal Code", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Shipping Postal Code Filters customers based on given condition", "timedOut": null, "duration": 127087, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#shipping_postal_code').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Shipping Postal Code\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Shipping Postal Code\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get(y).type('jkhjk898', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('jkhjk898');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"isn't\", {\n force: true\n });\n cy.get(y).type('jkhjk898', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('jkhjk898');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"contains\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"doesn't contain\", {\n force: true\n });\n cy.get(y).type('j', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.include('j');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"starts with\", {\n force: true\n });\n cy.get(y).type('jk', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var reg = /^jk/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"ends with\", {\n force: true\n });\n cy.get(y).type('898', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var reg = /898$/;\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.match(reg);\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"is empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('');\n });\n cy.get('.filerSelect [name=\"filter_condition[shipping_postal_code]\"]').select(\"is not empty\", {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('');\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "f5fdb400-fff6-4199-a8db-1cabb964a866", "parentUUID": "28d00398-4ee3-45e0-b5f8-2824e762bf3a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f5fdb400-fff6-4199-a8db-1cabb964a866" ], "failures": [], "pending": [], "skipped": [], "duration": 127087, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2d9af868-c87f-4ad6-a7fa-24edcef45997", "title": "", "fullFile": "cypress/integration/SF/g-customer/37filter_by_CreatedAt.spec.js", "file": "cypress/integration/SF/g-customer/37filter_by_CreatedAt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2622b96d-b7f9-46c7-84f4-963d2ed14ebd", "title": "Filter customers by Created At", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Created At Filters customers based on given condition", "timedOut": null, "duration": 136955, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#created_at').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Created At\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Created At\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').should('be.visible').select('Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[created_at]\"]').type('09/29/2020');\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text(), 'MM/DD/yyyy');\n var date = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM/DD/yyyy');\n expect(date).equal('09/29/2020');\n expect(elements.text()).to.eq('09/29/2020');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Before', {\n force: true\n });\n cy.get('input[name=\"filter_value[created_at]\"]').type('09/29/2020');\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text(), 'MM/DD/yyyy');\n var year = Cypress.moment(dateString, 'MM/DD/yyyy').format('yyyy');\n var yearInt = parseInt(year);\n var month = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM');\n var monthInt = parseInt(month);\n var date = Cypress.moment(dateString, 'MM/DD/yyyy').format('DD');\n var dateInt = parseInt(date);\n console.log(yearInt);\n console.log(monthInt);\n console.log(dateInt);\n if (yearInt < 2020) {\n expect(yearInt).to.be.lessThan(2020);\n } else if (yearInt == 2020) {\n if (monthInt < 9) {\n expect(monthInt).to.be.lessThan(9);\n } else if (monthInt == 9) {\n expect(dateInt).to.be.lessThan(29);\n }\n }\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('After', {\n force: true\n });\n cy.get('input[name=\"filter_value[created_at]\"]').type('09/29/2020');\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text(), 'MM/DD/yyyy');\n var year = Cypress.moment(dateString, 'MM/DD/yyyy').format('yyyy');\n var yearInt = parseInt(year);\n var month = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM');\n var monthInt = parseInt(month);\n var date = Cypress.moment(dateString, 'MM/DD/yyyy').format('DD');\n var dateInt = parseInt(date);\n console.log(yearInt);\n console.log(monthInt);\n console.log(dateInt);\n if (yearInt > 2020) {\n expect(yearInt).to.be.greaterThan(2020);\n } else if (yearInt == 2020) {\n if (monthInt > 9) {\n expect(monthInt).to.be.greaterThan(9);\n } else if (monthInt == 9) {\n expect(dateInt).to.be.greaterThan(29);\n }\n }\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Today', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var Todaydate = Cypress.moment().format('MM/DD/yyyy');\n var dateString = Cypress.moment(elements.text(), 'MM/DD/yyyy');\n var date = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM/DD/yyyy');\n expect(Todaydate).equal(date);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Yesterday', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text(), 'MM/DD/yyyy');\n var datetxt = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM/DD/yyyy');\n var Todaydate = Cypress.moment().subtract(1, 'days').startOf('day');\n Todaydate = Cypress.moment(Todaydate, \"MM/DD/yyyy\").format('MM/DD/yyyy');\n expect(Todaydate).equal(datetxt);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Last Week', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text()).format('MM/DD/yyyy');\n var datetxt = new Date(dateString); //var datetxt = Cypress.moment(dateString, 'MM/DD/yyyy hh:mm').format('MM/DD/yyyy hh:mm');\n var Today = Cypress.moment().format('MM/ddd/yyyy');\n var date = Cypress.moment(Today, 'MM/ddd/yyyy')._i;\n date = date.replace(/[^[a-zA-Z]/g, '');\n if (date == 'Sun') {\n var Saturday = Cypress.moment().subtract(1, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(7, 'days').startOf('day');\n }\n if (date == 'Mon') {\n var Saturday = Cypress.moment().subtract(2, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(8, 'days').startOf('day');\n }\n if (date == 'Tue') {\n var Saturday = Cypress.moment().subtract(3, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(9, 'days').startOf('day');\n }\n if (date == 'Wed') {\n var Saturday = Cypress.moment().subtract(4, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(10, 'days').startOf('day');\n }\n if (date == 'Thu') {\n var Saturday = Cypress.moment().subtract(5, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(11, 'days').startOf('day');\n }\n if (date == 'Fri') {\n var Saturday = Cypress.moment().subtract(6, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(12, 'days').startOf('day');\n }\n if (date == 'Sat') {\n var Saturday = Cypress.moment().subtract(7, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(13, 'days').startOf('day');\n }\n Saturday = Cypress.moment(Saturday, \"MM/DD/yyyy\").format('MM/DD/yyyy');\n Saturday = new Date(Saturday);\n Sunday = Cypress.moment(Sunday, \"MM/DD/yyyy\").format('MM/DD/yyyy');\n Sunday = new Date(Sunday);\n expect(datetxt).within(Sunday, Saturday);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Current Week', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text()).format('MM/DD/yyyy');\n var datetxt = new Date(dateString); //var datetxt = Cypress.moment(dateString, 'MM/DD/yyyy hh:mm').format('MM/DD/yyyy hh:mm');\n var Today = Cypress.moment().format('MM/ddd/yyyy');\n var date = Cypress.moment(Today, 'MM/ddd/yyyy')._i;\n date = date.replace(/[^[a-zA-Z]/g, '');\n if (date == 'Sun') {\n var Saturday = Cypress.moment().add(6, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(0, 'days').startOf('day');\n }\n if (date == 'Mon') {\n var Saturday = Cypress.moment().add(5, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(1, 'days').startOf('day');\n }\n if (date == 'Tue') {\n var Saturday = Cypress.moment().add(4, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(2, 'days').startOf('day');\n }\n if (date == 'Wed') {\n var Saturday = Cypress.moment().add(3, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(3, 'days').startOf('day');\n }\n if (date == 'Thu') {\n var Saturday = Cypress.moment().add(2, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(4, 'days').startOf('day');\n }\n if (date == 'Fri') {\n var Saturday = Cypress.moment().add(1, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(5, 'days').startOf('day');\n }\n if (date == 'Sat') {\n var Saturday = Cypress.moment().add(0, 'days').startOf('day');\n var Sunday = Cypress.moment().subtract(6, 'days').startOf('day');\n }\n Saturday = Cypress.moment(Saturday, \"MM/DD/yyyy\").format('MM/DD/yyyy');\n Saturday = new Date(Saturday);\n Sunday = Cypress.moment(Sunday, \"MM/DD/yyyy\").format('MM/DD/yyyy');\n Sunday = new Date(Sunday);\n expect(datetxt).within(Sunday, Saturday);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Last Month', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text()).format('MM/DD/yyyy');\n var dateMonth = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM');\n dateMonth = parseInt(dateMonth); //var datetxt = Cypress.moment(dateString, 'MM/DD/yyyy hh:mm').format('MM/DD/yyyy hh:mm');\n var Today = Cypress.moment().format('MM/DD/yyyy');\n var month = Cypress.moment(Today, 'MM/ddd/yyyy').format('MM');\n if (month == 1) {\n month = 12;\n } else {\n month = month - 1;\n }\n expect(dateMonth).equal(month);\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_at]\"]').select('Current Month', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.dataTables_scroll tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var dateString = Cypress.moment(elements.text()).format('MM/DD/yyyy');\n var dateMonth = Cypress.moment(dateString, 'MM/DD/yyyy').format('MM');\n dateMonth = parseInt(dateMonth); //var datetxt = Cypress.moment(dateString, 'MM/DD/yyyy hh:mm').format('MM/DD/yyyy hh:mm');\n var Today = Cypress.moment().format('MM/DD/yyyy');\n var month = Cypress.moment(Today, 'MM/ddd/yyyy').format('MM');\n month = parseInt(month);\n expect(dateMonth).equal(month);\n });\n }\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "ae0dc28d-fe42-428c-b5df-8cf6e4b09025", "parentUUID": "2622b96d-b7f9-46c7-84f4-963d2ed14ebd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ae0dc28d-fe42-428c-b5df-8cf6e4b09025" ], "failures": [], "pending": [], "skipped": [], "duration": 136955, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "562779ee-6d93-44d6-8434-e9bb105d0e04", "title": "", "fullFile": "cypress/integration/SF/g-customer/38filter_by_CreatedBy.spec.js", "file": "cypress/integration/SF/g-customer/38filter_by_CreatedBy.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "670ce494-001d-4d26-ac3e-c0a6cca97211", "title": "Filter customers by Created By", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Filters customers based on given condition", "fullTitle": "Filter customers by Created By Filters customers based on given condition", "timedOut": null, "duration": 71243, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#created_by').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Created By\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Created By\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[created_by]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get('#select2-created_by-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#select2-created_by-input-results').contains('Test User').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('testuser');\n });\n }\n });\n cy.get('.filerSelect [name=\"filter_condition[created_by]\"]').select(\"isn't\", {\n force: true\n });\n cy.get('#select2-created_by-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#select2-created_by-input-results li').contains('Test User').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.not.eq('testuser');\n });\n }\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});", "err": {}, "uuid": "aa75b9f9-3f6f-43eb-9e39-083a2f78e59c", "parentUUID": "670ce494-001d-4d26-ac3e-c0a6cca97211", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "aa75b9f9-3f6f-43eb-9e39-083a2f78e59c" ], "failures": [], "pending": [], "skipped": [], "duration": 71243, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "14a1cd6f-66a8-4f8c-917c-25a09656e74d", "title": "", "fullFile": "cypress/integration/SF/g-customer/39clear_filter.spec.js", "file": "cypress/integration/SF/g-customer/39clear_filter.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "401cf348-a91b-4442-9114-b28902f54879", "title": "Clear filter", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Clear Filters should bring back unfiltered list", "fullTitle": "Clear filter Clear Filters should bring back unfiltered list", "timedOut": null, "duration": 65743, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#created_by').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#customer_number').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar m = 0;\nvar n;\nvar oldcust = [];\ncy.get('.dataTables_scrollHead th').each(function (elements) {\n if (elements.text() == \"Customer Number\") {\n n = \"[data-sfuniqueid = dataTable__table-td-\" + m + \"]\";\n cy.get(n).each(function (element) {\n //var normalizedelement = normalizeText(element.text())\n oldcust.push(element.text());\n });\n } else {\n m = m + 1;\n }\n});\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Created By\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n var i = 0;\n var j;\n cy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Created By\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"]\";\n console.log(j);\n cy.get('.filerSelect [name=\"filter_condition[created_by]\"]').should('be.visible').select('is', {\n force: true\n });\n cy.get('#select2-created_by-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#select2-created_by-input-results').contains('Test User').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get(j).each(function (elements) {\n var normalizedelement = normalizeText(elements.text());\n expect(normalizedelement).to.eq('testuser');\n });\n }\n });\n } else {\n i = i + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.get('button').contains('Clear').click({\n force: true\n});\ncy.wait(10000);\nvar a = 0;\nvar b;\nvar newcust = [];\ncy.get('.dataTables_scrollHead th').each(function (elements) {\n if (elements.text() == \"Customer Number\") {\n b = \"[data-sfuniqueid = dataTable__table-td-\" + a + \"]\";\n cy.get(b).each(function (element) {\n newcust.push(element.text());\n });\n } else {\n a = a + 1;\n }\n});\ncy.wrap(oldcust).should(\"deep.equal\", newcust);", "err": {}, "uuid": "2aad2afc-1aff-414e-b88e-06de7e15d424", "parentUUID": "401cf348-a91b-4442-9114-b28902f54879", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2aad2afc-1aff-414e-b88e-06de7e15d424" ], "failures": [], "pending": [], "skipped": [], "duration": 65743, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "59212735-06c6-4b28-ad17-c72f2056cf73", "title": "", "fullFile": "cypress/integration/SF/g-customer/40Bulk_update.spec.js", "file": "cypress/integration/SF/g-customer/40Bulk_update.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ecfc2fba-533a-4611-994e-f0035ab15630", "title": "Bulk Update customers", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Should dupdate the bulk of customers", "fullTitle": "Bulk Update customers Should dupdate the bulk of customers", "timedOut": null, "duration": 72318, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('tbody tr td input').then(function (elements) {\n for (var i = 0; i < 6; i++) {\n cy.get(elements).eq(i).click({\n force: true\n });\n }\n});\ncy.contains('Actions').click({\n force: true\n});\ncy.get('[data-target=\"#mass-update-modal\"]').contains('Update').click({\n force: true\n});\ncy.get('#massUpdateField').select('Phone Number');\ncy.wait(10000);\ncy.get('#massUpdateValue').type('03003673767');\ncy.get('button').contains('Update').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#phone_number').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(20000);\nvar m = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Phone Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + m + \"]\";\n console.log(j);\n for (var k = 0; k < 6; k++) {\n cy.get(j).eq(k).then(function (element) {\n expect(element.text()).to.eq(' \\n 03003673767\\n ');\n });\n }\n } else {\n m = m + 1;\n }\n});", "err": {}, "uuid": "22c3f7c2-fbd7-43e9-9f6b-5265e5937ddb", "parentUUID": "ecfc2fba-533a-4611-994e-f0035ab15630", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "22c3f7c2-fbd7-43e9-9f6b-5265e5937ddb" ], "failures": [], "pending": [], "skipped": [], "duration": 72318, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f2831226-02c6-4a45-951f-9174fe934cc0", "title": "", "fullFile": "cypress/integration/SF/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/SF/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ef380561-e782-4d9f-9472-056687789b1a", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method with Credit Card using Authorize.NET", "fullTitle": "Add Payment Method Add Payment Method with Credit Card using Authorize.NET", "timedOut": null, "duration": 183783, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "65bc6a25-b7be-4328-ac66-6844136b71ab", "parentUUID": "ef380561-e782-4d9f-9472-056687789b1a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "65bc6a25-b7be-4328-ac66-6844136b71ab" ], "failures": [], "pending": [], "skipped": [], "duration": 183783, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "46c99149-e0c6-4d02-893d-862480ae70af", "title": "", "fullFile": "cypress/integration/SF/g-customer/42Add_Public_Payment_Creditcard_Authorizenet.spec.js", "file": "cypress/integration/SF/g-customer/42Add_Public_Payment_Creditcard_Authorizenet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "27352e9e-8b5a-41ef-9afd-896d0a54395c", "title": "Add payment method using public payment method page for credit card using Authorize.NET", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add cardit card for Authorize.NET Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for credit card using Authorize.NET Add cardit card for Authorize.NET Payment Method using Add Public Payment method", "timedOut": null, "duration": 164372, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_credit-card-tab').click({\n force: true\n});\ncy.get('#paymentInformationCard__cardNumber').type('4111111111111112');\ncy.get('#paymentInformationCard__expiryMonth').select('01', {\n force: true\n}).should('have.value', '01');\ncy.get('#paymentInformationCard__expiryYear').select('2021', {\n force: true\n}).should('have.value', '2021');\ncy.get('#paymentInformationCard__Cvv').type('12', {\n force: true\n}).should('have.value', '12');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.get('#card-errors').should('be.visible').and(function ($element) {\n expect($element.text()).to.include('Please provide valid credit card number.');\n expect($element.text()).to.include('Please provide valid CVV.');\n});\ncy.get('#paymentInformationCard__cardNumber').clear().type('4111111111111111');\ncy.get('#paymentInformationCard__expiryYear').select('2027', {\n force: true\n}).should('have.value', '2027');\ncy.get('#paymentInformationCard__Cvv').clear().type('667');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (****1111) is saved successfully.').should('be.visible');", "err": {}, "uuid": "eb56aa41-03c5-49f2-9958-d420fd80d926", "parentUUID": "27352e9e-8b5a-41ef-9afd-896d0a54395c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "eb56aa41-03c5-49f2-9958-d420fd80d926" ], "failures": [], "pending": [], "skipped": [], "duration": 164372, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c099d756-d975-4855-b322-0c5bbffda1ab", "title": "", "fullFile": "cypress/integration/SF/g-customer/43Add_Public_Payment_BankTransfer_Authorizenet.spec.js", "file": "cypress/integration/SF/g-customer/43Add_Public_Payment_BankTransfer_Authorizenet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "89438014-0b1e-466e-99e4-3d1dd460bcc0", "title": "Add payment method using public payment method page for ACH using Authorize.NET", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add ACH for Authorize.NET Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for ACH using Authorize.NET Add ACH for Authorize.NET Payment Method using Add Public Payment method", "timedOut": null, "duration": 180023, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_ach-tab').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_pcp-chk-subscribe_el_btn').dblclick({\n force: true\n});\ncy.wait(10000);\ncy.get('#ach-errors').contains('Please provide valid account number.').should('be.visible');\ncy.get('#paymentInformationBank__accountNumber').type('111111111');\ncy.get('#paymentInformationBank__routingNumber').type('021000021');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (****1111) is saved successfully.').should('be.visible');", "err": {}, "uuid": "5dde8705-cc59-41b5-99c6-4db3dd432471", "parentUUID": "89438014-0b1e-466e-99e4-3d1dd460bcc0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5dde8705-cc59-41b5-99c6-4db3dd432471" ], "failures": [], "pending": [], "skipped": [], "duration": 180023, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "53127b46-f290-47a0-aa7a-837e72da3551", "title": "", "fullFile": "cypress/integration/SF/g-customer/45Add_Public_Payment_CreditCard_Stripe.spec.js", "file": "cypress/integration/SF/g-customer/45Add_Public_Payment_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "136f536f-fb45-41ae-bdab-a53de5b9c361", "title": "Add payment method using public payment method page for credit card using Stripe", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add cardit card for Stripe Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for credit card using Stripe Add cardit card for Stripe Payment Method using Add Public Payment method", "timedOut": null, "duration": 167100, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_credit-card-tab').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.__PrivateStripeElement > iframe').then(function ($element) {\n var $body = $element.contents().find('body');\n var stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(0).click({\n force: true\n }).type('4242424242424242');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(1).click({\n force: true\n }).type('420');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(2).click({\n force: true\n }).type('42');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(3).click({\n force: true\n }).type('777');\n});\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.get('#card-errors').should('be.visible').and(function ($element) {\n expect($element.text()).to.include(\"Your card's expiration year is in the past.\");\n});\ncy.get('.__PrivateStripeElement > iframe').then(function ($element) {\n var $body = $element.contents().find('body');\n var stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(0).click({\n force: true\n }).clear().type('4242424242424242');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(1).click({\n force: true\n }).clear().type('425');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(2).click({\n force: true\n }).clear().type('424');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(3).click({\n force: true\n }).clear().type('77777');\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (****4242) is saved successfully.').should('be.visible');", "err": {}, "uuid": "e8431b54-f706-4e0a-91fe-947e0f8a82db", "parentUUID": "136f536f-fb45-41ae-bdab-a53de5b9c361", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e8431b54-f706-4e0a-91fe-947e0f8a82db" ], "failures": [], "pending": [], "skipped": [], "duration": 167100, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "307c8bb2-23f0-4de6-8725-d964be9b0c81", "title": "", "fullFile": "cypress/integration/SF/g-customer/46Add_Public_Payment_BankTransfer_Stripe.spec.js", "file": "cypress/integration/SF/g-customer/46Add_Public_Payment_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "4cad12cf-3bb1-400c-b15d-c9f2f0e366be", "title": "Add payment method using public payment method page for ACH using stripe", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add ACH for stripe Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for ACH using stripe Add ACH for stripe Payment Method using Add Public Payment method", "timedOut": null, "duration": 197649, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.wait(10000);\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_ach-tab').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#ach-errors').contains('* Please enter correct routing number').should('be.visible');\ncy.get('#paymentInformationBank__accountNumber').type('0001234567');\ncy.get('#paymentInformationBank__routingNumber').type('1100000');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#ach-errors').contains('* Please enter correct routing number').should('be.visible');\ncy.get('#paymentInformationBank__accountNumber').clear().type('000123456789');\ncy.get('#paymentInformationBank__routingNumber').clear().type('110000000');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method needs to be verified by our admin.').should('be.visible');", "err": {}, "uuid": "74dd5aa4-3f30-4645-8007-07b336bafcf2", "parentUUID": "4cad12cf-3bb1-400c-b15d-c9f2f0e366be", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "74dd5aa4-3f30-4645-8007-07b336bafcf2" ], "failures": [], "pending": [], "skipped": [], "duration": 197649, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "72a7213c-edab-426b-b37d-2bcc7217a18f", "title": "", "fullFile": "cypress/integration/SF/g-customer/48Add_Public_Payment_PayPalExpress.spec.js", "file": "cypress/integration/SF/g-customer/48Add_Public_Payment_PayPalExpress.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ca988a24-5ed2-4abc-94f5-fb92e8f0e034", "title": "Add payment method using public payment method page for using PayPal Express Checkout", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add PayPal Express Checkout Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for using PayPal Express Checkout Add PayPal Express Checkout Payment Method using Add Public Payment method", "timedOut": null, "duration": 152120, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('PayPal Express Checkout').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.contains('Customers').click({\n force: true\n});\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (andyandy@gmail.com) is saved successfully.').should('be.visible');", "err": {}, "uuid": "e7552a7a-7897-4a5d-926d-9d5b633bedbe", "parentUUID": "ca988a24-5ed2-4abc-94f5-fb92e8f0e034", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e7552a7a-7897-4a5d-926d-9d5b633bedbe" ], "failures": [], "pending": [], "skipped": [], "duration": 152120, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6520b2f3-81af-4b44-8d4d-02ee0dca6f88", "title": "", "fullFile": "cypress/integration/SF/g-customer/49Process_Payment_Cash_Amount_Equal_To_Total_Inv_Amount.spec.js", "file": "cypress/integration/SF/g-customer/49Process_Payment_Cash_Amount_Equal_To_Total_Inv_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "eeb390f7-13a7-42da-bc08-826876d56b68", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through cash & the amount entered is equal to the total amount of invoices selected", "fullTitle": "Process Payment Make payment through cash & the amount entered is equal to the total amount of invoices selected", "timedOut": null, "duration": 130762, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n});", "err": {}, "uuid": "6c5b11ab-a80a-4a65-adf1-12009dd75318", "parentUUID": "eeb390f7-13a7-42da-bc08-826876d56b68", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6c5b11ab-a80a-4a65-adf1-12009dd75318" ], "failures": [], "pending": [], "skipped": [], "duration": 130762, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2a26f471-d886-46d9-a758-5f40b2f1dfab", "title": "", "fullFile": "cypress/integration/SF/g-customer/50Process_Payment_Cash_Amount_GreaterThan_Total_Int_Amount.spec.js", "file": "cypress/integration/SF/g-customer/50Process_Payment_Cash_Amount_GreaterThan_Total_Int_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "220b5adb-2ca2-4ec8-b183-7a99153ab83f", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through cash & the amount entered is greater than the total amount of invoices selected", "fullTitle": "Process Payment Make payment through cash & the amount entered is greater than the total amount of invoices selected", "timedOut": null, "duration": 130653, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(30, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 30) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 30) {\n newbal = 30;\n status = \"Partially Paid\";\n } else {\n newbal = 30;\n status = \"Paid\";\n }\n cy.get('#receive_amount').clear({\n force: true\n }).type(40, {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(10);\n });\n});", "err": {}, "uuid": "a88b9499-3ca9-447a-8142-df2af3deed8a", "parentUUID": "220b5adb-2ca2-4ec8-b183-7a99153ab83f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a88b9499-3ca9-447a-8142-df2af3deed8a" ], "failures": [], "pending": [], "skipped": [], "duration": 130653, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ef78c511-252b-4d87-b6ef-a98bbf7f2dd7", "title": "", "fullFile": "cypress/integration/SF/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js", "file": "cypress/integration/SF/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "99a06442-5a24-44e9-907f-59c5ebfb68be", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status equal to Paid", "fullTitle": "Process Payment Make payment through Cheque with Status equal to Paid", "timedOut": null, "duration": 132330, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Paid', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js:251:32)", "diff": null }, "uuid": "baed0872-aca6-41bf-9e82-ece5542a4e2e", "parentUUID": "99a06442-5a24-44e9-907f-59c5ebfb68be", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "baed0872-aca6-41bf-9e82-ece5542a4e2e" ], "pending": [], "skipped": [], "duration": 132330, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f6a1c5f2-350f-4806-99b0-1684a2bd3408", "title": "", "fullFile": "cypress/integration/SF/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js", "file": "cypress/integration/SF/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2c5736dd-012d-402c-a562-a5e530f74383", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status equal to Pending and I Approve", "fullTitle": "Process Payment Make payment through Cheque with Status equal to Pending and I Approve", "timedOut": null, "duration": 166253, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#approve-modal\"]').click({\n force: true\n });\n cy.get('#approve-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js:284:36)", "diff": null }, "uuid": "ee77c91e-380f-45be-9273-3b1ac224785d", "parentUUID": "2c5736dd-012d-402c-a562-a5e530f74383", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "ee77c91e-380f-45be-9273-3b1ac224785d" ], "pending": [], "skipped": [], "duration": 166253, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cc8b1ac6-669f-4568-a701-dbbba1b059ea", "title": "", "fullFile": "cypress/integration/SF/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js", "file": "cypress/integration/SF/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d16cf7d2-e493-4335-99ab-1724f8df067c", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status equal to Pending and I Decline", "fullTitle": "Process Payment Make payment through Cheque with Status equal to Pending and I Decline", "timedOut": null, "duration": 160901, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#decline-modal\"]').click({\n force: true\n });\n cy.get('#decline-form textarea').type('Some reason');\n cy.get('#decline-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Declined');\n });\n });\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Declined'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Declined'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js:279:36)", "diff": null }, "uuid": "be31722b-dc4f-4329-93cd-7b04a32a14e0", "parentUUID": "d16cf7d2-e493-4335-99ab-1724f8df067c", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "be31722b-dc4f-4329-93cd-7b04a32a14e0" ], "pending": [], "skipped": [], "duration": 160901, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d0256160-a627-4fa0-b431-df71a2e59371", "title": "", "fullFile": "cypress/integration/SF/g-customer/54Process_Payment_BankTransfer.spec.js", "file": "cypress/integration/SF/g-customer/54Process_Payment_BankTransfer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ed598d6a-6867-451a-89b1-cae23c42af92", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Bank Transfer", "fullTitle": "Process Payment Make payment through Bank Transfer", "timedOut": null, "duration": 131911, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Bank Transfer', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n});", "err": {}, "uuid": "f1f643be-d0f2-488f-8d4f-63472a2db31b", "parentUUID": "ed598d6a-6867-451a-89b1-cae23c42af92", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f1f643be-d0f2-488f-8d4f-63472a2db31b" ], "failures": [], "pending": [], "skipped": [], "duration": 131911, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1ee9033d-bf7b-42f1-a415-48f9dc584035", "title": "", "fullFile": "cypress/integration/SF/g-customer/55Cancel_Process_Payment.spec.js", "file": "cypress/integration/SF/g-customer/55Cancel_Process_Payment.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "20c43211-404b-4555-9a45-4f634f4afdeb", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through cash & the amount entered is equal to the total amount of invoices selected", "fullTitle": "Process Payment Make payment through cash & the amount entered is equal to the total amount of invoices selected", "timedOut": null, "duration": 1397182, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n }).then(function () {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n }\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('a').contains('Cancel').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n expect(parseInt(transaction1.text())).to.eq(parseInt(transaction2.text()));\n });\n});", "err": {}, "uuid": "3025f931-f259-4832-9a8c-f9805ac593c4", "parentUUID": "20c43211-404b-4555-9a45-4f634f4afdeb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3025f931-f259-4832-9a8c-f9805ac593c4" ], "failures": [], "pending": [], "skipped": [], "duration": 1397182, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7a7d7838-a1e3-4b27-bcac-e169c7ad1988", "title": "", "fullFile": "cypress/integration/SF/g-customer/56Process_Payment_Wire_Status_Paid.spec.js", "file": "cypress/integration/SF/g-customer/56Process_Payment_Wire_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3c983a90-4e04-4227-9809-940aae9c6cf3", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status equal to Paid", "fullTitle": "Process Payment Make payment through Wire with Status equal to Paid", "timedOut": null, "duration": 132548, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Paid', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/56Process_Payment_Wire_Status_Paid.spec.js:251:32)", "diff": null }, "uuid": "09f72bd6-c667-46c0-9978-ea2fb5928cf1", "parentUUID": "3c983a90-4e04-4227-9809-940aae9c6cf3", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "09f72bd6-c667-46c0-9978-ea2fb5928cf1" ], "pending": [], "skipped": [], "duration": 132548, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "256c82c3-c839-4b5b-8a0c-f2b9c951c031", "title": "", "fullFile": "cypress/integration/SF/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js", "file": "cypress/integration/SF/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "4f771ccf-e5d3-456d-8b5b-f4574ea618bc", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status equal to Pending and I Approve", "fullTitle": "Process Payment Make payment through Wire with Status equal to Pending and I Approve", "timedOut": null, "duration": 169806, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#approve-modal\"]').click({\n force: true\n });\n cy.get('#approve-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(p).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n });\n});", "err": { "message": "AssertionError: expected '\\n $3.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $3.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js:284:36)", "diff": null }, "uuid": "7843ccdb-3ee5-4629-94b8-ca07034843bd", "parentUUID": "4f771ccf-e5d3-456d-8b5b-f4574ea618bc", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "7843ccdb-3ee5-4629-94b8-ca07034843bd" ], "pending": [], "skipped": [], "duration": 169806, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "04658f53-ef5c-4cde-a1e8-2678c2e711ed", "title": "", "fullFile": "cypress/integration/SF/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js", "file": "cypress/integration/SF/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "51e64a29-c0b2-4d63-8e25-1348c52e9163", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status equal to Pending and I Decline", "fullTitle": "Process Payment Make payment through Wire with Status equal to Pending and I Decline", "timedOut": null, "duration": 170480, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#decline-modal\"]').click({\n force: true\n });\n cy.get('#decline-form textarea').type('Some reason');\n cy.get('#decline-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Declined');\n });\n });\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Declined'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Declined'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js:272:36)", "diff": null }, "uuid": "ea0c92bd-c526-44e7-bee3-e77b0dd81871", "parentUUID": "51e64a29-c0b2-4d63-8e25-1348c52e9163", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "ea0c92bd-c526-44e7-bee3-e77b0dd81871" ], "pending": [], "skipped": [], "duration": 170480, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e89226d2-7806-4d61-ae03-a8d6900d8d85", "title": "", "fullFile": "cypress/integration/SF/g-customer/59Process_Payment_Card.spec.js", "file": "cypress/integration/SF/g-customer/59Process_Payment_Card.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "fb2dd72b-3e9f-4584-b467-37d965b47d10", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Process Payment Make payment through Card", "timedOut": null, "duration": 210066, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Card', {\n force: true\n });\n cy.get('#payment-method-link i.fas.fa-plus').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#payment-gateway-input').select('Authorize.NET');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('#card_number-input').type('4111111111111111');\n cy.get('#expiry_month-input').select('06').should('have.value', '06');\n cy.get('#expiry_year-input').select('2024').should('have.value', '2024');\n cy.get('#card_cvv-input').type('123');\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.get('#payment_method_id-input option').contains('Default').then(function (option) {\n cy.get('#payment_method_id-input').select(option.val(), {\n force: true\n });\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/59Process_Payment_Card.spec.js:291:32)", "diff": null }, "uuid": "bafd681b-3f2b-4495-b1f4-6d42458d297f", "parentUUID": "fb2dd72b-3e9f-4584-b467-37d965b47d10", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "bafd681b-3f2b-4495-b1f4-6d42458d297f" ], "pending": [], "skipped": [], "duration": 210066, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8aecc9ef-ba35-4a3a-b513-4a725417832c", "title": "", "fullFile": "cypress/integration/SF/g-customer/60Process_Payment_eCheck.spec.js", "file": "cypress/integration/SF/g-customer/60Process_Payment_eCheck.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9900fde4-d709-47d8-ac21-9865bfa35c73", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Process Payment Make payment through eCheck", "timedOut": null, "duration": 216530, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('eCheck', {\n force: true\n });\n cy.get('#payment-method-link i.fas.fa-plus').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#payment-gateway-input').select('Authorize.NET');\n cy.get('#first_name-input').type('FirstName');\n cy.get('#last_name-input').type('LastName');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('#card_number-input').type('4111111111111111');\n cy.get('#expiry_month-input').select('10').should('have.value', '10');\n cy.get('#expiry_year-input').select('2027').should('have.value', '2027');\n cy.get('#card_cvv-input').type('123');\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.get('#payment_method_id-input option').contains('Default').then(function (option) {\n cy.get('#payment_method_id-input').select(option.val());\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(18000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'", "estack": "AssertionError: expected '\\n $20.00\\n ' to include 'Paid'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/60Process_Payment_eCheck.spec.js:291:32)", "diff": null }, "uuid": "a91a7446-a5c4-4d14-b2dd-a71e226a4598", "parentUUID": "9900fde4-d709-47d8-ac21-9865bfa35c73", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "a91a7446-a5c4-4d14-b2dd-a71e226a4598" ], "pending": [], "skipped": [], "duration": 216530, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8ae8108e-939a-4a15-a309-d33254c6ca39", "title": "", "fullFile": "cypress/integration/SF/g-customer/61Process_Payment_PayPal_Approve.spec.js", "file": "cypress/integration/SF/g-customer/61Process_Payment_PayPal_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e6bcdb83-33e9-436f-988f-75d9bbbcd42c", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through PayPal and I Approve", "fullTitle": "Process Payment Make payment through PayPal and I Approve", "timedOut": null, "duration": 286006, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('PayPal', {\n force: true\n });\n cy.get('#payment-method-link i.fas.fa-plus').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#payment-gateway-input').select('PayPal Express Checkout');\n cy.get('#first_name-input').type('FirstName');\n cy.get('#last_name-input').type('LastName');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(30000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(30000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(30000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('#billing_postalcode-input').type('1111');\n cy.get('#billing_address1-input').type('house 1');\n cy.get('#billing_address2-input').type('street 1');\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.get('#payment_method_id-input option').contains('.com').then(function (option) {\n cy.get('#payment_method_id-input').select(option.val(), {\n force: true\n });\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('.card-header .badge').should('have.class', 'badge-status-pending');\n });\n });\n });\n});", "err": {}, "uuid": "af139c91-aebe-4a73-9715-d9f938def6bf", "parentUUID": "e6bcdb83-33e9-436f-988f-75d9bbbcd42c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "af139c91-aebe-4a73-9715-d9f938def6bf" ], "failures": [], "pending": [], "skipped": [], "duration": 286006, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8fff1a36-8394-4d7b-962c-3e3dcc53bfc3", "title": "", "fullFile": "cypress/integration/SF/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/SF/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8875afb7-c156-4433-9ec9-3d78071ee070", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method with Bank Transfer using Authorize.NET", "fullTitle": "Add Payment Method Add Payment Method with Bank Transfer using Authorize.NET", "timedOut": null, "duration": 184060, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "9c37171e-a5e9-4961-9d91-5dcc48e87795", "parentUUID": "8875afb7-c156-4433-9ec9-3d78071ee070", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9c37171e-a5e9-4961-9d91-5dcc48e87795" ], "failures": [], "pending": [], "skipped": [], "duration": 184060, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "626c8ad5-a03e-485a-bf64-75c569759d7c", "title": "", "fullFile": "cypress/integration/SF/g-customer/65Add_Payment_CreditCard_Stripe.spec.js", "file": "cypress/integration/SF/g-customer/65Add_Payment_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bf6ac632-80ea-4878-ba6b-1da1f043d77c", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method with Credit Card using Stripe", "fullTitle": "Add Payment Method Add Payment Method with Credit Card using Stripe", "timedOut": null, "duration": 202171, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "4b0e0a17-4e44-4a33-a1ed-3e51d5101868", "parentUUID": "bf6ac632-80ea-4878-ba6b-1da1f043d77c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4b0e0a17-4e44-4a33-a1ed-3e51d5101868" ], "failures": [], "pending": [], "skipped": [], "duration": 202171, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6a3ff2dd-b2af-4ad0-9114-49059bc01e2f", "title": "", "fullFile": "cypress/integration/SF/g-customer/66Add_Payment_BankTransfer_Stripe.spec.js", "file": "cypress/integration/SF/g-customer/66Add_Payment_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8cc588fe-b51e-4cb3-b0ea-e5dea377b55e", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method with Bank Transfer using Stripe", "fullTitle": "Add Payment Method Add Payment Method with Bank Transfer using Stripe", "timedOut": null, "duration": 196128, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "0f162154-14ef-416a-bc38-8c49ea7dc1b6", "parentUUID": "8cc588fe-b51e-4cb3-b0ea-e5dea377b55e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0f162154-14ef-416a-bc38-8c49ea7dc1b6" ], "failures": [], "pending": [], "skipped": [], "duration": 196128, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "226af78d-66ce-4193-9a7a-98755fd41406", "title": "", "fullFile": "cypress/integration/SF/g-customer/67Add_Payment_GoCardless.spec.js", "file": "cypress/integration/SF/g-customer/67Add_Payment_GoCardless.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9c3e045e-6ca1-4448-99ba-2d70c4108fb9", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using GoCardless", "fullTitle": "Add Payment Method Add Payment Method using GoCardless", "timedOut": null, "duration": 184454, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "31dd0590-e34c-409e-86d1-0700b5f626ea", "parentUUID": "9c3e045e-6ca1-4448-99ba-2d70c4108fb9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "31dd0590-e34c-409e-86d1-0700b5f626ea" ], "failures": [], "pending": [], "skipped": [], "duration": 184454, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "768808de-5d24-4d65-bb1f-66a862a3dbc7", "title": "", "fullFile": "cypress/integration/SF/g-customer/68Add_Payment_PayPalExpress.spec.js", "file": "cypress/integration/SF/g-customer/68Add_Payment_PayPalExpress.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "21bb7d9e-f432-4e1d-901d-4a6ea1b5dda5", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using PayPal", "fullTitle": "Add Payment Method Add Payment Method using PayPal", "timedOut": null, "duration": 182159, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n addPaymentMethod2();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n addPaymentMethod2();\n }\n});", "err": {}, "uuid": "5fd44d31-2dea-42b5-a6bb-c014d297be87", "parentUUID": "21bb7d9e-f432-4e1d-901d-4a6ea1b5dda5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5fd44d31-2dea-42b5-a6bb-c014d297be87" ], "failures": [], "pending": [], "skipped": [], "duration": 182159, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a2abd809-df54-4066-917c-a048d58ba0bd", "title": "", "fullFile": "cypress/integration/SF/g-customer/69Add_Payment_Uncheck_Default.spec.js", "file": "cypress/integration/SF/g-customer/69Add_Payment_Uncheck_Default.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9128de3d-dd7f-4e44-b2bb-2c702a237ff5", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method and uncheck default", "fullTitle": "Add Payment Method Add Payment Method and uncheck default", "timedOut": null, "duration": 174023, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n cy.get('#related-table-paymentmethod .sf-pagination-wrapper span.bold').eq(0).then(function (count) {\n expect(count.text()).to.eq('1');\n });\n addPaymentMethod();\n cy.get('#related-table-paymentmethod .sf-pagination-wrapper span.bold').eq(0).then(function (count) {\n expect(count.text()).to.eq('2');\n });\n cy.get('#relatedList-bulk-action-PaymentMethod_Customer td i').eq(0).should('not.have.class', 'fa-check');\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n cy.get('#related-table-paymentmethod .sf-pagination-wrapper span.bold').eq(0).then(function (count) {\n expect(count.text()).to.eq('1');\n });\n addPaymentMethod();\n cy.get('#related-table-paymentmethod .sf-pagination-wrapper span.bold').eq(0).then(function (count) {\n expect(count.text()).to.eq('2');\n });\n cy.get('#relatedList-bulk-action-PaymentMethod_Customer td i').eq(0).should('not.have.class', 'fa-check');\n }\n});", "err": {}, "uuid": "e0591694-104b-4b78-a33c-b747748f6fc1", "parentUUID": "9128de3d-dd7f-4e44-b2bb-2c702a237ff5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e0591694-104b-4b78-a33c-b747748f6fc1" ], "failures": [], "pending": [], "skipped": [], "duration": 174023, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f1d60faf-088a-43fc-9156-77d4e8380479", "title": "", "fullFile": "cypress/integration/SF/g-customer/70Cancel_Add_Payment.spec.js", "file": "cypress/integration/SF/g-customer/70Cancel_Add_Payment.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "396de951-95a3-461d-94b3-ffcb73581d87", "title": "Cancel Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Cancel Add Payment method", "fullTitle": "Cancel Add Payment Method Cancel Add Payment method", "timedOut": null, "duration": 104598, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (rows.text().includes('No Records Found')) {\n addPaymentMethod();\n } else {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n addPaymentMethod();\n }\n});", "err": {}, "uuid": "6f53da4d-4feb-4bb9-b71d-5611966260a9", "parentUUID": "396de951-95a3-461d-94b3-ffcb73581d87", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6f53da4d-4feb-4bb9-b71d-5611966260a9" ], "failures": [], "pending": [], "skipped": [], "duration": 104598, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3aa66f99-c42e-4c0b-972d-fdcc5621ea37", "title": "", "fullFile": "cypress/integration/SF/g-customer/71Allocate_Existing_Credits.spec.js", "file": "cypress/integration/SF/g-customer/71Allocate_Existing_Credits.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "975ef9c8-72c6-4dfa-84e3-2312caa8b5fe", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits a transaction should be made", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate credits a transaction should be made", "timedOut": null, "duration": 266218, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "912b546d-f210-4021-8456-f452a303ff5f", "parentUUID": "975ef9c8-72c6-4dfa-84e3-2312caa8b5fe", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "912b546d-f210-4021-8456-f452a303ff5f" ], "failures": [], "pending": [], "skipped": [], "duration": 266218, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2889f5e0-d657-461c-8c37-4b7d78634bbb", "title": "", "fullFile": "cypress/integration/SF/g-customer/72Allocate_Existing_Credits_Amt_Gtr_Balance.spec.js", "file": "cypress/integration/SF/g-customer/72Allocate_Existing_Credits_Amt_Gtr_Balance.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bbca2594-fe4a-4975-aa58-c5eb04b50f3c", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount greater than credit note balance it should give an error", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount greater than credit note balance it should give an error", "timedOut": null, "duration": 265650, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\nallocateCredits();", "err": {}, "uuid": "ecb445b2-cf58-4e44-88f3-201f489ffead", "parentUUID": "bbca2594-fe4a-4975-aa58-c5eb04b50f3c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ecb445b2-cf58-4e44-88f3-201f489ffead" ], "failures": [], "pending": [], "skipped": [], "duration": 265650, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "477709b4-36ec-4989-98ab-0420c7e069a0", "title": "", "fullFile": "cypress/integration/SF/g-customer/73Allocate_Existing_Credits_Amt_Lt_Balance.spec.js", "file": "cypress/integration/SF/g-customer/73Allocate_Existing_Credits_Amt_Lt_Balance.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "048ef043-38eb-4fb6-8ed1-4283bdb9cb84", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount less than credit note balance it should create transaction", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount less than credit note balance it should create transaction", "timedOut": null, "duration": 274793, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "f79c7a1a-8a89-4aa5-94fd-e778893ae474", "parentUUID": "048ef043-38eb-4fb6-8ed1-4283bdb9cb84", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f79c7a1a-8a89-4aa5-94fd-e778893ae474" ], "failures": [], "pending": [], "skipped": [], "duration": 274793, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "eec4f918-9ca6-418b-b224-345e7e70c1f6", "title": "", "fullFile": "cypress/integration/SF/g-customer/74Allocate_Existing_Credits_Amt_Gtr_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/74Allocate_Existing_Credits_Amt_Gtr_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "60ba66c1-3859-4d16-987e-40bacde9a18f", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount greater than invoice outstanding balance it should give an error", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount greater than invoice outstanding balance it should give an error", "timedOut": null, "duration": 273586, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\nallocateCredits();", "err": {}, "uuid": "5c1d2802-bea8-4b5d-8a1b-6d6273d1d5fc", "parentUUID": "60ba66c1-3859-4d16-987e-40bacde9a18f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5c1d2802-bea8-4b5d-8a1b-6d6273d1d5fc" ], "failures": [], "pending": [], "skipped": [], "duration": 273586, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "92d13ca9-9577-4fca-9fea-239f45537f0b", "title": "", "fullFile": "cypress/integration/SF/g-customer/75Allocate_Existing_Credits_Amt_Lt_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/75Allocate_Existing_Credits_Amt_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "39c2fcd5-0aa8-4a26-a9f8-fe029c7439c3", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount less than invoice outstanding balance", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount less than invoice outstanding balance", "timedOut": null, "duration": 283918, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "fea051c8-3a47-4a95-a1c0-041aebbd688a", "parentUUID": "39c2fcd5-0aa8-4a26-a9f8-fe029c7439c3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "fea051c8-3a47-4a95-a1c0-041aebbd688a" ], "failures": [], "pending": [], "skipped": [], "duration": 283918, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7dd48a2c-3b27-498d-97ab-5e7d01c6ea04", "title": "", "fullFile": "cypress/integration/SF/g-customer/76Allocate_Existing_Credits_Amt_eq_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/76Allocate_Existing_Credits_Amt_eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7dbd2ada-46ff-4690-ad6e-f3783eca4c35", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount equal to invoice outstanding balance", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount equal to invoice outstanding balance", "timedOut": null, "duration": 298762, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('TV Services').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Basic').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "efe54dd0-d6d1-4285-98d7-a84dbcb9af7d", "parentUUID": "7dbd2ada-46ff-4690-ad6e-f3783eca4c35", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "efe54dd0-d6d1-4285-98d7-a84dbcb9af7d" ], "failures": [], "pending": [], "skipped": [], "duration": 298762, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3811b2fb-e8ab-4692-95cc-1e16d077d8a3", "title": "", "fullFile": "cypress/integration/SF/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js", "file": "cypress/integration/SF/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e1984bde-fd08-49ff-81fb-1d6d80a1adad", "title": "Allocate Credits using Existing Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate amount to multiple invoices it should change their status to paid/partially paid", "fullTitle": "Allocate Credits using Existing Credit Notes When I allocate amount to multiple invoices it should change their status to paid/partially paid", "timedOut": null, "duration": 302454, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Process Payment').click({\n force: true\n});\ncy.url().should('contain', '/process-payment/');\ncy.get('.card-header').contains('Basic Information').should('be.visible');\ncy.get('.card-header').contains('Apply Payment').should('be.visible');\ncy.wait(7000);\ncy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n});\ncy.wait(5000);\ncy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n});\ncy.get('td').eq(5).then(function (balance) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(bal, {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(bal, {\n force: true\n });\n});\ncy.get('#reference').type('abc123', {\n force: true\n});\ncy.get('#description').type('This is a description', {\n force: true\n});\ncy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n});\ncy.get('input[type=\"submit\"]').click({\n force: true\n});\ncy.wait(3000);\ncy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n});\ncy.wait(12000);\ncy.reload();\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-existing-subscription').click({\n force: true\n});\ncy.wait(8000);\ncy.get('button.select-subscription').eq(0).click({\n force: true\n});\ncy.wait(7000);\ncy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n});\ncy.get('[wt-more=\"product-row\"]').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(3).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(7000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `[href=\"#Transaction-subpanel\"]`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `[href=\"#Transaction-subpanel\"]`, but never found it.\n at allocateCredits (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js:315:6)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js:258:11)", "diff": null }, "uuid": "0b797dcb-fe6f-4887-a781-e9f5c96843df", "parentUUID": "e1984bde-fd08-49ff-81fb-1d6d80a1adad", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "0b797dcb-fe6f-4887-a781-e9f5c96843df" ], "pending": [], "skipped": [], "duration": 302454, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "dfc8f0bb-bb22-4234-a1ec-875625904c9d", "title": "", "fullFile": "cypress/integration/SF/g-customer/78Create_And_Allocate_Credits.spec.js", "file": "cypress/integration/SF/g-customer/78Create_And_Allocate_Credits.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bcf9f4eb-c9f2-4c81-a5de-a0d62f648127", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits equal to credit balance, a transaction should be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits equal to credit balance, a transaction should be made", "timedOut": null, "duration": 150909, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "3f4d6870-71f2-4381-a643-e4d7dc8118b3", "parentUUID": "bcf9f4eb-c9f2-4c81-a5de-a0d62f648127", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3f4d6870-71f2-4381-a643-e4d7dc8118b3" ], "failures": [], "pending": [], "skipped": [], "duration": 150909, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0bbe1622-333e-4fe0-80d1-140fad8db80c", "title": "", "fullFile": "cypress/integration/SF/g-customer/79Create_And_Allocate_Balance_Gtr_Allocated.spec.js", "file": "cypress/integration/SF/g-customer/79Create_And_Allocate_Balance_Gtr_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "33208322-664a-4503-9a32-07f10dfd0c9d", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits less than credit balance, a transaction should be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits less than credit balance, a transaction should be made", "timedOut": null, "duration": 149930, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "c1aefa59-a5c4-44a7-97e5-b8a4713bae4a", "parentUUID": "33208322-664a-4503-9a32-07f10dfd0c9d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c1aefa59-a5c4-44a7-97e5-b8a4713bae4a" ], "failures": [], "pending": [], "skipped": [], "duration": 149930, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4635c1da-a049-44f6-b2df-f3c3534c589c", "title": "", "fullFile": "cypress/integration/SF/g-customer/80Create_And_Allocate_Balance_Lt_Allocated.spec.js", "file": "cypress/integration/SF/g-customer/80Create_And_Allocate_Balance_Lt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "04f1ec3e-e924-4601-8580-fa56d1d689b4", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits more than credit balance, a transaction should not be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits more than credit balance, a transaction should not be made", "timedOut": null, "duration": 133566, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\nallocateCredits();", "err": {}, "uuid": "fb2e1cf3-4e74-4d53-9577-01cc8c302594", "parentUUID": "04f1ec3e-e924-4601-8580-fa56d1d689b4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "fb2e1cf3-4e74-4d53-9577-01cc8c302594" ], "failures": [], "pending": [], "skipped": [], "duration": 133566, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f9d12c25-2f5e-457e-a6cd-06c7afb14ee2", "title": "", "fullFile": "cypress/integration/SF/g-customer/81Create_And_Allocate_Balance_Gtr_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/81Create_And_Allocate_Balance_Gtr_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f2d82e94-3087-469e-ac3f-62ce7f4bf58d", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits more than outstanding balance, a transaction should not be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits more than outstanding balance, a transaction should not be made", "timedOut": null, "duration": 133831, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\nallocateCredits();", "err": {}, "uuid": "55bf653b-e74e-45be-918c-fe98818365e7", "parentUUID": "f2d82e94-3087-469e-ac3f-62ce7f4bf58d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "55bf653b-e74e-45be-918c-fe98818365e7" ], "failures": [], "pending": [], "skipped": [], "duration": 133831, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ce6ef6bf-fe0d-4321-bd4d-69acac512046", "title": "", "fullFile": "cypress/integration/SF/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0f1ced77-1932-4546-a32b-979528ab6fb4", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits less than outstanding balance, a transaction should be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits less than outstanding balance, a transaction should be made", "timedOut": null, "duration": 138248, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `[href=\"#Transaction-subpanel\"]`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `[href=\"#Transaction-subpanel\"]`, but never found it.\n at allocateCredits (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js:201:6)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js:170:11)", "diff": null }, "uuid": "13946ab6-0b12-4c05-b52b-b5fb3afc3e48", "parentUUID": "0f1ced77-1932-4546-a32b-979528ab6fb4", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "13946ab6-0b12-4c05-b52b-b5fb3afc3e48" ], "pending": [], "skipped": [], "duration": 138248, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2e32cb68-b23f-4c54-b963-e7c3af60a714", "title": "", "fullFile": "cypress/integration/SF/g-customer/83Create_And_Allocate_Balance_Eq_Outstanding.spec.js", "file": "cypress/integration/SF/g-customer/83Create_And_Allocate_Balance_Eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "18b0fce9-f511-4659-b4fa-e191bc9893d4", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits equal to outstanding balance, a transaction should be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits equal to outstanding balance, a transaction should be made", "timedOut": null, "duration": 146525, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "facca9c6-e7d7-48f4-bdd9-224a5913585b", "parentUUID": "18b0fce9-f511-4659-b4fa-e191bc9893d4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "facca9c6-e7d7-48f4-bdd9-224a5913585b" ], "failures": [], "pending": [], "skipped": [], "duration": 146525, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "80c9e4a0-3c88-49ab-9256-0f76b9f29915", "title": "", "fullFile": "cypress/integration/SF/g-customer/84Create_And_Allocate_Multiple_Invoices.spec.js", "file": "cypress/integration/SF/g-customer/84Create_And_Allocate_Multiple_Invoices.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6d7d825b-d3d1-4c53-83f4-feabd5d310c4", "title": "Create and Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I allocate credits to multiple invoices, multiple transactions should be made", "fullTitle": "Create and Allocate Credit Notes When I allocate credits to multiple invoices, multiple transactions should be made", "timedOut": null, "duration": 151151, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "ea0f7fd1-068f-4b26-b7ae-9da1925e41d8", "parentUUID": "6d7d825b-d3d1-4c53-83f4-feabd5d310c4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ea0f7fd1-068f-4b26-b7ae-9da1925e41d8" ], "failures": [], "pending": [], "skipped": [], "duration": 151151, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "48781f0a-fc2b-4b78-9b3c-50170b2e4aee", "title": "", "fullFile": "cypress/integration/SF/g-customer/85Create_And_Dont_Allocate.spec.js", "file": "cypress/integration/SF/g-customer/85Create_And_Dont_Allocate.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "125ac967-b242-43e8-bf1d-ba0b571a2f47", "title": "Create and Dont Allocate Credit Notes", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I dont allocate credit to any invoice, no transaction should be made", "fullTitle": "Create and Dont Allocate Credit Notes When I dont allocate credit to any invoice, no transaction should be made", "timedOut": null, "duration": 146191, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.wait(10000);\ncy.get('.link-primary').eq(1).then(function (name) {\n cy.get(name).click({\n force: true\n });\n});\ncy.contains('Edit').click({\n force: true\n});\ncy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('button.btn-create').eq(1).click({\n force: true\n});\ncy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n});\ncy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n});\ncy.get('#btn-new-subscription').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Subscription Overview').should('be.visible');\ncy.get('#type-termed').should('be.checked');\ncy.get('#next-button').click({\n force: true\n});\ncy.get('tr').should('contain', 'Product');\ncy.get('tr').should('contain', 'Plan');\ncy.get('tr').should('contain', 'Coupon');\ncy.get('.select2-selection__rendered').eq(1).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n});\ncy.get('.select2-selection__rendered').eq(2).click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n});\ncy.get('#next-button').click({\n force: true\n});\ncy.wait(8000);\ncy.reload();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n var trans1 = transaction1.text().replace(/[$,]+/g, \"\");\n trans1 = parseFloat(trans1);\n allocateCredits(trans1);\n });\n } else {\n allocateCredits(0);\n }\n});", "err": {}, "uuid": "abdc1092-9d10-4fb8-aa2e-405d7f0d970c", "parentUUID": "125ac967-b242-43e8-bf1d-ba0b571a2f47", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "abdc1092-9d10-4fb8-aa2e-405d7f0d970c" ], "failures": [], "pending": [], "skipped": [], "duration": 146191, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a9b59630-7c1c-4cd7-85ac-542ac9a5feee", "title": "", "fullFile": "cypress/integration/SF/h-order/01-create_order.spec.js", "file": "cypress/integration/SF/h-order/01-create_order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a8f2a038-6aa2-49a4-802c-a7046d94c59d", "title": "Create Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "A termed order is created and verified", "fullTitle": "Create Order A termed order is created and verified", "timedOut": null, "duration": 165847, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(5000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n });\n});\ncy.get('[href=\"#Subscription-subpanel\"]').contains(' Subscriptions ').click({\n force: true\n});\ncy.get('#relatedList-bulk-action-Subscription_Customer tbody a span').eq(0).click({\n force: true\n});\ncy.get('.row-c span').contains('Termed').then(function (type) {\n expect(type.text()).equal('Termed');\n});", "err": {}, "uuid": "9c0aeca6-1e00-4438-9323-d1d2e0daa215", "parentUUID": "a8f2a038-6aa2-49a4-802c-a7046d94c59d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9c0aeca6-1e00-4438-9323-d1d2e0daa215" ], "failures": [], "pending": [], "skipped": [], "duration": 165847, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d03e55c3-d7e3-4ae3-a82f-7a057a014d02", "title": "", "fullFile": "cypress/integration/SF/h-order/02-create-evergreen-order.spec.js", "file": "cypress/integration/SF/h-order/02-create-evergreen-order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d9e30ab0-9c17-4f36-be39-3486605a6444", "title": "Create Evergreen Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "An evergreen order is created and verified", "fullTitle": "Create Evergreen Order An evergreen order is created and verified", "timedOut": null, "duration": 169412, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(5000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-evergreen').click({\n force: true\n }).should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n });\n});\ncy.get('[href=\"#Subscription-subpanel\"]').contains(' Subscriptions ').click({\n force: true\n});\ncy.get('#relatedList-bulk-action-Subscription_Customer tbody a span').eq(0).click({\n force: true\n});\ncy.get('.row-c span').contains('Evergreen').then(function (type) {\n expect(type.text()).equal('Evergreen');\n});", "err": {}, "uuid": "509b1337-f0dc-4303-8c0b-1449f9c8853c", "parentUUID": "d9e30ab0-9c17-4f36-be39-3486605a6444", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "509b1337-f0dc-4303-8c0b-1449f9c8853c" ], "failures": [], "pending": [], "skipped": [], "duration": 169412, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d0c15e80-086c-402c-9b1a-04f0b4bbee45", "title": "", "fullFile": "cypress/integration/SF/h-order/03-create-trial-order.spec.js", "file": "cypress/integration/SF/h-order/03-create-trial-order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8d04536c-f602-4490-9ff4-f24caf1ee1b6", "title": "Create Trial Subscription Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "A trial subscription order is created and verified", "fullTitle": "Create Trial Subscription Order A trial subscription order is created and verified", "timedOut": null, "duration": 167517, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(5000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('label[for=\"enable-trial\"]').click({\n force: true\n });\n cy.get('.row.trial-toggle h6').should('be.visible');\n cy.get('#trial_period-input').type('3', {\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n});\ncy.get('[href=\"#Subscription-subpanel\"]').contains(' Subscriptions ').click({\n force: true\n});\ncy.get('#relatedList-bulk-action-Subscription_Customer tbody a span').eq(0).click({\n force: true\n});\ncy.get('.row-c span').contains('Trial').then(function (type) {\n expect(type.text()).equal('Trial');\n});", "err": {}, "uuid": "858e6368-ae55-4fd9-bf84-960fd2e21136", "parentUUID": "8d04536c-f602-4490-9ff4-f24caf1ee1b6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "858e6368-ae55-4fd9-bf84-960fd2e21136" ], "failures": [], "pending": [], "skipped": [], "duration": 167517, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1a6c0287-b43e-4519-8373-8ed0b08848dc", "title": "", "fullFile": "cypress/integration/SF/h-order/04-giftsubs.spec.js", "file": "cypress/integration/SF/h-order/04-giftsubs.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "47c38118-1462-4831-99e5-c872b9ae4e5c", "title": "Create Gift Subscription Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "A gift subscription order is created and verified", "fullTitle": "Create Gift Subscription Order A gift subscription order is created and verified", "timedOut": null, "duration": 178578, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(5000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('label[for=\"is-gift\"]').click({\n force: true\n });\n cy.get('.row.gift-toggle h6').should('be.visible');\n cy.get('#select2-recipient_id-input-container').click({\n force: true\n });\n cy.wait(10000);\n cy.get('.select2-results__option').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('HPP').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Gift sub').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n});\ncy.get('[href=\"#Subscription-subpanel\"]').contains(' Subscriptions ').click({\n force: true\n});\ncy.get('#relatedList-bulk-action-Subscription_Customer tbody a span').eq(0).click({\n force: true\n});\ncy.get('.card-header').contains('Gift').then(function (type) {\n expect(type.text()).contains('Gift Detail');\n});\ncy.get('.detail-text').contains('Mary Girl').should('be.visible');", "err": {}, "uuid": "c36fced5-2f18-49bc-9243-f4862e0e872a", "parentUUID": "47c38118-1462-4831-99e5-c872b9ae4e5c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c36fced5-2f18-49bc-9243-f4862e0e872a" ], "failures": [], "pending": [], "skipped": [], "duration": 178578, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f56dfcd9-1c84-442c-8ade-34addfde7ea8", "title": "", "fullFile": "cypress/integration/SF/h-order/05-modify-existing-subs.spec.js", "file": "cypress/integration/SF/h-order/05-modify-existing-subs.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f07c986b-0ca6-4947-b3f4-862adcf0e2bf", "title": "Modify an Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "An order is modified and verified", "fullTitle": "Modify an Order An order is modified and verified", "timedOut": null, "duration": 71838, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr td').then(function (element) {\n if (element.text().includes(\"Draft\")) {\n cy.get('button[data-status=\"Draft\"]').contains('Select').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.reload();\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Subscription-subpanel\"]').contains(' Subscriptions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Subscription_Customer tbody a span').eq(0).click({\n force: true\n });\n cy.get('.row-c span').contains('Active').then(function (type) {\n expect(type.text()).equal('Active');\n });\n }\n });\n });\n});", "err": {}, "uuid": "b1685ff1-4528-4779-9150-d7365e1a33bf", "parentUUID": "f07c986b-0ca6-4947-b3f4-862adcf0e2bf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b1685ff1-4528-4779-9150-d7365e1a33bf" ], "failures": [], "pending": [], "skipped": [], "duration": 71838, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6a47ccc9-843b-4fb6-9259-7edace232566", "title": "", "fullFile": "cypress/integration/SF/h-order/06-increase-quantity.spec.js", "file": "cypress/integration/SF/h-order/06-increase-quantity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2ee2875b-43aa-4251-b925-874f5f1cdfb7", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The quantity of existing order is increased", "fullTitle": "Modify Order The quantity of existing order is increased", "timedOut": null, "duration": 279674, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(5000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n cy.get('.sub-total').then(function (Price1) {\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(5000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(40000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input.quantity-input').clear().type('3', {\n force: true\n });\n cy.get('.sub-total').then(function (Price2) {\n var newPrice = Price1.text().replace(/[$,]+/g, \"\");\n newPrice = parseFloat(newPrice);\n newPrice = newPrice * 3;\n var newPrice2 = Price2.text().replace(/[$,]+/g, \"\");\n newPrice2 = parseFloat(newPrice2);\n expect(newPrice).to.eq(parseInt(newPrice2));\n });\n cy.get('#next-button').click({\n force: true\n });\n });\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n});", "err": {}, "uuid": "486ce246-3e55-4234-b0bd-8bf07129ffa4", "parentUUID": "2ee2875b-43aa-4251-b925-874f5f1cdfb7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "486ce246-3e55-4234-b0bd-8bf07129ffa4" ], "failures": [], "pending": [], "skipped": [], "duration": 279674, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c94bc473-f6a7-4a0a-a92b-61ec44405cfa", "title": "", "fullFile": "cypress/integration/SF/h-order/07-decrease-quantity.spec.js", "file": "cypress/integration/SF/h-order/07-decrease-quantity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d69d1894-cdf7-4385-a76e-b999278c13f2", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The quantity of existing order is decreased", "fullTitle": "Modify Order The quantity of existing order is decreased", "timedOut": null, "duration": 290921, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.wait(5000);\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n cy.get('input.quantity-input').clear().type('3', {\n force: true\n });\n cy.get('.sub-total').then(function (Price1) {\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).not.to.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(40000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input.quantity-input').clear().type('1', {\n force: true\n });\n cy.get('.sub-total').then(function (Price2) {\n var newPrice = Price1.text().replace(/[$,]+/g, \"\");\n newPrice = parseFloat(newPrice);\n var pr1 = newPrice;\n newPrice = newPrice / 3;\n var newPrice2 = Price2.text().replace(/[$,]+/g, \"\");\n newPrice2 = parseFloat(newPrice2);\n expect(newPrice).to.eq(parseInt(newPrice2));\n cy.get('#next-button').click({\n force: true\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.get('[href=\"#CreditNote-subpanel\"]').contains(' Credits ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-CreditNote_Customer tbody td').eq(2).then(function (credit) {\n var cred = credit.text().replace(/[$,]+/g, \"\");\n cred = parseFloat(cred);\n expect(cred).to.eq(pr1 - newPrice2);\n });\n });\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n});", "err": {}, "uuid": "12356a80-5e6d-4e68-ae6c-507f29077278", "parentUUID": "d69d1894-cdf7-4385-a76e-b999278c13f2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "12356a80-5e6d-4e68-ae6c-507f29077278" ], "failures": [], "pending": [], "skipped": [], "duration": 290921, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8dd07a99-8b68-4286-8fdf-1bdf4b507ce1", "title": "", "fullFile": "cypress/integration/SF/h-order/08-increase-price.spec.js", "file": "cypress/integration/SF/h-order/08-increase-price.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9487ebef-e3d4-4fe8-8966-58b3ccf68744", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The price of existing order is increased", "fullTitle": "Modify Order The price of existing order is increased", "timedOut": null, "duration": 293999, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n cy.get('.sub-total').then(function (Price1) {\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(40000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input.price-input').clear().type('40', {\n force: true\n });\n cy.get('.sub-total').then(function (Price2) {\n var newPrice = Price1.text().replace(/[$,]+/g, \"\");\n newPrice = parseFloat(newPrice);\n var newPrice2 = Price2.text().replace(/[$,]+/g, \"\");\n newPrice2 = parseFloat(newPrice2);\n expect(newPrice).to.not.eq(parseInt(newPrice2));\n expect(newPrice2).to.eq(40);\n cy.get('#next-button').click({\n force: true\n });\n });\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.wait(5000);\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n });\n});", "err": {}, "uuid": "699bed5f-e6c9-4b30-bdc8-4fd469e4f62c", "parentUUID": "9487ebef-e3d4-4fe8-8966-58b3ccf68744", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "699bed5f-e6c9-4b30-bdc8-4fd469e4f62c" ], "failures": [], "pending": [], "skipped": [], "duration": 293999, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "646e0fed-0939-4011-8753-bbab2d79579c", "title": "", "fullFile": "cypress/integration/SF/h-order/09-decrease-price.spec.js", "file": "cypress/integration/SF/h-order/09-decrease-price.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c96d3b53-f8ab-4d98-bf25-3c407eb53005", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The price of existing order is decreased", "fullTitle": "Modify Order The price of existing order is decreased", "timedOut": null, "duration": 280969, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n cy.get('.sub-total').then(function (Price1) {\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).not.to.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(30000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(7000);\n cy.get('input.price-input').clear().type('10', {\n force: true\n });\n cy.get('.sub-total').then(function (Price2) {\n var newPrice = Price1.text().replace(/[$,]+/g, \"\");\n newPrice = parseFloat(newPrice);\n var newPrice2 = Price2.text().replace(/[$,]+/g, \"\");\n newPrice2 = parseFloat(newPrice2);\n expect(newPrice).to.not.eq(parseInt(newPrice2));\n expect(newPrice2).to.eq(10);\n cy.get('#next-button').click({\n force: true\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.get('[href=\"#CreditNote-subpanel\"]').contains(' Credits ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-CreditNote_Customer tbody td').eq(2).then(function (credit) {\n var cred = credit.text().replace(/[$,]+/g, \"\");\n cred = parseFloat(cred);\n expect(cred).to.eq(newPrice - newPrice2);\n });\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n });\n});", "err": {}, "uuid": "8e17bbb2-0e31-475a-89df-5facfe2b5a60", "parentUUID": "c96d3b53-f8ab-4d98-bf25-3c407eb53005", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8e17bbb2-0e31-475a-89df-5facfe2b5a60" ], "failures": [], "pending": [], "skipped": [], "duration": 280969, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e576709a-9c4d-4087-93ee-c349b2a07561", "title": "", "fullFile": "cypress/integration/SF/h-order/10-change-plan.spec.js", "file": "cypress/integration/SF/h-order/10-change-plan.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6f8046b0-26d3-4693-bb40-14bd17407ee6", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The plan against product is changed and verified", "fullTitle": "Modify Order The plan against product is changed and verified", "timedOut": null, "duration": 342180, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n var tot1 = 0;\n var tot2 = 0;\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total) {\n var Price1 = total.text().replace(/[$,]+/g, \"\");\n Price1 = parseFloat(Price1);\n tot1 = tot1 + Price1;\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(40000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n });\n cy.get('[wt-more=\"product-row\"]').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(3).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('tiered').click({\n force: true\n });\n cy.get('input.quantity-input').type('1', {\n force: true\n });\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total2) {\n var Price2 = total2.text().replace(/[$,]+/g, \"\");\n Price2 = parseFloat(Price2);\n tot2 = tot2 + Price2;\n });\n cy.get('#next-button').click({\n force: true\n }).then(function () {\n cy.wait(10000);\n expect(tot2).to.not.eq(tot1);\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.reload().then(function () {\n if (tot2 < tot1) {\n cy.get('[href=\"#CreditNote-subpanel\"]').contains(' Credits ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-CreditNote_Customer tbody td').eq(2).then(function (credit) {\n var cred = credit.text().replace(/[$,]+/g, \"\");\n cred = parseFloat(cred);\n expect(cred).to.eq(tot1);\n });\n }\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(7).then(function (OB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(8).then(function (CB) {\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + tot2;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n });\n });\n });\n});", "err": {}, "uuid": "689e9fe3-8878-43fd-a0dd-85a2456a482e", "parentUUID": "6f8046b0-26d3-4693-bb40-14bd17407ee6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "689e9fe3-8878-43fd-a0dd-85a2456a482e" ], "failures": [], "pending": [], "skipped": [], "duration": 342180, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ededab98-ecd3-4e06-bf08-078f9c8bc4dc", "title": "", "fullFile": "cypress/integration/SF/h-order/11-change-product.spec.js", "file": "cypress/integration/SF/h-order/11-change-product.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0dc69d1d-dbbb-475e-b371-59fc158373f7", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "The product is changed and verified", "fullTitle": "Modify Order The product is changed and verified", "timedOut": null, "duration": 321312, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n var tot1 = 0;\n var tot2 = 0;\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total) {\n var Price1 = total.text().replace(/[$,]+/g, \"\");\n Price1 = parseFloat(Price1);\n tot1 = tot1 + Price1;\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(45000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('[wt-delete=\"product-row\"] .fa-times').eq(0).click({\n force: true\n });\n cy.get('[wt-more=\"product-row\"]').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Random Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(3).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Test Plan').click({\n force: true\n });\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total2) {\n var Price2 = total2.text().replace(/[$,]+/g, \"\");\n Price2 = parseFloat(Price2);\n tot2 = tot2 + Price2;\n });\n cy.get('#next-button').click({\n force: true\n }).then(function () {\n cy.wait(10000);\n expect(tot2).to.not.eq(tot1);\n });\n cy.wait(12000);\n cy.reload();\n cy.reload();\n if (tot2 < tot1) {\n cy.get('[href=\"#CreditNote-subpanel\"]').contains(' Credits ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-CreditNote_Customer tbody td').eq(2).then(function (credit) {\n var cred = credit.text().replace(/[$,]+/g, \"\");\n cred = parseFloat(cred);\n expect(cred).to.eq(tot1);\n });\n }\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(7).then(function (OB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(8).then(function (CB) {\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + tot2;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n });\n });\n });\n});", "err": {}, "uuid": "031234b7-6700-485b-955d-7152d6ad242c", "parentUUID": "0dc69d1d-dbbb-475e-b371-59fc158373f7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "031234b7-6700-485b-955d-7152d6ad242c" ], "failures": [], "pending": [], "skipped": [], "duration": 321312, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "182c62ad-07e9-42dd-84b5-e1611b708363", "title": "", "fullFile": "cypress/integration/SF/h-order/12-add-line-item.spec.js", "file": "cypress/integration/SF/h-order/12-add-line-item.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2edaf507-99b7-4154-8393-970bf48df033", "title": "Modify Order", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "new line item is added and verified", "fullTitle": "Modify Order new line item is added and verified", "timedOut": null, "duration": 324418, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.contains('Customers').click({\n force: true\n});\ncy.url().should('include', '/customers');\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n});\ncy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order1) {\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice1) {\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.get('.nav-link').contains('More').click({\n force: true\n });\n cy.get('[aria-labelledby=\"navbarDropdown\"]').contains('Orders').click({\n force: true\n });\n cy.url().should('include', '/orders');\n cy.get('.btn-create').contains('Create Order').should('be.visible');\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"]').click({\n force: true\n });\n cy.get('[data-sfuniqueid=\"navbar__quick-create\"] .dropdown-menu').contains('Order').click({\n force: true\n });\n cy.url().should('include', '/en/orders/create');\n cy.get('#select2-customer_id-input-container').click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-search__field').type('Andy Barymore');\n cy.wait(10000);\n cy.get('#select2-customer_id-input-results li').contains('Andy Barymore').click({\n force: true\n });\n cy.get('#btn-existing-subscription').should('be.visible');\n cy.get('#btn-new-subscription').should('be.visible');\n cy.get('#btn-new-subscription').click({\n force: true\n });\n cy.wait(10000);\n cy.contains('Subscription Overview').should('be.visible');\n cy.get('#type-termed').should('be.checked');\n cy.get('#next-button').click({\n force: true\n });\n cy.get('tr').should('contain', 'Product');\n cy.get('tr').should('contain', 'Plan');\n cy.get('tr').should('contain', 'Coupon');\n cy.get('.select2-selection__rendered').eq(1).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n var tot1 = 0;\n var tot2 = 0;\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total) {\n var Price1 = total.text().replace(/[$,]+/g, \"\");\n Price1 = parseFloat(Price1);\n tot1 = tot1 + Price1;\n });\n cy.get('#next-button').click({\n force: true\n });\n cy.url().should('include', '/en/orders');\n cy.contains('Customers').then(function ($myElement) {\n if ($myElement.is(\":hidden\")) {\n cy.wait(5000);\n cy.get('.fa.fa-bars').click({\n force: true\n }).then(function () {\n cy.get('#multiselect_rightAll').click({\n force: true\n }).then(function () {\n cy.get('#nav-configuration').click({\n force: true\n });\n });\n });\n }\n });\n cy.wait(10000);\n cy.contains('Customers').click({\n force: true\n });\n cy.url().should('include', '/customers');\n cy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n }).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n });\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('[href=\"#Order-subpanel').contains('Orders').click({\n force: true\n });\n cy.get('#Order-subpanel .pull-right a').contains('Order').click({\n force: true\n });\n cy.get('#btn-existing-subscription').click({\n force: true\n });\n cy.wait(45000);\n cy.get('button.select-subscription').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('[wt-more=\"product-row\"]').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(2).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Testing Product').click({\n force: true\n });\n cy.get('.select2-selection__rendered').eq(3).click({\n force: true\n });\n cy.wait(5000);\n cy.get('.select2-results__options li').contains('Volume').click({\n force: true\n });\n cy.get('.sub-total').then(function () {\n cy.get('.sub-total').each(function (total2) {\n var Price2 = total2.text().replace(/[$,]+/g, \"\");\n Price2 = parseFloat(Price2);\n tot2 = tot2 + Price2;\n });\n cy.get('#next-button').click({\n force: true\n }).then(function () {\n cy.wait(10000);\n expect(tot2).to.be.greaterThan(tot1);\n });\n cy.wait(18000);\n cy.reload();\n cy.reload();\n cy.get('[href=\"#Order-subpanel\"]').contains(' Orders ').click({\n force: true\n });\n cy.get('#related-table-order .sf-pagination-wrapper span.bold').eq(0).then(function (order2) {\n expect(order1.text()).to.not.eq(order2.text());\n });\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n cy.get('#related-table-invoice .sf-pagination-wrapper span.bold').eq(0).then(function (invoice2) {\n expect(invoice1.text()).to.not.eq(invoice2.text());\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(7).then(function (OB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(8).then(function (CB) {\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (tot2 - tot1);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n });\n });\n });\n});", "err": {}, "uuid": "30dc435c-a84d-4b6a-bc4f-fa818bcaab8d", "parentUUID": "2edaf507-99b7-4154-8393-970bf48df033", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "30dc435c-a84d-4b6a-bc4f-fa818bcaab8d" ], "failures": [], "pending": [], "skipped": [], "duration": 324418, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "28a634fb-bdbf-4703-a78f-3eb529537bfa", "title": "", "fullFile": "cypress/integration/SF/i-invoices/01Make_Payment_Cash.spec.js", "file": "cypress/integration/SF/i-invoices/01Make_Payment_Cash.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "774b6609-9b0b-413d-8e9a-0ddb1d6ec944", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cash", "fullTitle": "Make Payment Make payment through Cash", "timedOut": null, "duration": 98352, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "7d215d9b-8336-47a1-9eed-f770d9cac5db", "parentUUID": "774b6609-9b0b-413d-8e9a-0ddb1d6ec944", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7d215d9b-8336-47a1-9eed-f770d9cac5db" ], "failures": [], "pending": [], "skipped": [], "duration": 98352, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ef810f67-3760-48fd-909c-216864caf2d3", "title": "", "fullFile": "cypress/integration/SF/i-invoices/02Make_Payment_Writeoff.spec.js", "file": "cypress/integration/SF/i-invoices/02Make_Payment_Writeoff.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "01352ef6-b751-4eaf-82ef-731953e6f313", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment writeoff", "fullTitle": "Make Payment Make payment writeoff", "timedOut": null, "duration": 99178, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "4fe8e9aa-fb90-469d-acd1-fb522ab6e738", "parentUUID": "01352ef6-b751-4eaf-82ef-731953e6f313", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4fe8e9aa-fb90-469d-acd1-fb522ab6e738" ], "failures": [], "pending": [], "skipped": [], "duration": 99178, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "57b7f4fd-e358-49f4-91c4-1f3090ab6ebc", "title": "", "fullFile": "cypress/integration/SF/i-invoices/03Make_Payment_BankTransfer.spec.js", "file": "cypress/integration/SF/i-invoices/03Make_Payment_BankTransfer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "888bd2ba-dc40-492c-b8c4-d3a43f7d48a2", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Bank Transfer", "fullTitle": "Make Payment Make payment through Bank Transfer", "timedOut": null, "duration": 100224, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\nvar newamount;\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "38c437b2-0642-494e-97ae-1eba2b855cf1", "parentUUID": "888bd2ba-dc40-492c-b8c4-d3a43f7d48a2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "38c437b2-0642-494e-97ae-1eba2b855cf1" ], "failures": [], "pending": [], "skipped": [], "duration": 100224, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1144bea1-c8e7-4327-951e-b2157cb488a3", "title": "", "fullFile": "cypress/integration/SF/i-invoices/04Make_Payment_Cheque_Status_Paid.spec.js", "file": "cypress/integration/SF/i-invoices/04Make_Payment_Cheque_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b2f98d71-307a-48f8-8f22-0ce00d301a86", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status Paid", "fullTitle": "Make Payment Make payment through Cheque with Status Paid", "timedOut": null, "duration": 100784, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\nvar newamount;\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "d70de49c-27fa-4532-8c75-e07fc766f8b8", "parentUUID": "b2f98d71-307a-48f8-8f22-0ce00d301a86", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d70de49c-27fa-4532-8c75-e07fc766f8b8" ], "failures": [], "pending": [], "skipped": [], "duration": 100784, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b39a15b5-8de1-437c-9aa3-f8e220901194", "title": "", "fullFile": "cypress/integration/SF/i-invoices/05Make_Payment_Cheque_Status_Approve_Pending.spec.js", "file": "cypress/integration/SF/i-invoices/05Make_Payment_Cheque_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "20037235-09da-4dc4-8fda-19a78233142b", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status Pending and I Approve", "fullTitle": "Make Payment Make payment through Cheque with Status Pending and I Approve", "timedOut": null, "duration": 151409, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment(parseFloat(transaction1.text()));\n });\n } else {\n makePayment(0);\n }\n});", "err": {}, "uuid": "6da1674a-bf33-472b-a91b-52dca1b072cb", "parentUUID": "20037235-09da-4dc4-8fda-19a78233142b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6da1674a-bf33-472b-a91b-52dca1b072cb" ], "failures": [], "pending": [], "skipped": [], "duration": 151409, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7959edc5-a2c0-4cd3-8df9-e5b393bfb2e0", "title": "", "fullFile": "cypress/integration/SF/i-invoices/06Make_Payment_Cheque_Status_Decline_Pending.spec.js", "file": "cypress/integration/SF/i-invoices/06Make_Payment_Cheque_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9a253fe2-0cf9-4d48-b6ae-62315a90e4a8", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cheque with Status Pending and I Decline", "fullTitle": "Make Payment Make payment through Cheque with Status Pending and I Decline", "timedOut": null, "duration": 148980, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment(parseFloat(transaction1.text()));\n });\n } else {\n makePayment(0);\n }\n});", "err": {}, "uuid": "7944dc7c-e03b-46f1-a3e7-680a4d3f2196", "parentUUID": "9a253fe2-0cf9-4d48-b6ae-62315a90e4a8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7944dc7c-e03b-46f1-a3e7-680a4d3f2196" ], "failures": [], "pending": [], "skipped": [], "duration": 148980, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "67f19cc6-164a-4f5f-90bf-f3e14a82c2fc", "title": "", "fullFile": "cypress/integration/SF/i-invoices/07Make_Payment_Wire_Status_Paid.spec.js", "file": "cypress/integration/SF/i-invoices/07Make_Payment_Wire_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9df6e255-8986-46d1-aa40-6511c1893b44", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status Paid", "fullTitle": "Make Payment Make payment through Wire with Status Paid", "timedOut": null, "duration": 99229, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "b3007acd-8181-4b80-a13b-864ea23d6fcc", "parentUUID": "9df6e255-8986-46d1-aa40-6511c1893b44", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b3007acd-8181-4b80-a13b-864ea23d6fcc" ], "failures": [], "pending": [], "skipped": [], "duration": 99229, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "29b48c9d-5c77-4f2d-a17f-eef6aca510d5", "title": "", "fullFile": "cypress/integration/SF/i-invoices/08Make_Payment_Wire_Status_Approve_Pending.spec.js", "file": "cypress/integration/SF/i-invoices/08Make_Payment_Wire_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "86e8a158-b0cb-4862-b7b3-92763e976f49", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status Pending and I Approve", "fullTitle": "Make Payment Make payment through Wire with Status Pending and I Approve", "timedOut": null, "duration": 149960, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment(parseFloat(transaction1.text()));\n });\n } else {\n makePayment(0);\n }\n});", "err": {}, "uuid": "943a1522-990e-4d42-b2b2-dbe917eab66c", "parentUUID": "86e8a158-b0cb-4862-b7b3-92763e976f49", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "943a1522-990e-4d42-b2b2-dbe917eab66c" ], "failures": [], "pending": [], "skipped": [], "duration": 149960, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f30ae5c0-43f2-4bd0-8d53-6a021ddf9513", "title": "", "fullFile": "cypress/integration/SF/i-invoices/09Make_Payment_Wire_Status_Decline_Pending.spec.js", "file": "cypress/integration/SF/i-invoices/09Make_Payment_Wire_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "13625ccd-3900-445d-9a46-43421e9dcdb6", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Wire with Status Pending and I Decline", "fullTitle": "Make Payment Make payment through Wire with Status Pending and I Decline", "timedOut": null, "duration": 150229, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment(parseFloat(transaction1.text()));\n });\n } else {\n makePayment(0);\n }\n});", "err": {}, "uuid": "5354f119-2410-4022-a54a-3536abd76e08", "parentUUID": "13625ccd-3900-445d-9a46-43421e9dcdb6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5354f119-2410-4022-a54a-3536abd76e08" ], "failures": [], "pending": [], "skipped": [], "duration": 150229, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e6368ef2-079d-4438-80f4-adafaf859478", "title": "", "fullFile": "cypress/integration/SF/i-invoices/10Make_Payment_Card.spec.js", "file": "cypress/integration/SF/i-invoices/10Make_Payment_Card.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "921806f6-6dfd-42d6-8263-555a7c2c89d3", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Make Payment Make payment through Card", "timedOut": null, "duration": 105866, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "69708b02-9beb-4722-9644-8c6c567ac513", "parentUUID": "921806f6-6dfd-42d6-8263-555a7c2c89d3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "69708b02-9beb-4722-9644-8c6c567ac513" ], "failures": [], "pending": [], "skipped": [], "duration": 105866, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ad90e832-3737-4f9b-b1c1-c1b9b8afe899", "title": "", "fullFile": "cypress/integration/SF/i-invoices/11Make_Payment_eCheck.spec.js", "file": "cypress/integration/SF/i-invoices/11Make_Payment_eCheck.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "811167dc-9206-46e7-8b18-48ab0429e963", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Make Payment Make payment through eCheck", "timedOut": null, "duration": 179793, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseFloat(transaction1.text()) + 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n } else {\n makePayment();\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseFloat(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n }\n});", "err": {}, "uuid": "49cc10a1-23f5-46e8-afb6-cb3d87d96184", "parentUUID": "811167dc-9206-46e7-8b18-48ab0429e963", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "49cc10a1-23f5-46e8-afb6-cb3d87d96184" ], "failures": [], "pending": [], "skipped": [], "duration": 179793, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "125778e2-6078-42d9-a334-c9520e9dded3", "title": "", "fullFile": "cypress/integration/SF/i-invoices/12Make_Payment_PayPal.spec.js", "file": "cypress/integration/SF/i-invoices/12Make_Payment_PayPal.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7491ece4-2542-4f63-b5be-27c40035dacd", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through PayPal", "fullTitle": "Make Payment Make payment through PayPal", "timedOut": null, "duration": 110305, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\nmakePayment();\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#relatedList-bulk-action-Transaction_Invoice tbody a span').eq(0).click({\n force: true\n});\ncy.get('.card-header .badge').should('have.class', 'badge-status-pending');", "err": {}, "uuid": "0b242b7b-a168-43d2-997f-305722181429", "parentUUID": "7491ece4-2542-4f63-b5be-27c40035dacd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0b242b7b-a168-43d2-997f-305722181429" ], "failures": [], "pending": [], "skipped": [], "duration": 110305, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "872ad894-4e5c-4ab3-b358-4077b90beae2", "title": "", "fullFile": "cypress/integration/SF/i-invoices/13Public_Checkout_Offline_Approve.spec.js", "file": "cypress/integration/SF/i-invoices/13Public_Checkout_Offline_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1a68e18c-0662-4ee3-bc9f-c5911ca147e6", "title": "Public Checkout", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Offline public checkout and I approve", "fullTitle": "Public Checkout Offline public checkout and I approve", "timedOut": null, "duration": 159445, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody a span').eq(0).click({\n force: true\n });\n cy.get('[data-target=\"#approve-modal\"]').click({\n force: true\n });\n cy.get('#approve-form button[type=\"submit\"]').click({\n force: true\n });\n cy.wait(7000);\n cy.visit(myUrl);\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "599d4e1b-ae59-4dfd-91ce-41c900fb64bb", "parentUUID": "1a68e18c-0662-4ee3-bc9f-c5911ca147e6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "599d4e1b-ae59-4dfd-91ce-41c900fb64bb" ], "failures": [], "pending": [], "skipped": [], "duration": 159445, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0cc102fc-3f79-43b2-8c65-be85e60d51b4", "title": "", "fullFile": "cypress/integration/SF/i-invoices/14Public_Checkout_Offline_Decline.spec.js", "file": "cypress/integration/SF/i-invoices/14Public_Checkout_Offline_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "4c559b32-fc54-4983-bdc5-71b60f600e37", "title": "Public Checkout", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Offline public checkout and I decline", "fullTitle": "Public Checkout Offline public checkout and I decline", "timedOut": null, "duration": 155741, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody a span').eq(0).click({\n force: true\n });\n cy.get('a[data-target=\"#decline-modal\"]').click({\n force: true\n });\n cy.get('#decline-form textarea').type('Some reason');\n cy.get('#decline-form button[type=\"submit\"]').click({\n force: true\n });\n cy.visit(myUrl);\n cy.get('label.badge').should('not.have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "f299f8ab-8665-400e-9300-55f02ac3b5e9", "parentUUID": "4c559b32-fc54-4983-bdc5-71b60f600e37", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f299f8ab-8665-400e-9300-55f02ac3b5e9" ], "failures": [], "pending": [], "skipped": [], "duration": 155741, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "62920c12-511d-4b5e-ac4e-4b10417cbd2f", "title": "", "fullFile": "cypress/integration/SF/i-invoices/15Public_Checkout_CreditCard_AuthorizNet.spec.js", "file": "cypress/integration/SF/i-invoices/15Public_Checkout_CreditCard_AuthorizNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f948315a-1c29-4180-a11c-6de8c01e20f7", "title": "Public Checkout using AuthorizNet", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using credit card using AuthorizeNet", "fullTitle": "Public Checkout using AuthorizNet Public checkout using credit card using AuthorizeNet", "timedOut": null, "duration": 181981, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/invoices');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "3cfdcb0c-b77b-4595-8b6d-06e14ff182a1", "parentUUID": "f948315a-1c29-4180-a11c-6de8c01e20f7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3cfdcb0c-b77b-4595-8b6d-06e14ff182a1" ], "failures": [], "pending": [], "skipped": [], "duration": 181981, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e36ad81c-9ad6-498d-844b-4ce543d1c10b", "title": "", "fullFile": "cypress/integration/SF/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/SF/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7c78706a-d359-4733-b316-b8eb1d2bdbfb", "title": "Public Checkout using AuthorizNet", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using Bank Transfer using AuthorizeNet", "fullTitle": "Public Checkout using AuthorizNet Public checkout using Bank Transfer using AuthorizeNet", "timedOut": null, "duration": 189102, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/invoices');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "5a9e14e6-86bf-4138-9784-db2299c208c4", "parentUUID": "7c78706a-d359-4733-b316-b8eb1d2bdbfb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5a9e14e6-86bf-4138-9784-db2299c208c4" ], "failures": [], "pending": [], "skipped": [], "duration": 189102, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9fb4859f-e7e4-4e04-98e7-6cafc13d93bf", "title": "", "fullFile": "cypress/integration/SF/i-invoices/18Public_Checkout_CreditCard_Stripe.spec.js", "file": "cypress/integration/SF/i-invoices/18Public_Checkout_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7c99ba7a-0272-47b1-98d9-adaae04114c1", "title": "Public Checkout using Stripe", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using credit card using Stripe", "fullTitle": "Public Checkout using Stripe Public checkout using credit card using Stripe", "timedOut": null, "duration": 220066, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(20000);\ncy.visit('https://test.subscriptionflow.com/en/invoices');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "c69f4add-6c95-462b-aa44-8f8855ff2b43", "parentUUID": "7c99ba7a-0272-47b1-98d9-adaae04114c1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c69f4add-6c95-462b-aa44-8f8855ff2b43" ], "failures": [], "pending": [], "skipped": [], "duration": 220066, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d15d319f-672a-43b9-8b8f-e9c02b4bcea0", "title": "", "fullFile": "cypress/integration/SF/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js", "file": "cypress/integration/SF/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "36cf0cf9-1613-4724-b6ff-73686d1455fe", "title": "Public Checkout using PayPal Express Checkout", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using PayPal Express Checkout and I approve", "fullTitle": "Public Checkout using PayPal Express Checkout Public checkout using PayPal Express Checkout and I approve", "timedOut": null, "duration": 132301, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('#relatedList-bulk-action-Transaction_Invoice tbody a span').eq(0).click({\n force: true\n });\n cy.get('.card-header .badge').should('have.class', 'badge-status-pending');\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js:199:14)", "diff": null }, "uuid": "95de7b46-0d25-43d6-a4d9-e54b69ed6516", "parentUUID": "36cf0cf9-1613-4724-b6ff-73686d1455fe", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "95de7b46-0d25-43d6-a4d9-e54b69ed6516" ], "pending": [], "skipped": [], "duration": 132301, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "05765f77-2b1c-4022-b567-39e71651c849", "title": "", "fullFile": "cypress/integration/SF/i-invoices/23Add_payment_method_using_Make_Payment_for_credit_card_using_Authorize.net.spec.js", "file": "cypress/integration/SF/i-invoices/23Add_payment_method_using_Make_Payment_for_credit_card_using_Authorize.net.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0f0e0bd3-9adf-4bfc-a7a4-ce1de113cbcd", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through card using Authorize.NET", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through card using Authorize.NET", "timedOut": null, "duration": 161121, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.visit(myUrl);\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('Card');\ncy.get('#sale_form i.fas.fa-plus').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#payment-gateway-input').select('Authorize.NET');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#card_number-input').type('4111111111111111');\ncy.get('#expiry_month-input').select('08').should('have.value', '08');\ncy.get('#expiry_year-input').select('2021').should('have.value', '2021');\ncy.get('#card_cvv-input').type('765');\ncy.get('#save_button_dis').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#payment_method_id-input option').each(function (option) {\n if (option.text().includes('Default')) {\n expect(option.text()).to.include('1111');\n }\n});", "err": {}, "uuid": "7aba8b8e-973f-4879-ad12-c335101d2f35", "parentUUID": "0f0e0bd3-9adf-4bfc-a7a4-ce1de113cbcd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7aba8b8e-973f-4879-ad12-c335101d2f35" ], "failures": [], "pending": [], "skipped": [], "duration": 161121, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f6b097dd-4e66-4fb0-a32a-a20df97531cc", "title": "", "fullFile": "cypress/integration/SF/i-invoices/24Add_payment_method_using_Make_Payment_for_ACH_using_Authorize.net.spec.js", "file": "cypress/integration/SF/i-invoices/24Add_payment_method_using_Make_Payment_for_ACH_using_Authorize.net.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "38ef2344-4fe0-47e4-950a-95e8a82cc50a", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through ACH using Authorize.NET", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through ACH using Authorize.NET", "timedOut": null, "duration": 167368, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.visit(myUrl);\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('eCheck');\ncy.get('#sale_form i.fas.fa-plus').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#payment-gateway-input').select('Authorize.NET');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('input[name=\"billing_postalcode\"]').clear({\n force: true\n}).type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address1\"]').clear({\n force: true\n}).type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address2\"]').clear({\n force: true\n}).type('1111', {\n force: true\n});\ncy.get('#payment_option-ACH').click({\n force: true\n});\ncy.get('#routing_number-input').type('021000021');\ncy.get('#account_number-input').type('111111114');\ncy.wait(5000);\ncy.get('#save_button_dis').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#payment_method_id-input option').each(function (option) {\n if (option.text().includes('Default')) {\n expect(option.text()).to.include('1114');\n }\n});", "err": {}, "uuid": "7a379dfa-9c31-44f7-9d08-97ef17e498f9", "parentUUID": "38ef2344-4fe0-47e4-950a-95e8a82cc50a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7a379dfa-9c31-44f7-9d08-97ef17e498f9" ], "failures": [], "pending": [], "skipped": [], "duration": 167368, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a983a48d-c9fc-4879-a4e9-ef70d34aa0cf", "title": "", "fullFile": "cypress/integration/SF/i-invoices/26Add_payment_method_using_Make_Payment_for_credit_card_using_Stripe.spec.js", "file": "cypress/integration/SF/i-invoices/26Add_payment_method_using_Make_Payment_for_credit_card_using_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1dece8fe-38a4-4432-8fca-32d91da249c2", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through Card using Stripe", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through Card using Stripe", "timedOut": null, "duration": 131491, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('Card');\ncy.get('#sale_form i.fas.fa-plus').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#payment-gateway-input').select('Stripe');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('.__PrivateStripeElement > iframe').then(function ($element) {\n var $body = $element.contents().find('body');\n var stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(0).click({\n force: true\n }).clear().type('4242424242424242');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(1).click({\n force: true\n }).clear().type('425');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(2).click({\n force: true\n }).clear().type('424');\n stripe = cy.wrap($body);\n stripe.find('.CardField-input-wrapper').find('input.InputElement').eq(3).click({\n force: true\n }).clear().type('77777');\n});\ncy.wait(5000);\ncy.get('#save_button_dis').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#payment_method_id-input option').each(function (option) {\n if (option.text().includes('Default')) {\n expect(option.text()).to.include('4242');\n }\n});", "err": {}, "uuid": "8e483539-f093-4d22-8918-ae594fd24898", "parentUUID": "1dece8fe-38a4-4432-8fca-32d91da249c2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8e483539-f093-4d22-8918-ae594fd24898" ], "failures": [], "pending": [], "skipped": [], "duration": 131491, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e2429528-9a26-4944-bf5d-a2e524d25a2e", "title": "", "fullFile": "cypress/integration/SF/i-invoices/27Add_payment_method_using_Make_Payment_for_ACH_using_Stripe.spec.js", "file": "cypress/integration/SF/i-invoices/27Add_payment_method_using_Make_Payment_for_ACH_using_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "46a9fdec-3ba1-460e-9353-083b187f4e2d", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through ACH using Stripe", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through ACH using Stripe", "timedOut": null, "duration": 205685, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.url().then(function (custUrl) {\n cy.visit(myUrl);\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Make Payment').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#cash_or_card-input').select('eCheck');\n cy.get('#sale_form i.fas.fa-plus').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#payment-gateway-input').select('Stripe');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('Adams');\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('input[name=\"billing_postalcode\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address1\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address2\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('#payment_option-ACH').click({\n force: true\n });\n cy.get('#routing_number-input').type('110000000');\n cy.get('#account_number-input').type('000222222227');\n cy.wait(5000);\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.visit(custUrl);\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-PaymentMethod_Customer a.btn').contains('Verify').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#amount1-input').type('32');\n cy.get('#amount2-input').type('45');\n cy.get('#verify_button').click({\n force: true\n });\n cy.wait(5000);\n cy.visit(myUrl);\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('eCheck');\ncy.get('#payment_method_id-input option').each(function (option) {\n if (option.text().includes('Default')) {\n expect(option.text()).to.include('2227');\n }\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Verify' within the element: [ <a.btn.btn-link.p-0.link-primary.create-center-modal>, 1 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Verify' within the element: [ <a.btn.btn-link.p-0.link-primary.create-center-modal>, 1 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/27Add_payment_method_using_Make_Payment_for_ACH_using_Stripe.spec.js:275:71)", "diff": null }, "uuid": "e8d51546-a113-44a2-8b6b-f7402e94f487", "parentUUID": "46a9fdec-3ba1-460e-9353-083b187f4e2d", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "e8d51546-a113-44a2-8b6b-f7402e94f487" ], "pending": [], "skipped": [], "duration": 205685, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "53d5e859-ac2f-4c1e-9540-fd86983d2a55", "title": "", "fullFile": "cypress/integration/SF/i-invoices/28Add_Payment_Method_using_Make_Payment_for_ACH_using_GoCardless.spec.js", "file": "cypress/integration/SF/i-invoices/28Add_Payment_Method_using_Make_Payment_for_ACH_using_GoCardless.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ea22721e-6bfd-49b9-933a-54cd3ce79a99", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through ACH using GoCardless", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through ACH using GoCardless", "timedOut": null, "duration": 188562, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.url().then(function (custUrl) {\n cy.visit(myUrl);\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Make Payment').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#cash_or_card-input').select('eCheck');\n cy.get('#sale_form i.fas.fa-plus').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#payment-gateway-input').select('GoCardless');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('Adams');\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('input[name=\"billing_postalcode\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address1\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address2\"]').clear({\n force: true\n }).type('1111', {\n force: true\n });\n cy.get('#payment_option-ACH').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(7000);\n cy.visit(custUrl);\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod td').contains('GoCardless').should('exist');\n});", "err": {}, "uuid": "f0084d2e-7fc0-4e7a-9bf4-249f19bd02dd", "parentUUID": "ea22721e-6bfd-49b9-933a-54cd3ce79a99", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f0084d2e-7fc0-4e7a-9bf4-249f19bd02dd" ], "failures": [], "pending": [], "skipped": [], "duration": 188562, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c2cfbaad-c1a6-48c1-b493-5a406b7cbf40", "title": "", "fullFile": "cypress/integration/SF/j-transactions/01Pay_Invoice_Using_Unapplied_Amount.spec.js", "file": "cypress/integration/SF/j-transactions/01Pay_Invoice_Using_Unapplied_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "09d38317-ba21-4f0d-8bfc-1227cce396c6", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with unapplied amount equal to allocated, transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with unapplied amount equal to allocated, transaction should be made", "timedOut": null, "duration": 347047, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "0044eb4a-6f02-41e9-a178-5ceeef5512ec", "parentUUID": "09d38317-ba21-4f0d-8bfc-1227cce396c6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0044eb4a-6f02-41e9-a178-5ceeef5512ec" ], "failures": [], "pending": [], "skipped": [], "duration": 347047, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0ddf6454-9b3d-4169-be71-90528d5af1ad", "title": "", "fullFile": "cypress/integration/SF/j-transactions/02Pay_Invoice_Using_Unapplied_Amt_Gt_Allocated.spec.js", "file": "cypress/integration/SF/j-transactions/02Pay_Invoice_Using_Unapplied_Amt_Gt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ae283287-f4a0-4d8d-b8d3-ed242938c9c9", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with unapplied amount greater than allocated, transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with unapplied amount greater than allocated, transaction should be made", "timedOut": null, "duration": 95783, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "b82eafbc-8ac4-44a9-8e5e-a42067ace496", "parentUUID": "ae283287-f4a0-4d8d-b8d3-ed242938c9c9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b82eafbc-8ac4-44a9-8e5e-a42067ace496" ], "failures": [], "pending": [], "skipped": [], "duration": 95783, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d0a77cea-20f7-4d74-b7d7-164cc39bda13", "title": "", "fullFile": "cypress/integration/SF/j-transactions/03Pay_Invoice_Using_Unapplied_Amt_Lt_Allocated.spec.js", "file": "cypress/integration/SF/j-transactions/03Pay_Invoice_Using_Unapplied_Amt_Lt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3262cf51-3546-41ae-8b80-519721638429", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with unapplied amount less than allocated, no transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with unapplied amount less than allocated, no transaction should be made", "timedOut": null, "duration": 79668, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "4cc94c58-c592-4090-8f76-10a277217428", "parentUUID": "3262cf51-3546-41ae-8b80-519721638429", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4cc94c58-c592-4090-8f76-10a277217428" ], "failures": [], "pending": [], "skipped": [], "duration": 79668, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "df464101-afb2-4581-af73-c3cccf8a41dd", "title": "", "fullFile": "cypress/integration/SF/j-transactions/04Pay_Invoice_Using_Unapplied_Amt_Lt_Outstanding.spec.js", "file": "cypress/integration/SF/j-transactions/04Pay_Invoice_Using_Unapplied_Amt_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bb3ad437-aced-494f-9e57-2fdb83852c4a", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with amount less than outstanding balance of invoice, transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with amount less than outstanding balance of invoice, transaction should be made", "timedOut": null, "duration": 95388, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "469fbd02-1a8f-448d-8423-b8d1d4514f36", "parentUUID": "bb3ad437-aced-494f-9e57-2fdb83852c4a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "469fbd02-1a8f-448d-8423-b8d1d4514f36" ], "failures": [], "pending": [], "skipped": [], "duration": 95388, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "21d6cc4e-5dd8-4b42-a0f1-88fad5133b72", "title": "", "fullFile": "cypress/integration/SF/j-transactions/05Pay_Invoice_Using_Unapplied_Amt_Eq_Outstanding.spec.js", "file": "cypress/integration/SF/j-transactions/05Pay_Invoice_Using_Unapplied_Amt_Eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "15c2b79d-2b4c-4368-971c-a25710c14a12", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with amount equal to outstanding balance of invoice, transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with amount equal to outstanding balance of invoice, transaction should be made", "timedOut": null, "duration": 95934, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "d8009cd7-8f5e-4f68-b468-12e6a9a973ff", "parentUUID": "15c2b79d-2b4c-4368-971c-a25710c14a12", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d8009cd7-8f5e-4f68-b468-12e6a9a973ff" ], "failures": [], "pending": [], "skipped": [], "duration": 95934, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e9a25845-f39d-4af8-bda7-9b4832dc7346", "title": "", "fullFile": "cypress/integration/SF/j-transactions/06Pay_Invoice_Using_Unapplied_Amt_Gtr_Than_Outstanding.spec.js", "file": "cypress/integration/SF/j-transactions/06Pay_Invoice_Using_Unapplied_Amt_Gtr_Than_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f26ab94c-b47d-42a4-9a4f-31ea9f3e0bb9", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with amount greater than outstanding balance of invoice, no transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with amount greater than outstanding balance of invoice, no transaction should be made", "timedOut": null, "duration": 70388, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": { "message": "AssertionError: expected 5593 to equal 5593.67", "estack": "AssertionError: expected 5593 to equal 5593.67\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/j-transactions/06Pay_Invoice_Using_Unapplied_Amt_Gtr_Than_Outstanding.spec.js:219:31)", "diff": "- 5593\n+ 5593.67\n" }, "uuid": "86d54ad7-af01-41b4-94e7-0437ea019697", "parentUUID": "f26ab94c-b47d-42a4-9a4f-31ea9f3e0bb9", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "86d54ad7-af01-41b4-94e7-0437ea019697" ], "pending": [], "skipped": [], "duration": 70388, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4fe031c7-71cd-419d-b68e-54bf073747c2", "title": "", "fullFile": "cypress/integration/SF/j-transactions/07Pay_Multiple_Invoice_Using_Unapplied_Amt.spec.js", "file": "cypress/integration/SF/j-transactions/07Pay_Multiple_Invoice_Using_Unapplied_Amt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6a4612fb-05b9-401f-91dc-c7a8f761983b", "title": "Pay invoice using Unapplied Amount", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "When I pay invoice with unapplied amount equal to allocated, transaction should be made", "fullTitle": "Pay invoice using Unapplied Amount When I pay invoice with unapplied amount equal to allocated, transaction should be made", "timedOut": null, "duration": 103149, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/transactions\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Unapplied Amount\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[unapplied_amount]\"]').select('Does Not Equal', {\n force: true\n });\n cy.get('input[name=\"filter_value[unapplied_amount]\"]').type(0, {\n force: true\n });\n var j = 0;\n var k;\n cy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n cy.get('#sidebar_checkboxes .scheckbox').eq(j).click({\n force: true\n });\n cy.get('select[name=\"filter_condition[status]\"]').select('is', {\n force: true\n });\n cy.get('input[name=\"filter_value[status]\"]').type('Paid', {\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get('tbody tr').then(function (rows) {\n if (rows.text() == \"No matching records found\") {\n expect(rows.text()).to.eq('No matching records found');\n } else {\n cy.get('tbody .link-primary').eq(0).click({\n force: true\n });\n }\n });\n } else {\n j = j + 1;\n }\n });\n } else {\n x = x + 1;\n }\n});\ncy.wait(5000);\ncy.contains('Apply Payment').click({\n force: true\n});\ncy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n createOrder();\n cy.visit(myUrl);\n });\n }\n});\napplyPayment();", "err": {}, "uuid": "a86a409a-d328-408e-8c4e-4b3350d67885", "parentUUID": "6a4612fb-05b9-401f-91dc-c7a8f761983b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a86a409a-d328-408e-8c4e-4b3350d67885" ], "failures": [], "pending": [], "skipped": [], "duration": 103149, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3cad7c17-bd5f-4113-917a-e5a221f3ed2c", "title": "", "fullFile": "cypress/integration/SF/z-logout/logout_spec.js", "file": "cypress/integration/SF/z-logout/logout_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "38eca704-9cc1-4bd7-b675-116965be44f5", "title": "Logout Functionality", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": " I enter <Email> and <Password> and I hit 'Sign in' CTA", "fullTitle": "Logout Functionality I enter <Email> and <Password> and I hit 'Sign in' CTA", "timedOut": null, "duration": 13938, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();", "err": {}, "uuid": "3cb60492-46fc-4241-965e-6523e7c9c87d", "parentUUID": "38eca704-9cc1-4bd7-b675-116965be44f5", "isHook": false, "skipped": false }, { "title": "I click the user avatar, dropdown should contaian logout text", "fullTitle": "Logout Functionality I click the user avatar, dropdown should contaian logout text", "timedOut": null, "duration": 156, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.navbar-nav.ml-auto > li:last-child').click({\n force: true\n});\ncy.get('.dropdown-menu .text-danger').should('contain.text', 'Logout');", "err": {}, "uuid": "c36d6b8f-64fd-4851-9cec-919acb649c20", "parentUUID": "38eca704-9cc1-4bd7-b675-116965be44f5", "isHook": false, "skipped": false }, { "title": "I click on Logout CTA, It should log me out", "fullTitle": "Logout Functionality I click on Logout CTA, It should log me out", "timedOut": null, "duration": 3136, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.text-danger').click({\n force: true\n});\ncy.location('pathname').should('include', 'login');", "err": {}, "uuid": "7fd45043-af56-483d-beec-991417049d81", "parentUUID": "38eca704-9cc1-4bd7-b675-116965be44f5", "isHook": false, "skipped": false }, { "title": "I press back from browser, should not go to dashboard", "fullTitle": "Logout Functionality I press back from browser, should not go to dashboard", "timedOut": null, "duration": 1905, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.go(-1);\ncy.location('pathname').should('not.include', 'dashboard');", "err": {}, "uuid": "02b88b5e-53f9-4b29-8f1f-3888fe3fbfd6", "parentUUID": "38eca704-9cc1-4bd7-b675-116965be44f5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3cb60492-46fc-4241-965e-6523e7c9c87d", "c36d6b8f-64fd-4851-9cec-919acb649c20", "7fd45043-af56-483d-beec-991417049d81", "02b88b5e-53f9-4b29-8f1f-3888fe3fbfd6" ], "failures": [], "pending": [], "skipped": [], "duration": 19135, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 } ], "meta": { "mocha": { "version": "7.0.1" }, "mochawesome": { "options": { "quiet": false, "reportFilename": "mochawesome", "saveHtml": false, "saveJson": true, "consoleReporter": "spec", "useInlineDiffs": false, "code": true }, "version": "6.1.1" }, "marge": { "options": { "id": "default", "reportDir": "cypress/reports/mocha", "quite": true, "overwrite": false, "html": false, "json": true, "pdf": false }, "version": "5.1.0" } } }