/
var
/
www
/
html
/
subscription-test-cases
/
Upload File
HOME
{ "stats": { "suites": 158, "tests": 174, "passes": 138, "pending": 0, "failures": 36, "start": "2021-01-20T03:12:13.991Z", "end": "2021-01-20T03:12:13.991Z", "duration": 23380024, "testsRegistered": 174, "passPercent": 79.3103448275862, "pendingPercent": 0, "other": 0, "hasOther": false, "skipped": 0, "hasSkipped": false }, "results": [ { "uuid": "67b29107-7b73-4b90-986b-10bca0a3a2c2", "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": "34b61c99-68c4-4e6f-bdc0-4c2ebd49d907", "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": 6880, "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": "b74a64e2-9b8d-46cc-a0bb-b1e5051446a5", "parentUUID": "34b61c99-68c4-4e6f-bdc0-4c2ebd49d907", "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": 45, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.navbar-brand').contains('Dashboard');", "err": {}, "uuid": "19663be0-51f5-421c-90c8-6d7a9d8e2839", "parentUUID": "34b61c99-68c4-4e6f-bdc0-4c2ebd49d907", "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": "06c0acb5-9869-4fcb-9411-3f9f2b14d7f0", "parentUUID": "34b61c99-68c4-4e6f-bdc0-4c2ebd49d907", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b74a64e2-9b8d-46cc-a0bb-b1e5051446a5", "19663be0-51f5-421c-90c8-6d7a9d8e2839", "06c0acb5-9869-4fcb-9411-3f9f2b14d7f0" ], "failures": [], "pending": [], "skipped": [], "duration": 6950, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "db7fdcac-f539-4a67-8865-0a445ad61b72", "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": "bc69f3dc-6a83-4c42-b35e-029e665216d1", "title": "Subscription - Upgrade", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Go to Payment method page", "fullTitle": "Subscription - Upgrade Go to Payment method page", "timedOut": null, "duration": 84204, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "// cy.get('.col-4 .btn.btn-danger').click({force:true})\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);\ncy.visit(\"/portal/payment-methods\");\ncy.checkPortal();\ncy.url().should('include', '/portal/payment-methods'); // Get window object\ncy.window().then(function (win) {\n // Replace window.open(url, target)-function with our own arrow function\n cy.stub(win, 'open', function (url) {\n // change window location to be same as the popup url\n win.location.href = url;\n }).as(\"popup\"); // alias it with popup, so we can wait refer it with @popup\n}); // Click button which triggers javascript's window.open() call\ncy.get('.col-4 .btn.btn-danger').click({\n force: true\n}); // Make sure that it triggered window.open function call\ncy.get(\"@popup\").should(\"be.called\");\ncy.wait(1000);\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": { "message": "AssertionError: Timed out retrying: expected 'https://test.subscriptionflow.com/portal' to include '/portal/payment-methods'", "estack": "AssertionError: Timed out retrying: expected 'https://test.subscriptionflow.com/portal' to include '/portal/payment-methods'\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/p-portal/4-payment-methods/1-add-payment-method.spec.js:134:14)", "diff": null }, "uuid": "1c6cffa6-ff62-45fb-8854-7b5d09351f74", "parentUUID": "bc69f3dc-6a83-4c42-b35e-029e665216d1", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "1c6cffa6-ff62-45fb-8854-7b5d09351f74" ], "pending": [], "skipped": [], "duration": 84204, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d11a331d-58b0-4a82-84d4-84e4c15fd98b", "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": "74afef4d-6543-40a1-a1c6-5aa0db738bc4", "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": 14061, "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": "de82b4a1-ff7a-479e-941d-992d02579f7f", "parentUUID": "74afef4d-6543-40a1-a1c6-5aa0db738bc4", "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": 86, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.title().should('include', 'SubscriptionFlow - Dashboard');", "err": {}, "uuid": "1b092f8a-fa8f-4a60-a2e5-cae228d63e01", "parentUUID": "74afef4d-6543-40a1-a1c6-5aa0db738bc4", "isHook": false, "skipped": false }, { "title": "I should see \"Welcome <Username>\" ", "fullTitle": "Login to the site I should see \"Welcome <Username>\" ", "timedOut": null, "duration": 913, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.contains('Welcome');", "err": {}, "uuid": "540fde85-187d-4136-bab1-3d9eb56d810c", "parentUUID": "74afef4d-6543-40a1-a1c6-5aa0db738bc4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "de82b4a1-ff7a-479e-941d-992d02579f7f", "1b092f8a-fa8f-4a60-a2e5-cae228d63e01", "540fde85-187d-4136-bab1-3d9eb56d810c" ], "failures": [], "pending": [], "skipped": [], "duration": 15060, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8bca2d16-9028-471c-a537-0030ae7c15cc", "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": "b8745706-2247-45bf-918c-62c59d588aad", "title": "Dashboard View", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "I observe the Dashboard", "fullTitle": "Dashboard View I observe the Dashboard", "timedOut": null, "duration": 16264, "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": "d375bcfc-7dce-4e21-9238-63ed03817d30", "parentUUID": "b8745706-2247-45bf-918c-62c59d588aad", "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": 114, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.main-navbar').should('be.visible');", "err": {}, "uuid": "32baa40a-809b-43cf-9e97-f3848698a3a7", "parentUUID": "b8745706-2247-45bf-918c-62c59d588aad", "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": 66, "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": "08854129-34a6-414c-8238-48bf13bdf4ce", "parentUUID": "b8745706-2247-45bf-918c-62c59d588aad", "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": 66, "state": "passed", "speed": "medium", "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": "e828b6a2-1489-4aba-9f78-e553e55ddf8e", "parentUUID": "b8745706-2247-45bf-918c-62c59d588aad", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d375bcfc-7dce-4e21-9238-63ed03817d30", "32baa40a-809b-43cf-9e97-f3848698a3a7", "08854129-34a6-414c-8238-48bf13bdf4ce", "e828b6a2-1489-4aba-9f78-e553e55ddf8e" ], "failures": [], "pending": [], "skipped": [], "duration": 16510, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "10165cea-8bc8-44a3-a670-82fcc53fdd2a", "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": "cdcb3180-cae7-4a17-93b6-6fb0d973d916", "title": "Forgot Password", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Valid Email ", "fullTitle": "Forgot Password Valid Email ", "timedOut": null, "duration": 4286, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.forgot_password('admin@subscriptionflow.com');", "err": {}, "uuid": "aa042f7c-bb7c-40cf-99f4-c3b47451aa85", "parentUUID": "cdcb3180-cae7-4a17-93b6-6fb0d973d916", "isHook": false, "skipped": false }, { "title": "Email not in record", "fullTitle": "Forgot Password Email not in record", "timedOut": null, "duration": 7870, "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": "13f7d5a6-a826-4189-9026-a1e3cfe6b3eb", "parentUUID": "cdcb3180-cae7-4a17-93b6-6fb0d973d916", "isHook": false, "skipped": false }, { "title": "Successfull Password Reset Link", "fullTitle": "Forgot Password Successfull Password Reset Link", "timedOut": null, "duration": 6765, "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": "d240a10f-3154-4e7b-a314-51ae9f1ee489", "parentUUID": "cdcb3180-cae7-4a17-93b6-6fb0d973d916", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "aa042f7c-bb7c-40cf-99f4-c3b47451aa85", "13f7d5a6-a826-4189-9026-a1e3cfe6b3eb", "d240a10f-3154-4e7b-a314-51ae9f1ee489" ], "failures": [], "pending": [], "skipped": [], "duration": 18921, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7df2409d-a5bf-4ab9-89af-1855b23b8d54", "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": "0b1b7500-f7e1-48df-8a99-71146facaa84", "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": 118425, "state": "passed", "speed": "slow", "pass": true, "fail": false, "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": {}, "uuid": "f90dbfff-95ef-4c53-abd8-873388a5c475", "parentUUID": "0b1b7500-f7e1-48df-8a99-71146facaa84", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f90dbfff-95ef-4c53-abd8-873388a5c475" ], "failures": [], "pending": [], "skipped": [], "duration": 118425, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ebc1dda6-1e2e-4b08-864c-dbdb054eea9d", "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": "6615be18-185f-4a80-a95e-0e24afbf2049", "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": 122006, "state": "passed", "speed": "slow", "pass": true, "fail": false, "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": {}, "uuid": "27fb6096-08f8-4bd3-992f-a8c798e895c2", "parentUUID": "6615be18-185f-4a80-a95e-0e24afbf2049", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "27fb6096-08f8-4bd3-992f-a8c798e895c2" ], "failures": [], "pending": [], "skipped": [], "duration": 122006, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b31a8f4f-20f9-4a10-a93c-c7286e80af87", "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": "8be97e15-05b4-41e8-8d65-22333dac3b6f", "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": 20444, "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": "4f9e0ad7-4a82-49e1-ac17-0286cdd439a6", "parentUUID": "8be97e15-05b4-41e8-8d65-22333dac3b6f", "isHook": false, "skipped": false }, { "title": "Fill the form and click CTA", "fullTitle": "Create product Fill the form and click CTA", "timedOut": null, "duration": 26303, "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": "0b022f5b-99ec-4dcc-a697-3764a2661812", "parentUUID": "8be97e15-05b4-41e8-8d65-22333dac3b6f", "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": 88, "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": "e6b934f3-18f9-4ef6-aa1f-b996efe34994", "parentUUID": "8be97e15-05b4-41e8-8d65-22333dac3b6f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4f9e0ad7-4a82-49e1-ac17-0286cdd439a6", "0b022f5b-99ec-4dcc-a697-3764a2661812", "e6b934f3-18f9-4ef6-aa1f-b996efe34994" ], "failures": [], "pending": [], "skipped": [], "duration": 46835, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c5f04a02-0215-4df3-916e-66e932662f67", "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": "84e43430-2f5f-461d-8782-c5b85ac1e772", "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": 61129, "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": "457e8a3f-23a4-4a14-8c72-841d35bf05c3", "parentUUID": "84e43430-2f5f-461d-8782-c5b85ac1e772", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "457e8a3f-23a4-4a14-8c72-841d35bf05c3" ], "failures": [], "pending": [], "skipped": [], "duration": 61129, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "80d7e2b6-b1b9-4b84-ab8d-79218251db59", "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": "a01d81eb-5fbe-4c21-9696-f747d854f68f", "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": 51522, "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": "62face4f-57b5-4f01-89c6-883ce655a411", "parentUUID": "a01d81eb-5fbe-4c21-9696-f747d854f68f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "62face4f-57b5-4f01-89c6-883ce655a411" ], "failures": [], "pending": [], "skipped": [], "duration": 51522, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "683630ff-5aab-4e24-9baf-824cc37dd868", "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": "050b3059-63bf-4ec8-96a0-a6f6e87d8684", "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": 50167, "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": "8d609c7a-6dcc-4832-b6c3-73e3df82e3f4", "parentUUID": "050b3059-63bf-4ec8-96a0-a6f6e87d8684", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8d609c7a-6dcc-4832-b6c3-73e3df82e3f4" ], "failures": [], "pending": [], "skipped": [], "duration": 50167, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "df227e85-bf90-4966-b423-6187ef30a0a3", "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": "b7d99bd3-1222-473d-adf8-af126d139e76", "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": 50590, "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": "7f655bf5-ed99-4760-9e6b-15f37765b719", "parentUUID": "b7d99bd3-1222-473d-adf8-af126d139e76", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7f655bf5-ed99-4760-9e6b-15f37765b719" ], "failures": [], "pending": [], "skipped": [], "duration": 50590, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7e36ab61-d194-4e84-b2c1-3818568d1676", "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": "9bdad2ab-287f-47a8-8e3f-094865690dd8", "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": 175179, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#paymentInformationCard__cardNumber`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#paymentInformationCard__cardNumber`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/06HPP_Trial_CreditCard_AuthorizeNet.spec.js:340:14)", "diff": null }, "uuid": "cb4d3836-b56c-47f9-8ef0-408a23a525a1", "parentUUID": "9bdad2ab-287f-47a8-8e3f-094865690dd8", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "cb4d3836-b56c-47f9-8ef0-408a23a525a1" ], "pending": [], "skipped": [], "duration": 175179, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "20dad7b6-391f-441e-b6cf-b3ca491e0e55", "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": "e2a13268-28a2-4878-8a77-609aec77e785", "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": 171874, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#paymentInformationCard__cardNumber`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#paymentInformationCard__cardNumber`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/07HPP_CreditCard_AuthorizeNet.spec.js:340:14)", "diff": null }, "uuid": "34340b6c-d446-4bb5-8f16-f9c1280b15ee", "parentUUID": "e2a13268-28a2-4878-8a77-609aec77e785", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "34340b6c-d446-4bb5-8f16-f9c1280b15ee" ], "pending": [], "skipped": [], "duration": 171874, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ec563bd7-8959-47e6-b419-e570a541602f", "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": "71b0e76a-dc42-4338-b5e2-e8e8e8c6fd11", "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": 180839, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Please provide valid account number.' within the element: <div#ach-errors.my-2.text-danger> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Please provide valid account number.' within the element: <div#ach-errors.my-2.text-danger> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/08HPP_Trial_BankTransfer_AuthorizeNet.spec.js:344:82)", "diff": null }, "uuid": "06a03687-e011-4259-a8ad-8a4ec9ba74e6", "parentUUID": "71b0e76a-dc42-4338-b5e2-e8e8e8c6fd11", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "06a03687-e011-4259-a8ad-8a4ec9ba74e6" ], "pending": [], "skipped": [], "duration": 180839, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8d37566c-3973-4609-970c-0107a72e4b8a", "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": "f1eb7f8d-3645-4299-8a15-b77d624a8319", "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": 179506, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Please provide valid account number.' within the element: <div#ach-errors.my-2.text-danger> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Please provide valid account number.' within the element: <div#ach-errors.my-2.text-danger> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/09HPP_BankTransfer_AuthorizeNet.spec.js:344:82)", "diff": null }, "uuid": "4b124af4-e27b-44b6-802a-1a1b3b2adaad", "parentUUID": "f1eb7f8d-3645-4299-8a15-b77d624a8319", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "4b124af4-e27b-44b6-802a-1a1b3b2adaad" ], "pending": [], "skipped": [], "duration": 179506, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "11ce935b-3e00-4c3c-b23e-244c80ef5e77", "title": "", "fullFile": "cypress/integration/SF/d-product/10HPP_Trial_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/SF/d-product/10HPP_Trial_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d9d1d6f0-dbdb-42d6-887e-44855dc5556e", "title": "Hosted Payment Page (Trial)", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with PayPal Pro", "fullTitle": "Hosted Payment Page (Trial) Hosted Payment Page using Credit Card with PayPal Pro", "timedOut": null, "duration": 242492, "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 Pro').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": "01d3c2b1-6408-4a79-927e-cc35d6a4dbc9", "parentUUID": "d9d1d6f0-dbdb-42d6-887e-44855dc5556e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "01d3c2b1-6408-4a79-927e-cc35d6a4dbc9" ], "failures": [], "pending": [], "skipped": [], "duration": 242492, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "76278f8a-0f7d-4e52-ac41-3723a539b5f2", "title": "", "fullFile": "cypress/integration/SF/d-product/11HPP_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/SF/d-product/11HPP_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "41d5cf0a-bad9-4d27-9584-fe0147c41ed8", "title": "Hosted Payment Page", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Hosted Payment Page using Credit Card with PayPal Pro", "fullTitle": "Hosted Payment Page Hosted Payment Page using Credit Card with PayPal Pro", "timedOut": null, "duration": 209182, "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('PayPal Pro').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: 'This is the success message' within the element: [ <h4.lead.m-0.text-info>, 2 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'This is the success message' within the element: [ <h4.lead.m-0.text-info>, 2 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/11HPP_CreditCard_PayPalPro.spec.js:357:67)", "diff": null }, "uuid": "36b3ed01-6384-4461-8cc4-0adb341d791d", "parentUUID": "41d5cf0a-bad9-4d27-9584-fe0147c41ed8", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "36b3ed01-6384-4461-8cc4-0adb341d791d" ], "pending": [], "skipped": [], "duration": 209182, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "aabd845e-302f-457f-ad3a-525929347f9d", "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": "002a91fb-0efd-469f-a8e3-c061115b81b2", "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": 269126, "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": "d1531279-b271-451e-b87f-0f92d87424f7", "parentUUID": "002a91fb-0efd-469f-a8e3-c061115b81b2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d1531279-b271-451e-b87f-0f92d87424f7" ], "failures": [], "pending": [], "skipped": [], "duration": 269126, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "aca289a3-8316-43a6-ba17-11b6d504c72f", "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": "074fc520-232c-4e93-8453-f61c34126e3c", "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": 260447, "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": "efb23ddb-1e93-44d2-ab68-c3ca264a48cc", "parentUUID": "074fc520-232c-4e93-8453-f61c34126e3c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "efb23ddb-1e93-44d2-ab68-c3ca264a48cc" ], "failures": [], "pending": [], "skipped": [], "duration": 260447, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c2216c2b-5a85-4bb9-91f8-28c31c1010bc", "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": "5639d48e-4968-4993-8653-9bb374c50e75", "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": 255383, "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": "0acf00ee-9eca-48c3-b906-ccea3fd6abe9", "parentUUID": "5639d48e-4968-4993-8653-9bb374c50e75", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0acf00ee-9eca-48c3-b906-ccea3fd6abe9" ], "failures": [], "pending": [], "skipped": [], "duration": 255383, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6930b8c4-12ac-4c70-b209-d975219e4931", "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": "ad76d9ee-5e5c-45bd-af73-d67f976b24c6", "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": 260785, "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": "31de4ebd-1dc6-4685-a9c8-989f7d81e251", "parentUUID": "ad76d9ee-5e5c-45bd-af73-d67f976b24c6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "31de4ebd-1dc6-4685-a9c8-989f7d81e251" ], "failures": [], "pending": [], "skipped": [], "duration": 260785, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ea0b0326-efe4-4172-9abc-d589ec610690", "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": "785b06d2-14c5-4ada-9745-8c1f6d625779", "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": 197221, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Thank you! Your trial subscription has been activated' within the element: [ <h4.lead.m-0.text-success>, 2 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Thank you! Your trial subscription has been activated' within the element: [ <h4.lead.m-0.text-success>, 2 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js:350:93)", "diff": null }, "uuid": "654f4e15-fccb-4232-91b3-7e0cffff5705", "parentUUID": "785b06d2-14c5-4ada-9745-8c1f6d625779", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "654f4e15-fccb-4232-91b3-7e0cffff5705" ], "pending": [], "skipped": [], "duration": 197221, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d40d9ac1-937c-4051-a3b0-d9277d760ce1", "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": "9327211c-3667-4f7f-8745-434ecb29e362", "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": 233051, "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": "1336320a-a710-4a4e-b79d-f48cc4b7fe1d", "parentUUID": "9327211c-3667-4f7f-8745-434ecb29e362", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1336320a-a710-4a4e-b79d-f48cc4b7fe1d" ], "failures": [], "pending": [], "skipped": [], "duration": 233051, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "76943655-866e-4211-988a-e5bfe42d5e4b", "title": "", "fullFile": "cypress/integration/SF/e-plan/cancel-plan.js", "file": "cypress/integration/SF/e-plan/cancel-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a52ee3a7-17b6-4348-a1cd-e85ff2d142c7", "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": 28737, "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": "79529675-80ce-44b5-bb45-51997cf22b78", "parentUUID": "a52ee3a7-17b6-4348-a1cd-e85ff2d142c7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "79529675-80ce-44b5-bb45-51997cf22b78" ], "failures": [], "pending": [], "skipped": [], "duration": 28737, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "624946d1-7932-4723-846d-1132264833d7", "title": "", "fullFile": "cypress/integration/SF/e-plan/create-plan.js", "file": "cypress/integration/SF/e-plan/create-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2e9afa8f-e112-45a8-9512-07ed82914afc", "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": 30880, "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": "a292d2fc-a78f-4e73-8544-03cda48ed1be", "parentUUID": "2e9afa8f-e112-45a8-9512-07ed82914afc", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a292d2fc-a78f-4e73-8544-03cda48ed1be" ], "failures": [], "pending": [], "skipped": [], "duration": 30880, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fd13ed0d-8ea4-49cc-b3ef-dc054e745f63", "title": "", "fullFile": "cypress/integration/SF/f-coupon/cancel-coupon.js", "file": "cypress/integration/SF/f-coupon/cancel-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "82893236-06f6-4d7c-9cd5-ab5194767575", "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": 20190, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Coupon' within the element: [ <a.dropdown-item.>, 29 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Coupon' within the element: [ <a.dropdown-item.>, 29 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/f-coupon/cancel-coupon.js:104:32)", "diff": null }, "uuid": "9d7cedaa-65dd-49c6-ad5f-07c6f0ca8fdc", "parentUUID": "82893236-06f6-4d7c-9cd5-ab5194767575", "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": 14389, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Coupon' within the element: [ <a.dropdown-item.>, 29 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Coupon' within the element: [ <a.dropdown-item.>, 29 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/f-coupon/cancel-coupon.js:152:32)", "diff": null }, "uuid": "4ddd91b7-71fa-486a-b454-560dee70ce21", "parentUUID": "82893236-06f6-4d7c-9cd5-ab5194767575", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "9d7cedaa-65dd-49c6-ad5f-07c6f0ca8fdc", "4ddd91b7-71fa-486a-b454-560dee70ce21" ], "pending": [], "skipped": [], "duration": 34579, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f990ff79-bf7e-43c1-839f-50da09e610a2", "title": "", "fullFile": "cypress/integration/SF/f-coupon/create-coupon.js", "file": "cypress/integration/SF/f-coupon/create-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6d600078-604e-4b7e-b741-33beae493d1d", "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": 38644, "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": "bdad3e9f-ac9a-4e1e-9b9f-626e46e44ba1", "parentUUID": "6d600078-604e-4b7e-b741-33beae493d1d", "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": 31848, "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": "631e273c-8608-44f4-8deb-c005a6c69633", "parentUUID": "6d600078-604e-4b7e-b741-33beae493d1d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bdad3e9f-ac9a-4e1e-9b9f-626e46e44ba1", "631e273c-8608-44f4-8deb-c005a6c69633" ], "failures": [], "pending": [], "skipped": [], "duration": 70492, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e7932bb7-3231-43d3-90d3-fc8c83d98cc4", "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": "f7ac2ed7-c304-4354-905d-a6792e18c924", "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": 38245, "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": "013e6760-9e9c-46af-8c29-fe3aed2295a6", "parentUUID": "f7ac2ed7-c304-4354-905d-a6792e18c924", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "013e6760-9e9c-46af-8c29-fe3aed2295a6" ], "failures": [], "pending": [], "skipped": [], "duration": 38245, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b3983cd7-ab6f-4b11-a97a-17024ebf3cca", "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": "33dae646-fca6-4655-b797-36da4baa423e", "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": 125785, "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": "4216d4db-f723-471c-972c-1ca18d88d0df", "parentUUID": "33dae646-fca6-4655-b797-36da4baa423e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4216d4db-f723-471c-972c-1ca18d88d0df" ], "failures": [], "pending": [], "skipped": [], "duration": 125785, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "265481e4-b314-492a-89b7-e4cbcad765cf", "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": "6a20fd14-ec22-414f-a23c-f5d7b610229e", "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": 122653, "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": "69da0953-955d-42d9-9547-bdef571d4c06", "parentUUID": "6a20fd14-ec22-414f-a23c-f5d7b610229e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "69da0953-955d-42d9-9547-bdef571d4c06" ], "failures": [], "pending": [], "skipped": [], "duration": 122653, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "43057f8c-d756-4b60-9e3a-50b19e9d473d", "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": "3a4d3d50-5e83-4db0-b700-c7513f266fba", "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": 48255, "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": "83900a93-a15b-4428-8623-794000db5d05", "parentUUID": "3a4d3d50-5e83-4db0-b700-c7513f266fba", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "83900a93-a15b-4428-8623-794000db5d05" ], "failures": [], "pending": [], "skipped": [], "duration": 48255, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "eecfe251-f347-4cb2-8aa7-b7aed764270a", "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": "a322081e-c2f1-4e58-abc1-98d76922381e", "title": "Delete a customer", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Should delete customers", "fullTitle": "Delete a customer Should delete customers", "timedOut": null, "duration": 204319, "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": "1eecab73-6f87-4551-9e51-dcf6712e396a", "parentUUID": "a322081e-c2f1-4e58-abc1-98d76922381e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1eecab73-6f87-4551-9e51-dcf6712e396a" ], "failures": [], "pending": [], "skipped": [], "duration": 204319, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "61090a07-0a4e-4255-8886-722a71e13675", "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": "ae53f6b8-7a99-415d-9290-3825c3880c4d", "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": 41761, "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": "02c291fe-dd8a-41d7-aae5-dac529f226d7", "parentUUID": "ae53f6b8-7a99-415d-9290-3825c3880c4d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "02c291fe-dd8a-41d7-aae5-dac529f226d7" ], "failures": [], "pending": [], "skipped": [], "duration": 41761, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0e15e199-0a6e-44d4-90e6-d5ce1aeb33a3", "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": "7d76013e-7fcf-4e4e-a2ac-287b69c345b1", "title": "Clear Selections", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Unselect all selected entries", "fullTitle": "Clear Selections Unselect all selected entries", "timedOut": null, "duration": 27229, "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": "b402ba3d-f78b-4eb0-b2ae-3442670339a6", "parentUUID": "7d76013e-7fcf-4e4e-a2ac-287b69c345b1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b402ba3d-f78b-4eb0-b2ae-3442670339a6" ], "failures": [], "pending": [], "skipped": [], "duration": 27229, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "25b8b064-b8e9-4125-a069-97897a50928c", "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": "1d782ed3-41c2-45e3-b466-935132d47a94", "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": 56676, "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": "a2df4124-188d-4b3e-aa40-cf06d57684e3", "parentUUID": "1d782ed3-41c2-45e3-b466-935132d47a94", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a2df4124-188d-4b3e-aa40-cf06d57684e3" ], "failures": [], "pending": [], "skipped": [], "duration": 56676, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fb8e8391-df49-4fd4-ac47-da1e4d25e4ec", "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": "d0425743-d6d2-4ced-b127-b7138006ebcf", "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": 126175, "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": "be6c0f31-20db-4722-8613-2d681123229d", "parentUUID": "d0425743-d6d2-4ced-b127-b7138006ebcf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "be6c0f31-20db-4722-8613-2d681123229d" ], "failures": [], "pending": [], "skipped": [], "duration": 126175, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "976d974c-dcb2-4df4-a1c4-92f83d79e488", "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": "8f739ccb-347e-4006-b1fd-43befd4538d1", "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": 126630, "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": "131c4f51-de8e-4d13-b386-33544f4c541f", "parentUUID": "8f739ccb-347e-4006-b1fd-43befd4538d1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "131c4f51-de8e-4d13-b386-33544f4c541f" ], "failures": [], "pending": [], "skipped": [], "duration": 126630, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "29d986c4-19a0-4f76-acf0-e6c0eb0d5085", "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": "1d4506d1-0903-42da-935d-219bfdff5a19", "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": 126726, "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": "168ca3d7-0a2e-436b-9d4f-b7e2ad4109ec", "parentUUID": "1d4506d1-0903-42da-935d-219bfdff5a19", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "168ca3d7-0a2e-436b-9d4f-b7e2ad4109ec" ], "failures": [], "pending": [], "skipped": [], "duration": 126726, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3ce67c9f-7821-4432-bcfd-f5bfc170e2dc", "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": "aa1da643-667c-4124-bddd-50998183417c", "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": 269275, "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(30000);\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(30000);\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": "2f6526af-7f84-4263-86cc-36bbba38bc59", "parentUUID": "aa1da643-667c-4124-bddd-50998183417c", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "2f6526af-7f84-4263-86cc-36bbba38bc59" ], "pending": [], "skipped": [], "duration": 269275, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "425da49b-347b-46a5-8d27-4b981c893d63", "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": "fcb2b6bc-e54b-4b8d-92d2-460ed1f0a8f1", "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": 126256, "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": "60760383-1442-4cb5-ab63-b4bf29e47b2a", "parentUUID": "fcb2b6bc-e54b-4b8d-92d2-460ed1f0a8f1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "60760383-1442-4cb5-ab63-b4bf29e47b2a" ], "failures": [], "pending": [], "skipped": [], "duration": 126256, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f46045b1-a70c-486a-9834-bd3d4df0cbb6", "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": "58be4569-de7b-4416-b6d5-b9c73170f8ca", "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": 104050, "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": "00a59b3c-beff-4091-abaf-6c62c601fc1a", "parentUUID": "58be4569-de7b-4416-b6d5-b9c73170f8ca", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "00a59b3c-beff-4091-abaf-6c62c601fc1a" ], "failures": [], "pending": [], "skipped": [], "duration": 104050, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e9a87b44-36ab-4aa0-8a36-8432223de777", "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": "c4fbf117-5666-4001-83a2-b5966909e342", "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": 104539, "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": "3a55b610-d419-45dd-8dcb-631d0db085a3", "parentUUID": "c4fbf117-5666-4001-83a2-b5966909e342", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3a55b610-d419-45dd-8dcb-631d0db085a3" ], "failures": [], "pending": [], "skipped": [], "duration": 104539, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a9b06c86-474b-4d9d-8233-222be72c4276", "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": "264f2604-b535-4abc-85b1-e14bcd2991a3", "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": 25446, "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": "3fe12e92-8d6d-4807-aaec-ce8efa95285e", "parentUUID": "264f2604-b535-4abc-85b1-e14bcd2991a3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3fe12e92-8d6d-4807-aaec-ce8efa95285e" ], "failures": [], "pending": [], "skipped": [], "duration": 25446, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ac0d9312-0193-44a8-be76-f86db6ac66d3", "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": "5c5bf2b1-4e9c-4ddc-b363-a4fa550bfcdf", "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": 38470, "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": "0570d0f0-8bda-419c-975d-7e1ef3b38959", "parentUUID": "5c5bf2b1-4e9c-4ddc-b363-a4fa550bfcdf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0570d0f0-8bda-419c-975d-7e1ef3b38959" ], "failures": [], "pending": [], "skipped": [], "duration": 38470, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "dab8ad7f-56e9-47de-a505-2f849d242cd6", "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": "b74792ca-e847-4b7a-a5cd-5d99a2974572", "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": 127144, "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": "03d43e33-60fe-4534-8fba-821f8e9eec99", "parentUUID": "b74792ca-e847-4b7a-a5cd-5d99a2974572", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "03d43e33-60fe-4534-8fba-821f8e9eec99" ], "failures": [], "pending": [], "skipped": [], "duration": 127144, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "03630aec-59f6-4efc-ac50-6e36ed09a77e", "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": "cd7e9a23-a4c0-4a26-a64a-c3a74dcb5208", "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": 126302, "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": "401eb7fe-f27e-413d-bb39-3596f3368342", "parentUUID": "cd7e9a23-a4c0-4a26-a64a-c3a74dcb5208", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "401eb7fe-f27e-413d-bb39-3596f3368342" ], "failures": [], "pending": [], "skipped": [], "duration": 126302, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b89439a3-cb5e-4667-ab1b-56b2172a15d6", "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": "3a2fe2f6-7641-4411-b3a8-d093a7d70f35", "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": 112176, "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": "56f4efbb-4ebf-4575-b47a-c7f86a6e42f3", "parentUUID": "3a2fe2f6-7641-4411-b3a8-d093a7d70f35", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "56f4efbb-4ebf-4575-b47a-c7f86a6e42f3" ], "failures": [], "pending": [], "skipped": [], "duration": 112176, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0d20c14f-ec4f-47ec-99fc-9e3a09996645", "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": "352f1867-ef0a-44bb-b90d-7130d59a6f94", "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": 126984, "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": "a3600e4f-e18d-45c6-8aeb-8a2f421baec1", "parentUUID": "352f1867-ef0a-44bb-b90d-7130d59a6f94", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a3600e4f-e18d-45c6-8aeb-8a2f421baec1" ], "failures": [], "pending": [], "skipped": [], "duration": 126984, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6c215c2f-2043-4b8b-9c96-22e9078297b8", "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": "865884d6-5f66-40b2-b654-e660fdf21852", "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": 43923, "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('#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.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.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.get('#select2-tax_company-input-container').click({\n force: true\n });\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.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-tax_company-input-container').click({\n force: true\n });\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.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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Techlo' within the element: <li.select2-results__option.loading-results> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Techlo' within the element: <li.select2-results__option.loading-results> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/22filter_by_TaxCompany.spec.js:150:61)", "diff": null }, "uuid": "d438ca1e-b888-438a-862d-aebd758e2715", "parentUUID": "865884d6-5f66-40b2-b654-e660fdf21852", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "d438ca1e-b888-438a-862d-aebd758e2715" ], "pending": [], "skipped": [], "duration": 43923, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "018d438f-a0fc-473c-b237-4583b2eaa205", "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": "fe45a211-4331-4acb-8a80-9b4a229aed64", "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": 125965, "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": "5433026c-4aa4-4887-9eef-467cf55b1bab", "parentUUID": "fe45a211-4331-4acb-8a80-9b4a229aed64", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5433026c-4aa4-4887-9eef-467cf55b1bab" ], "failures": [], "pending": [], "skipped": [], "duration": 125965, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0364b667-967d-49cf-9d2f-8b1f3fa7a438", "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": "6ff1e155-e336-4cbc-9aa9-22be7b33a377", "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": 60410, "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": "bd7528f9-9f48-4c08-9c2e-9f701fa8d9a3", "parentUUID": "6ff1e155-e336-4cbc-9aa9-22be7b33a377", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bd7528f9-9f48-4c08-9c2e-9f701fa8d9a3" ], "failures": [], "pending": [], "skipped": [], "duration": 60410, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "979297f9-121a-4607-b4a3-084ad0231ab2", "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": "febee727-1ba2-4484-b7e5-3f83bbfc1f83", "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": 126401, "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": "e5027a50-3511-473c-85bf-42d99c02420b", "parentUUID": "febee727-1ba2-4484-b7e5-3f83bbfc1f83", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e5027a50-3511-473c-85bf-42d99c02420b" ], "failures": [], "pending": [], "skipped": [], "duration": 126401, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6d1c714e-3ead-4cb4-aa3a-e2b7603e44d5", "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": "3933af5a-747d-45a2-bec2-ea9ff4153540", "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": 40005, "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": "46e10f06-a8d0-45be-86dc-4cd1c2e23c48", "parentUUID": "3933af5a-747d-45a2-bec2-ea9ff4153540", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "46e10f06-a8d0-45be-86dc-4cd1c2e23c48" ], "failures": [], "pending": [], "skipped": [], "duration": 40005, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b99376fc-e266-46b4-ae73-a20598d44655", "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": "75600fc6-89f5-4494-82b1-05f6d5bdaefa", "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": 126600, "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": "2d1b2857-f3f9-4eef-bb50-f1425912db49", "parentUUID": "75600fc6-89f5-4494-82b1-05f6d5bdaefa", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2d1b2857-f3f9-4eef-bb50-f1425912db49" ], "failures": [], "pending": [], "skipped": [], "duration": 126600, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "332b8797-445d-43df-a44b-cbbd2f3730a7", "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": "a197f2ec-7877-4c72-94b0-40400f56fc35", "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": 128494, "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": "10f15e9f-6375-4e0f-bf27-381c958e8c50", "parentUUID": "a197f2ec-7877-4c72-94b0-40400f56fc35", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "10f15e9f-6375-4e0f-bf27-381c958e8c50" ], "failures": [], "pending": [], "skipped": [], "duration": 128494, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cc5d1056-f00a-4040-9ab6-a5325dfb6b7c", "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": "72c49c18-4b75-4c21-a8f3-1bd4b1dbd2e8", "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": 129825, "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": "9e65384f-ebc1-4a3b-8582-30e5b1349de0", "parentUUID": "72c49c18-4b75-4c21-a8f3-1bd4b1dbd2e8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9e65384f-ebc1-4a3b-8582-30e5b1349de0" ], "failures": [], "pending": [], "skipped": [], "duration": 129825, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "614151c2-d9fa-46ed-84c3-2ecb61ec0680", "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": "b69122c5-782e-4489-84de-1b67cb401a18", "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": 128963, "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": "cd92b039-c5b0-4bc4-a6f4-40c2e75d287b", "parentUUID": "b69122c5-782e-4489-84de-1b67cb401a18", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "cd92b039-c5b0-4bc4-a6f4-40c2e75d287b" ], "failures": [], "pending": [], "skipped": [], "duration": 128963, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cdfbaf45-949a-48b5-8243-3494b3ad744b", "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": "d2c6280f-d981-4756-ba22-e77d77ad5aff", "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": 128478, "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": "7fe29f63-b62f-481d-9504-4e16e1757d21", "parentUUID": "d2c6280f-d981-4756-ba22-e77d77ad5aff", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7fe29f63-b62f-481d-9504-4e16e1757d21" ], "failures": [], "pending": [], "skipped": [], "duration": 128478, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "387623cf-cabf-4672-aa50-b2330ef063e0", "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": "34acae95-ce54-4eb8-a085-cdabc7d89b39", "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": 39013, "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": "6d4b1d7e-3a68-4074-ac4a-f181c22d4474", "parentUUID": "34acae95-ce54-4eb8-a085-cdabc7d89b39", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6d4b1d7e-3a68-4074-ac4a-f181c22d4474" ], "failures": [], "pending": [], "skipped": [], "duration": 39013, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3ead1b1a-bf19-4c70-9299-14c229557098", "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": "d17f617b-2c3f-4175-a463-3644cc3890fa", "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": 126585, "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": "79fafaa5-338e-46ce-9dcf-9d3be8387cc1", "parentUUID": "d17f617b-2c3f-4175-a463-3644cc3890fa", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "79fafaa5-338e-46ce-9dcf-9d3be8387cc1" ], "failures": [], "pending": [], "skipped": [], "duration": 126585, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4d037519-9141-425c-bd9b-d19b70321149", "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": "03bd941e-d413-4167-88cc-f7fcc51f6dde", "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": 127929, "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": "54ab0609-f315-4d92-82da-ec5dcce63d53", "parentUUID": "03bd941e-d413-4167-88cc-f7fcc51f6dde", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "54ab0609-f315-4d92-82da-ec5dcce63d53" ], "failures": [], "pending": [], "skipped": [], "duration": 127929, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0e6f7457-f92e-4219-a86d-eb2c7bfaf336", "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": "14641700-cc4d-414d-9c78-40bf6f847f97", "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": 125823, "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": "3cfd081d-4ee3-434c-8dc7-3073bc717a8d", "parentUUID": "14641700-cc4d-414d-9c78-40bf6f847f97", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3cfd081d-4ee3-434c-8dc7-3073bc717a8d" ], "failures": [], "pending": [], "skipped": [], "duration": 125823, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c2462814-d93a-48eb-b5c5-42cacffb4983", "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": "7b814a23-1578-4729-961b-1f3773f066fd", "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": 126899, "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": "ad6d5b62-f72c-4249-8f73-7985300dd24b", "parentUUID": "7b814a23-1578-4729-961b-1f3773f066fd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ad6d5b62-f72c-4249-8f73-7985300dd24b" ], "failures": [], "pending": [], "skipped": [], "duration": 126899, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "12cc8f81-cfe6-4bf2-9143-237b913ae61c", "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": "a1f2133c-86d6-43b2-8563-fd2cb916d68d", "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": 137079, "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": "15be23b8-117b-49c1-8df4-f3bf0f1f9c34", "parentUUID": "a1f2133c-86d6-43b2-8563-fd2cb916d68d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "15be23b8-117b-49c1-8df4-f3bf0f1f9c34" ], "failures": [], "pending": [], "skipped": [], "duration": 137079, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "72c3b1ef-4ab5-4af9-90d0-54b893199216", "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": "3089e0e2-7347-42a1-b147-f6b4c6ac75d6", "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": 70343, "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": "992bfbac-7064-4260-8f80-b574710b982e", "parentUUID": "3089e0e2-7347-42a1-b147-f6b4c6ac75d6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "992bfbac-7064-4260-8f80-b574710b982e" ], "failures": [], "pending": [], "skipped": [], "duration": 70343, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4f0e470b-8fd3-42c5-9126-93bd7786e419", "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": "ab90dca6-9263-482f-bf88-171420a2acb2", "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": 66595, "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": "b5be43ff-d158-41dc-b1df-2255a9ddf7ba", "parentUUID": "ab90dca6-9263-482f-bf88-171420a2acb2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b5be43ff-d158-41dc-b1df-2255a9ddf7ba" ], "failures": [], "pending": [], "skipped": [], "duration": 66595, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d1efe33d-583d-47ce-b63a-c76aaafab9f3", "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": "c0edb12a-fba9-4fe6-ae50-a7c5bcb22020", "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": 71362, "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": "8379aec1-ae5e-4821-9c60-404a17b8e75a", "parentUUID": "c0edb12a-fba9-4fe6-ae50-a7c5bcb22020", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8379aec1-ae5e-4821-9c60-404a17b8e75a" ], "failures": [], "pending": [], "skipped": [], "duration": 71362, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1f2ffa39-41c6-4341-a2af-63582fcb2f42", "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": "1464ab15-3942-4f0e-90c0-5000bd7c3d4b", "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": 57685, "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).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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at addPaymentMethod (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js:143:36)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js:129:9)", "diff": null }, "uuid": "5a90acbd-67aa-41b9-81b8-691888bf4f58", "parentUUID": "1464ab15-3942-4f0e-90c0-5000bd7c3d4b", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "5a90acbd-67aa-41b9-81b8-691888bf4f58" ], "pending": [], "skipped": [], "duration": 57685, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8478fa30-9e49-4d8a-836c-35094eb1744a", "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": "4d23a36e-f782-4d63-9159-a1a6a35cddf1", "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": 126076, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_credit-card-tab`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_credit-card-tab`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/42Add_Public_Payment_Creditcard_Authorizenet.spec.js:193:8)", "diff": null }, "uuid": "7a5e9fda-65b2-4168-8198-31bee7808ef4", "parentUUID": "4d23a36e-f782-4d63-9159-a1a6a35cddf1", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "7a5e9fda-65b2-4168-8198-31bee7808ef4" ], "pending": [], "skipped": [], "duration": 126076, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "75d51fa4-d6bc-48b4-808c-8e32e93c441d", "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": "cae5708c-e7df-4b3b-b8b3-af857f55d83c", "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": 126926, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_ach-tab`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_ach-tab`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/43Add_Public_Payment_BankTransfer_Authorizenet.spec.js:193:8)", "diff": null }, "uuid": "41daf2da-78e6-4981-8faa-2d7854065e31", "parentUUID": "cae5708c-e7df-4b3b-b8b3-af857f55d83c", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "41daf2da-78e6-4981-8faa-2d7854065e31" ], "pending": [], "skipped": [], "duration": 126926, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cb4bfe31-76bf-4a98-8590-b374b9eea39e", "title": "", "fullFile": "cypress/integration/SF/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/SF/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "27a66475-3f92-4f79-b8cb-9ed6e1e092b9", "title": "Add payment method using public payment method page for credit card using PayPal Pro", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add cardit card for paypal pro Payment Method using Add Public Payment method", "fullTitle": "Add payment method using public payment method page for credit card using PayPal Pro Add cardit card for paypal pro Payment Method using Add Public Payment method", "timedOut": null, "duration": 124105, "state": "failed", "speed": null, "pass": false, "fail": true, "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 Pro').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(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 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').clear().type('5110920230646270');\ncy.get('#paymentInformationCard__expiryMonth').select('12', {\n force: true\n}).should('have.value', '12');\ncy.get('#paymentInformationCard__expiryYear').select('2024', {\n force: true\n}).should('have.value', '2024');\ncy.get('#paymentInformationCard__Cvv').clear().type('250');\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 (****6270) is saved successfully.').should('be.visible');", "err": { "message": "CypressError: `cy.type()` failed because it targeted a disabled element.\n\nThe element typed into was:\n\n > <input type=\"text\" placeholder=\"Card Number\" class=\"form-control hppDesignerTarget-genericInpRad\" id=\"paymentInformationCard__cardNumber\" name=\"card_number\">\n\nEnsure the element does not have an attribute named `disabled` before typing into it.\n\nhttps://on.cypress.io/type", "estack": "CypressError: `cy.type()` failed because it targeted a disabled element.\n\nThe element typed into was:\n\n > <input type=\"text\" placeholder=\"Card Number\" class=\"form-control hppDesignerTarget-genericInpRad\" id=\"paymentInformationCard__cardNumber\" name=\"card_number\">\n\nEnsure the element does not have an attribute named `disabled` before typing into it.\n\nhttps://on.cypress.io/type\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:154021:27\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at _drainQueueStep (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:5291:12)\n at _drainQueue (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:5284:9)\n at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:5300:5)\n at Async.drainQueues (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:5170:14)\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js:195:51)", "diff": null }, "uuid": "23ae9157-20e6-4f1e-8ebe-5d4988a04b28", "parentUUID": "27a66475-3f92-4f79-b8cb-9ed6e1e092b9", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "23ae9157-20e6-4f1e-8ebe-5d4988a04b28" ], "pending": [], "skipped": [], "duration": 124105, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e174e934-cd48-4261-9934-9ebaaa8f2c97", "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": "f727b36e-6e5e-4084-8408-a83c7a6180f2", "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": 156854, "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": "6c11022c-0412-46cf-bcba-57ef333ee34c", "parentUUID": "f727b36e-6e5e-4084-8408-a83c7a6180f2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6c11022c-0412-46cf-bcba-57ef333ee34c" ], "failures": [], "pending": [], "skipped": [], "duration": 156854, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9519fe8a-9e55-465d-b24f-48a485af1bad", "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": "83b8af8f-0cb1-4032-9ce8-b8da4f998274", "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": 194071, "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": "034cd309-2961-4f48-a6b8-c17c2d068bd3", "parentUUID": "83b8af8f-0cb1-4032-9ce8-b8da4f998274", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "034cd309-2961-4f48-a6b8-c17c2d068bd3" ], "failures": [], "pending": [], "skipped": [], "duration": 194071, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "14ae1fed-8752-46e8-a85c-74e23d69c023", "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": "aba302d9-af76-4396-a280-dadc3a0cb256", "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": 146558, "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": "989e693b-19db-4fe2-96f2-69303b840d43", "parentUUID": "aba302d9-af76-4396-a280-dadc3a0cb256", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "989e693b-19db-4fe2-96f2-69303b840d43" ], "failures": [], "pending": [], "skipped": [], "duration": 146558, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c767653d-01e8-4203-88ba-81d39f0bb059", "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": "26726603-4936-4dc7-8bf8-dda8d5faa5dd", "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": 126264, "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": "c94e5a53-0934-4e90-ab25-1a51071644f3", "parentUUID": "26726603-4936-4dc7-8bf8-dda8d5faa5dd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c94e5a53-0934-4e90-ab25-1a51071644f3" ], "failures": [], "pending": [], "skipped": [], "duration": 126264, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9ea384a4-e1f9-460b-8406-c40d55154b40", "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": "f9547363-af9a-4025-93bb-089a6d084946", "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": 127874, "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": "15ef2671-daed-4e27-9f15-91036b308f8e", "parentUUID": "f9547363-af9a-4025-93bb-089a6d084946", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "15ef2671-daed-4e27-9f15-91036b308f8e" ], "failures": [], "pending": [], "skipped": [], "duration": 127874, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c805a142-20cd-4496-8119-8ac3a0f944f4", "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": "6cf8627f-de5a-4cf5-9a84-3922e1e56877", "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": 128112, "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('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": {}, "uuid": "3d5582d6-2dfc-442e-8cca-e740c003f5b5", "parentUUID": "6cf8627f-de5a-4cf5-9a84-3922e1e56877", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3d5582d6-2dfc-442e-8cca-e740c003f5b5" ], "failures": [], "pending": [], "skipped": [], "duration": 128112, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a648b3f1-980f-4e8b-bf7c-cdd457a0f180", "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": "d278f605-7635-46c8-a8a2-027c448f4db0", "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": 163008, "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('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": {}, "uuid": "e454cd8d-5bf5-45d2-9b79-ba587ba3efe2", "parentUUID": "d278f605-7635-46c8-a8a2-027c448f4db0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e454cd8d-5bf5-45d2-9b79-ba587ba3efe2" ], "failures": [], "pending": [], "skipped": [], "duration": 163008, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "09a414de-73bf-410f-ab28-cdfffd1e51de", "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": "5ccbd4cc-0eae-4329-9243-b29228e2bf86", "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": 157511, "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 }\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": {}, "uuid": "29574527-ec0d-43a5-b6e9-a46643b0b35c", "parentUUID": "5ccbd4cc-0eae-4329-9243-b29228e2bf86", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "29574527-ec0d-43a5-b6e9-a46643b0b35c" ], "failures": [], "pending": [], "skipped": [], "duration": 157511, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e8a7cfa7-dd38-4bb8-8f44-298e7b6e1901", "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": "c6a954fc-aac0-49b4-a2a9-8afcb842cdef", "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": 129038, "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": "41325be7-e268-4d46-8888-f5ae2eb0d175", "parentUUID": "c6a954fc-aac0-49b4-a2a9-8afcb842cdef", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "41325be7-e268-4d46-8888-f5ae2eb0d175" ], "failures": [], "pending": [], "skipped": [], "duration": 129038, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8c890ab5-9e30-49fc-8f4c-22b103f1bb03", "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": "c8ad31d4-ecab-40e1-83ae-c38d9709c3bb", "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": 1230225, "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": "294b0adc-3b1d-4c40-97bd-12b072340e83", "parentUUID": "c8ad31d4-ecab-40e1-83ae-c38d9709c3bb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "294b0adc-3b1d-4c40-97bd-12b072340e83" ], "failures": [], "pending": [], "skipped": [], "duration": 1230225, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0d6ff450-e684-44cc-9cf0-61d954d254b5", "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": "4deb2528-9fc5-4371-a438-abd02a4fec85", "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": 130208, "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('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": {}, "uuid": "c5346f6b-a675-444f-bde3-32b058c6e2c0", "parentUUID": "4deb2528-9fc5-4371-a438-abd02a4fec85", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c5346f6b-a675-444f-bde3-32b058c6e2c0" ], "failures": [], "pending": [], "skipped": [], "duration": 130208, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d1dcee3b-a9e9-4077-a6b6-8856f80133cb", "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": "0ae8d382-8ce9-4de9-9d55-e8871dde5358", "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": 164949, "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('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": {}, "uuid": "947e8f64-cd94-47c8-91af-2cb0d57020a9", "parentUUID": "0ae8d382-8ce9-4de9-9d55-e8871dde5358", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "947e8f64-cd94-47c8-91af-2cb0d57020a9" ], "failures": [], "pending": [], "skipped": [], "duration": 164949, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0dec369d-fc09-4f92-bac5-5d74916e6821", "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": "c184e208-da32-4c6f-bb54-ce3ab4d5ad92", "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": 158546, "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 });\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": {}, "uuid": "5f6acfb0-8ed9-4c8c-bc23-ac1aea5f71c5", "parentUUID": "c184e208-da32-4c6f-bb54-ce3ab4d5ad92", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5f6acfb0-8ed9-4c8c-bc23-ac1aea5f71c5" ], "failures": [], "pending": [], "skipped": [], "duration": 158546, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c32740ca-705d-4255-add6-9f38ea829cce", "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": "3d8a6410-18df-4d54-8809-f79cfdd276db", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Process Payment Make payment through Card", "timedOut": null, "duration": 83744, "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": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/59Process_Payment_Card.spec.js:190:44)", "diff": null }, "uuid": "a730cec3-5eea-4454-b480-1138e818fe97", "parentUUID": "3d8a6410-18df-4d54-8809-f79cfdd276db", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "a730cec3-5eea-4454-b480-1138e818fe97" ], "pending": [], "skipped": [], "duration": 83744, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "563e097f-5a8d-4895-b8ee-9ef5ee92fc59", "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": "6116496f-8cb0-42f6-a9a8-1c68b65d5c32", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Process Payment Make payment through eCheck", "timedOut": null, "duration": 87356, "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": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/60Process_Payment_eCheck.spec.js:190:44)", "diff": null }, "uuid": "734543a6-31cb-4358-84de-82c6d7a3976a", "parentUUID": "6116496f-8cb0-42f6-a9a8-1c68b65d5c32", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "734543a6-31cb-4358-84de-82c6d7a3976a" ], "pending": [], "skipped": [], "duration": 87356, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "150dedff-f19c-4aab-b1b8-3b7ca7f89cec", "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": "5a83c4bd-42a6-495c-9a76-a91331d1c57e", "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": 284014, "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('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('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: Timed out retrying: Expected to find element: `a[data-target=\"#approve-modal\"]`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `a[data-target=\"#approve-modal\"]`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/61Process_Payment_PayPal_Approve.spec.js:290:16)", "diff": null }, "uuid": "d7e17bbb-0022-48f6-beed-cfef6909011c", "parentUUID": "5a83c4bd-42a6-495c-9a76-a91331d1c57e", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "d7e17bbb-0022-48f6-beed-cfef6909011c" ], "pending": [], "skipped": [], "duration": 284014, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "642516dc-ea2f-4b92-bfe2-cf0b2b07f7d8", "title": "", "fullFile": "cypress/integration/SF/g-customer/62Process_Payment_PayPal_Decline.spec.js", "file": "cypress/integration/SF/g-customer/62Process_Payment_PayPal_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "05c52a3d-75fa-4ab5-b280-b26605dbf38b", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through PayPal and I Decline", "fullTitle": "Process Payment Make payment through PayPal and I Decline", "timedOut": null, "duration": 147585, "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('PayPal', {\n force: true\n });\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('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: Timed out retrying: Expected to find element: `a[data-target=\"#decline-modal\"]`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `a[data-target=\"#decline-modal\"]`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/62Process_Payment_PayPal_Decline.spec.js:241:16)", "diff": null }, "uuid": "db6997a5-e4f0-48c3-8d48-7da7aeeccde2", "parentUUID": "05c52a3d-75fa-4ab5-b280-b26605dbf38b", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "db6997a5-e4f0-48c3-8d48-7da7aeeccde2" ], "pending": [], "skipped": [], "duration": 147585, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fba83df0-d188-4e55-86de-50d193a4a351", "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": "9c18f08f-0043-4988-a7a5-243ed3da4c3f", "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": 60325, "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).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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at addPaymentMethod (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js:143:36)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js:129:9)", "diff": null }, "uuid": "00d90952-78b8-481f-ac48-e14a5d0c90cb", "parentUUID": "9c18f08f-0043-4988-a7a5-243ed3da4c3f", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "00d90952-78b8-481f-ac48-e14a5d0c90cb" ], "pending": [], "skipped": [], "duration": 60325, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "46f9a126-2f36-4f45-8374-8975f16569e6", "title": "", "fullFile": "cypress/integration/SF/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/SF/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "98de1839-1a35-4e03-91aa-4ab813b29bbe", "title": "Add Payment Method", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method with Credit Card using PayPal Pro", "fullTitle": "Add Payment Method Add Payment Method with Credit Card using PayPal Pro", "timedOut": null, "duration": 107545, "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).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": { "message": "AssertionError: Timed out retrying: expected '<i.fas.fa-times>' to have class 'fa-check'", "estack": "AssertionError: Timed out retrying: expected '<i.fas.fa-times>' to have class 'fa-check'\n at addPaymentMethod (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js:195:72)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js:112:9)", "diff": null }, "uuid": "b643231f-f24a-48de-8573-4ffeb438e970", "parentUUID": "98de1839-1a35-4e03-91aa-4ab813b29bbe", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "b643231f-f24a-48de-8573-4ffeb438e970" ], "pending": [], "skipped": [], "duration": 107545, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "74f70fef-4010-423f-9e98-e323b101222e", "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": "de14c164-3156-41a0-94be-c166ee951368", "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": 201580, "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": "b20bcfbd-b2d8-45f4-a6b0-144d4ee37752", "parentUUID": "de14c164-3156-41a0-94be-c166ee951368", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b20bcfbd-b2d8-45f4-a6b0-144d4ee37752" ], "failures": [], "pending": [], "skipped": [], "duration": 201580, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "aeb7c2c3-b10f-4c25-a2b2-40b5a2183893", "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": "2e042c77-16d8-4853-ab55-5197948b1a4e", "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": 197206, "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": "506701df-9b39-4bf3-9ef2-d9470e6cb6b6", "parentUUID": "2e042c77-16d8-4853-ab55-5197948b1a4e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "506701df-9b39-4bf3-9ef2-d9470e6cb6b6" ], "failures": [], "pending": [], "skipped": [], "duration": 197206, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "04b730c7-6ee2-4ff8-a774-b83071a177fa", "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": "bfb0b75a-fe5e-4024-ae0a-20b56c5a3389", "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": 186234, "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": "9f031421-dde5-400d-ab0b-b5d988548fea", "parentUUID": "bfb0b75a-fe5e-4024-ae0a-20b56c5a3389", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9f031421-dde5-400d-ab0b-b5d988548fea" ], "failures": [], "pending": [], "skipped": [], "duration": 186234, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "47dc102a-a552-4c9d-aaf4-5fce50b05561", "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": "a3931090-7e62-42dc-91b0-c2ddc87aeb91", "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": 183810, "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": "8c193b41-6aa5-4c76-a21c-f88679348cd0", "parentUUID": "a3931090-7e62-42dc-91b0-c2ddc87aeb91", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8c193b41-6aa5-4c76-a21c-f88679348cd0" ], "failures": [], "pending": [], "skipped": [], "duration": 183810, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "909ec196-bcd0-4a92-a4ff-36da31d7a6c0", "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": "2e157ed3-ce8f-4013-b1cf-b701c48a25c0", "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": 174257, "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": "bd4d4811-f9d8-45be-bc2f-2c48b3fa2cef", "parentUUID": "2e157ed3-ce8f-4013-b1cf-b701c48a25c0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bd4d4811-f9d8-45be-bc2f-2c48b3fa2cef" ], "failures": [], "pending": [], "skipped": [], "duration": 174257, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0b600f45-d161-490e-8e14-f12e5484bcff", "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": "427b7289-6da5-4252-9748-7dd38450eb8d", "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": 104651, "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": "8d00a521-e456-45d1-b850-4e786039f7dc", "parentUUID": "427b7289-6da5-4252-9748-7dd38450eb8d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8d00a521-e456-45d1-b850-4e786039f7dc" ], "failures": [], "pending": [], "skipped": [], "duration": 104651, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2ef0dccd-77f4-4f1c-8380-44550324535f", "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": "5e319880-b002-4fd3-8378-159931e372c5", "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": 262772, "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": "34e282a6-1441-4ef8-9fe7-ae1d56a3c5ec", "parentUUID": "5e319880-b002-4fd3-8378-159931e372c5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "34e282a6-1441-4ef8-9fe7-ae1d56a3c5ec" ], "failures": [], "pending": [], "skipped": [], "duration": 262772, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8dd18d7d-59a0-4f64-a2a7-f71f0d803364", "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": "325e66ca-999f-4ecd-8569-7f4ad5ab9c96", "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": 261778, "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": "f276ec42-231d-4529-94e5-4445fc472f95", "parentUUID": "325e66ca-999f-4ecd-8569-7f4ad5ab9c96", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f276ec42-231d-4529-94e5-4445fc472f95" ], "failures": [], "pending": [], "skipped": [], "duration": 261778, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fdc9e28f-ad4b-489e-b05f-bafcf61f4833", "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": "ebc39489-ab03-4e7b-a59f-8d9a2e61a780", "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": 275227, "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": "56b33a2d-cb6f-4bf4-8c78-c18f60a7dc42", "parentUUID": "ebc39489-ab03-4e7b-a59f-8d9a2e61a780", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "56b33a2d-cb6f-4bf4-8c78-c18f60a7dc42" ], "failures": [], "pending": [], "skipped": [], "duration": 275227, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "601eaeea-bda8-45e0-9786-0eb71872825a", "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": "08e6f77a-2f0b-45b1-b35a-ee9da132d0db", "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": 272300, "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": "06b5de54-a51e-4527-8864-e3f9811ff085", "parentUUID": "08e6f77a-2f0b-45b1-b35a-ee9da132d0db", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "06b5de54-a51e-4527-8864-e3f9811ff085" ], "failures": [], "pending": [], "skipped": [], "duration": 272300, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6618944e-ac30-4544-a891-be53927ac64e", "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": "279b04ac-6bce-4606-82af-eb7b3bbb9d8c", "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": 281990, "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": "f390cfa3-fdbe-4282-8f07-6afa584eb655", "parentUUID": "279b04ac-6bce-4606-82af-eb7b3bbb9d8c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f390cfa3-fdbe-4282-8f07-6afa584eb655" ], "failures": [], "pending": [], "skipped": [], "duration": 281990, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f7082032-5372-4ce6-8fb6-2007195d8b09", "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": "1315d699-eb36-4336-a9d5-d69e0521d010", "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": 297531, "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": "ee6c1dd1-6eaf-478d-a8ff-632294b2e15e", "parentUUID": "1315d699-eb36-4336-a9d5-d69e0521d010", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ee6c1dd1-6eaf-478d-a8ff-632294b2e15e" ], "failures": [], "pending": [], "skipped": [], "duration": 297531, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ca4d718d-6a39-4d2e-983a-6ef122f0647f", "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": "05ead692-217d-4b41-b75d-b53ee5cbbec1", "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": 291290, "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: expected 14 to equal 15", "estack": "AssertionError: expected 14 to equal 15\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js:322:23)", "diff": "- 14\n+ 15\n" }, "uuid": "33fac1bc-f8e2-484b-a887-d000a5c686ab", "parentUUID": "05ead692-217d-4b41-b75d-b53ee5cbbec1", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "33fac1bc-f8e2-484b-a887-d000a5c686ab" ], "pending": [], "skipped": [], "duration": 291290, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "62661900-4b58-4d63-914a-5dc58f769e8d", "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": "fcec6efc-4067-4161-a260-a31d81c719e1", "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": 150971, "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": "e158ed37-3c4a-4d1f-b6f3-7bf205db3e64", "parentUUID": "fcec6efc-4067-4161-a260-a31d81c719e1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e158ed37-3c4a-4d1f-b6f3-7bf205db3e64" ], "failures": [], "pending": [], "skipped": [], "duration": 150971, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a1cf8d47-0649-47dd-a9a5-b72a65dbde8a", "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": "33eca592-b0f5-4b90-893c-a386ac9cdd06", "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": 149296, "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": "4f462c03-ebdf-4240-b997-5f860f427b59", "parentUUID": "33eca592-b0f5-4b90-893c-a386ac9cdd06", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4f462c03-ebdf-4240-b997-5f860f427b59" ], "failures": [], "pending": [], "skipped": [], "duration": 149296, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8d2f5a67-5e07-4b22-8fa6-1c3262f210bf", "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": "69ab92dc-dcab-4568-be22-a9151d9befff", "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": 133474, "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": "d29942de-6148-44e7-a940-d841f3a1e787", "parentUUID": "69ab92dc-dcab-4568-be22-a9151d9befff", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d29942de-6148-44e7-a940-d841f3a1e787" ], "failures": [], "pending": [], "skipped": [], "duration": 133474, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e1cd4e56-5563-4f7e-8c97-457a8ed12b96", "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": "45aab2b9-f1b7-4913-b606-a4ed87e1a3ca", "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": 137242, "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": "03846479-c257-4d57-897d-b140355369a8", "parentUUID": "45aab2b9-f1b7-4913-b606-a4ed87e1a3ca", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "03846479-c257-4d57-897d-b140355369a8" ], "failures": [], "pending": [], "skipped": [], "duration": 137242, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "363a5640-87c6-437d-8eac-d8c0d9762251", "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": "0cad0681-8c76-4d3e-ad98-67e251f54a10", "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": 141660, "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": "7b62d648-c93d-4be3-ab26-48aaa860a5bc", "parentUUID": "0cad0681-8c76-4d3e-ad98-67e251f54a10", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "7b62d648-c93d-4be3-ab26-48aaa860a5bc" ], "pending": [], "skipped": [], "duration": 141660, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4e3a36da-b3f5-4d97-bb4b-31391c59709b", "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": "9e49cbaa-2491-468e-b7bc-72bb5fd3eb2a", "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": 148847, "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": "68b560c8-cc0d-4a94-b9b0-5443223d3b88", "parentUUID": "9e49cbaa-2491-468e-b7bc-72bb5fd3eb2a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "68b560c8-cc0d-4a94-b9b0-5443223d3b88" ], "failures": [], "pending": [], "skipped": [], "duration": 148847, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e448e471-868b-44d8-aae3-6215aac4f0d5", "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": "9456b263-1d9f-4862-8538-573ae08d9baf", "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": 153132, "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": "888f83cb-452a-4e5e-88dd-537a1b8bbaca", "parentUUID": "9456b263-1d9f-4862-8538-573ae08d9baf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "888f83cb-452a-4e5e-88dd-537a1b8bbaca" ], "failures": [], "pending": [], "skipped": [], "duration": 153132, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2a099e69-eb12-438d-a0b5-eb29e4a44429", "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": "d0bac29f-2cb9-4ff2-b8d6-1dfd4e3a764c", "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": 150113, "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": "e615457c-9292-4f60-80ef-4d7f61aa148d", "parentUUID": "d0bac29f-2cb9-4ff2-b8d6-1dfd4e3a764c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e615457c-9292-4f60-80ef-4d7f61aa148d" ], "failures": [], "pending": [], "skipped": [], "duration": 150113, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "126dfe41-4d1d-4206-959f-d47f96951c54", "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": "303e4dac-40d8-43ae-a788-6983cbfeb8be", "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": 123252, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Customers' but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Customers' but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/h-order/01-create_order.spec.js:216:12)", "diff": null }, "uuid": "d671a9e8-7a95-4a8e-bfd0-cb891476c234", "parentUUID": "303e4dac-40d8-43ae-a788-6983cbfeb8be", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "d671a9e8-7a95-4a8e-bfd0-cb891476c234" ], "pending": [], "skipped": [], "duration": 123252, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "83f4baad-0782-4876-a7bf-ec1ecbdeaf50", "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": "1ff25cf9-aa93-4bcc-a06e-b94d8f11442e", "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": 170661, "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": "525cb8c5-7870-4726-8c64-c3b8f5ab3861", "parentUUID": "1ff25cf9-aa93-4bcc-a06e-b94d8f11442e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "525cb8c5-7870-4726-8c64-c3b8f5ab3861" ], "failures": [], "pending": [], "skipped": [], "duration": 170661, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ec5c88c7-66db-458f-96fc-47e252ef13b5", "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": "c5ca39b9-321b-4bd1-a565-257afdb97c98", "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": 166688, "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": "c329d1a1-4c84-436a-bdb9-db00516a2cdd", "parentUUID": "c5ca39b9-321b-4bd1-a565-257afdb97c98", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c329d1a1-4c84-436a-bdb9-db00516a2cdd" ], "failures": [], "pending": [], "skipped": [], "duration": 166688, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "564efc90-7f41-4bd4-81d3-3e317595736a", "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": "b4560d86-a9f3-4891-b223-f782a5533caa", "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": 176778, "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": "458f3009-ed43-4cab-90ae-55edf8992554", "parentUUID": "b4560d86-a9f3-4891-b223-f782a5533caa", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "458f3009-ed43-4cab-90ae-55edf8992554" ], "failures": [], "pending": [], "skipped": [], "duration": 176778, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7f407b53-6e9e-4fae-bb24-557b0fc61469", "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": "9f24b247-22b2-4c2c-a1fb-3c1153a166b0", "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": 69469, "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": "5e1f424c-d89d-44ed-9d7d-e5789c4c8e65", "parentUUID": "9f24b247-22b2-4c2c-a1fb-3c1153a166b0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5e1f424c-d89d-44ed-9d7d-e5789c4c8e65" ], "failures": [], "pending": [], "skipped": [], "duration": 69469, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1e5418c3-fbda-4ad6-b0a8-5994e9b3c62b", "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": "7bac8cf4-36c0-41ce-9656-e070d5787b18", "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": 266233, "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": "705a507c-8323-4021-91d5-c891df170915", "parentUUID": "7bac8cf4-36c0-41ce-9656-e070d5787b18", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "705a507c-8323-4021-91d5-c891df170915" ], "failures": [], "pending": [], "skipped": [], "duration": 266233, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "bc98934e-0fa2-42bf-8914-0390b40e1c6f", "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": "e3b4229b-8af2-45d9-a347-569929d11aa3", "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": 293297, "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": "e6490334-d083-4e09-9e00-1494a6fd7528", "parentUUID": "e3b4229b-8af2-45d9-a347-569929d11aa3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e6490334-d083-4e09-9e00-1494a6fd7528" ], "failures": [], "pending": [], "skipped": [], "duration": 293297, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5abf790b-2766-49a4-89bd-f14953ef17e4", "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": "100b6498-7103-4634-b09d-4286e544ab1b", "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": 289585, "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": "73a8bcbb-2435-4deb-8cf3-422384552ff3", "parentUUID": "100b6498-7103-4634-b09d-4286e544ab1b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "73a8bcbb-2435-4deb-8cf3-422384552ff3" ], "failures": [], "pending": [], "skipped": [], "duration": 289585, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c18f7fb4-a7a2-4cc7-a7b4-02617ef6c719", "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": "a806101e-2f19-4fef-a861-2339f28e801a", "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": 273844, "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": "a70368de-a3af-4c3f-8865-211307c59e07", "parentUUID": "a806101e-2f19-4fef-a861-2339f28e801a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a70368de-a3af-4c3f-8865-211307c59e07" ], "failures": [], "pending": [], "skipped": [], "duration": 273844, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6cc959e3-4130-4e6a-9125-6d5054d0cf4a", "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": "61bc9448-fac5-49b4-88c6-be01e6129e06", "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": 337138, "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": "a8814b62-0341-477f-a7df-dce35d95216e", "parentUUID": "61bc9448-fac5-49b4-88c6-be01e6129e06", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a8814b62-0341-477f-a7df-dce35d95216e" ], "failures": [], "pending": [], "skipped": [], "duration": 337138, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "719557de-dba4-48e0-9682-e7ded5352bda", "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": "a8278625-29cd-4917-b350-4637519c63f6", "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": 318639, "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": "54edab3e-64b5-467a-b955-d51988923e58", "parentUUID": "a8278625-29cd-4917-b350-4637519c63f6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "54edab3e-64b5-467a-b955-d51988923e58" ], "failures": [], "pending": [], "skipped": [], "duration": 318639, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1df6a806-75ed-4eeb-ab71-27554b07c7c1", "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": "9cfb0c08-692b-498d-a25e-c626afd7e397", "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": 322046, "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": "e5a52618-a24d-42a7-94ef-a6cdbfdd3497", "parentUUID": "9cfb0c08-692b-498d-a25e-c626afd7e397", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e5a52618-a24d-42a7-94ef-a6cdbfdd3497" ], "failures": [], "pending": [], "skipped": [], "duration": 322046, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "413dd73b-d8d5-46c2-8b47-39a632b61493", "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": "89153a8e-c3cb-44fd-84cc-aef73a37f755", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cash", "fullTitle": "Make Payment Make payment through Cash", "timedOut": null, "duration": 100378, "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": "7d3fcad9-8b41-4da4-8e48-7400f60047f7", "parentUUID": "89153a8e-c3cb-44fd-84cc-aef73a37f755", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7d3fcad9-8b41-4da4-8e48-7400f60047f7" ], "failures": [], "pending": [], "skipped": [], "duration": 100378, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "979bbe49-3d1d-485c-ae23-a5d350e20604", "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": "d495a6bb-2855-43ed-9246-4e0c639fffa6", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment writeoff", "fullTitle": "Make Payment Make payment writeoff", "timedOut": null, "duration": 99483, "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": "014f5e17-7686-42e8-a428-4b2dbcd37ce3", "parentUUID": "d495a6bb-2855-43ed-9246-4e0c639fffa6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "014f5e17-7686-42e8-a428-4b2dbcd37ce3" ], "failures": [], "pending": [], "skipped": [], "duration": 99483, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e7b5ea18-5ed7-4bde-bbf5-8692499e4497", "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": "b5a2abeb-d30d-4505-ae42-d6121e0c5de6", "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": 101618, "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": "a1875f18-73bf-4f5d-9585-1a60bad363c9", "parentUUID": "b5a2abeb-d30d-4505-ae42-d6121e0c5de6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a1875f18-73bf-4f5d-9585-1a60bad363c9" ], "failures": [], "pending": [], "skipped": [], "duration": 101618, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3fb24184-af44-45b8-8fd6-ceafd71f2ec4", "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": "64346bdc-1947-4dc6-8dfd-f1496ff0c48c", "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": 102382, "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": "acc6d73d-094d-4ee4-9044-db8835a57c4b", "parentUUID": "64346bdc-1947-4dc6-8dfd-f1496ff0c48c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "acc6d73d-094d-4ee4-9044-db8835a57c4b" ], "failures": [], "pending": [], "skipped": [], "duration": 102382, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5ed88992-6c89-4acc-9bd4-a07ed2ad8c56", "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": "2eed06a2-3afe-469c-a05d-f81f8dc57b4b", "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": 151191, "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": "1c19e24d-af23-473c-895a-4d5aa15ddfbe", "parentUUID": "2eed06a2-3afe-469c-a05d-f81f8dc57b4b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1c19e24d-af23-473c-895a-4d5aa15ddfbe" ], "failures": [], "pending": [], "skipped": [], "duration": 151191, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "736e60b5-8bef-4dbb-9e99-2c2059b30a06", "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": "1d00a9ce-b652-40a7-bd1c-38921bddb76b", "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": 152460, "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": "b85444e6-9415-4e4b-93c3-1b23edaedc71", "parentUUID": "1d00a9ce-b652-40a7-bd1c-38921bddb76b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b85444e6-9415-4e4b-93c3-1b23edaedc71" ], "failures": [], "pending": [], "skipped": [], "duration": 152460, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "bfa6d42c-5594-4bce-8060-b51fe0229fee", "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": "292ba252-e1e0-40ab-9141-a4fb55a765c9", "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": 104132, "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": "11480279-2ec7-4949-a6d4-90ead97fa697", "parentUUID": "292ba252-e1e0-40ab-9141-a4fb55a765c9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "11480279-2ec7-4949-a6d4-90ead97fa697" ], "failures": [], "pending": [], "skipped": [], "duration": 104132, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a0fc0761-9455-4ea5-af93-66f98e8c2767", "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": "d4e95008-6a6f-429e-b61d-89edd8b8f0d8", "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": 154308, "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": "891cef59-ae5c-4f8b-8756-64c6e188cb4d", "parentUUID": "d4e95008-6a6f-429e-b61d-89edd8b8f0d8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "891cef59-ae5c-4f8b-8756-64c6e188cb4d" ], "failures": [], "pending": [], "skipped": [], "duration": 154308, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3039fea8-9acf-4769-8c97-ff45948556cb", "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": "00655654-651a-4dd6-9324-938cd5db61ae", "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": 152400, "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": "a2fbd8f6-e1b1-446b-8172-f0058a520b36", "parentUUID": "00655654-651a-4dd6-9324-938cd5db61ae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a2fbd8f6-e1b1-446b-8172-f0058a520b36" ], "failures": [], "pending": [], "skipped": [], "duration": 152400, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d6ecf8e4-9672-418a-b383-1b6f8e877039", "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": "4b8a0d66-a813-4699-aecc-c9cc31a5da14", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Make Payment Make payment through Card", "timedOut": null, "duration": 87252, "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.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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/10Make_Payment_Card.spec.js:257:42)", "diff": null }, "uuid": "df2fa3b3-5785-4613-b862-055f2f29dcab", "parentUUID": "4b8a0d66-a813-4699-aecc-c9cc31a5da14", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "df2fa3b3-5785-4613-b862-055f2f29dcab" ], "pending": [], "skipped": [], "duration": 87252, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2dc81fe1-9c16-469b-857a-3a2e79e8d0f6", "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": "b7819054-7ca6-4d4c-be40-a08e87b974f3", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Make Payment Make payment through eCheck", "timedOut": null, "duration": 91897, "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.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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/11Make_Payment_eCheck.spec.js:257:42)", "diff": null }, "uuid": "f7997a23-9f36-4b6c-80e0-bd62373e5904", "parentUUID": "b7819054-7ca6-4d4c-be40-a08e87b974f3", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "f7997a23-9f36-4b6c-80e0-bd62373e5904" ], "pending": [], "skipped": [], "duration": 91897, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "791f7762-ace8-4355-b665-de69c73cd279", "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": "d8c56cfd-15e5-472a-8e10-aa8472a865af", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through PayPal", "fullTitle": "Make Payment Make payment through PayPal", "timedOut": null, "duration": 117065, "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.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": { "message": "AssertionError: Timed out retrying: Expected to find element: `[data-target=\"#approve-modal\"]`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `[data-target=\"#approve-modal\"]`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/12Make_Payment_PayPal.spec.js:314:8)", "diff": null }, "uuid": "40466349-eff9-4471-b174-28c55bd44655", "parentUUID": "d8c56cfd-15e5-472a-8e10-aa8472a865af", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "40466349-eff9-4471-b174-28c55bd44655" ], "pending": [], "skipped": [], "duration": 117065, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "61b070a2-7007-4443-9871-8e26b7b153ef", "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": "b56c7ef1-17b0-4112-ab94-a28ffc5cacbd", "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": 157160, "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": "74dadff2-e9e5-43d2-b8f9-c36b948bf445", "parentUUID": "b56c7ef1-17b0-4112-ab94-a28ffc5cacbd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "74dadff2-e9e5-43d2-b8f9-c36b948bf445" ], "failures": [], "pending": [], "skipped": [], "duration": 157160, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e3bf4d92-6213-4c89-9013-4a990b5c22f3", "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": "7aedfab8-199e-46de-b048-50dd98827930", "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": 154719, "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": "d9dd6047-37b6-4a23-a1ec-60009201a3fc", "parentUUID": "7aedfab8-199e-46de-b048-50dd98827930", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d9dd6047-37b6-4a23-a1ec-60009201a3fc" ], "failures": [], "pending": [], "skipped": [], "duration": 154719, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b1ed631e-fdbd-47c9-912a-bc9dcb03bb86", "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": "54b3e6dc-0d8c-4532-8d87-59beddc04c12", "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": 133026, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_credit-card-tab`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_credit-card-tab`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/15Public_Checkout_CreditCard_AuthorizNet.spec.js:272:8)", "diff": null }, "uuid": "37df1de0-dbf4-4e26-8864-c9f534675e5b", "parentUUID": "54b3e6dc-0d8c-4532-8d87-59beddc04c12", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "37df1de0-dbf4-4e26-8864-c9f534675e5b" ], "pending": [], "skipped": [], "duration": 133026, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1a5e3363-5ec7-47ae-a206-a0ed23c6dd01", "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": "6505f48d-ba2a-40d2-a1f6-eca62732ea40", "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": 132784, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_ach-tab`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#sc_pcp-chk-payment_ach-tab`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js:272:8)", "diff": null }, "uuid": "0838ae04-c2ed-41be-b930-cf9f125586d7", "parentUUID": "6505f48d-ba2a-40d2-a1f6-eca62732ea40", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "0838ae04-c2ed-41be-b930-cf9f125586d7" ], "pending": [], "skipped": [], "duration": 132784, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9e031429-d277-4bf3-aa8d-36729b3d4aa4", "title": "", "fullFile": "cypress/integration/SF/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/SF/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "63407798-47fa-4de5-bea9-e047cfcbedfe", "title": "Public Checkout using PayPal Pro", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using credit card using PayPal Pro", "fullTitle": "Public Checkout using PayPal Pro Public checkout using credit card using PayPal Pro", "timedOut": null, "duration": 181199, "state": "failed", "speed": null, "pass": false, "fail": true, "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('PayPal Pro').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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Your invoice is paid successfully.' within the element: [ <h4.lead.m-0.text-danger>, 2 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Your invoice is paid successfully.' within the element: [ <h4.lead.m-0.text-danger>, 2 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js:293:68)", "diff": null }, "uuid": "1c6496e1-0c3e-44f0-9542-717998ce86be", "parentUUID": "63407798-47fa-4de5-bea9-e047cfcbedfe", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "1c6496e1-0c3e-44f0-9542-717998ce86be" ], "pending": [], "skipped": [], "duration": 181199, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "222c9810-6443-4507-952a-a297d87ce10a", "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": "f017fd7f-6b2f-4f65-9edf-9ff272b2d890", "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": 215096, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find content: 'Your invoice is paid successfully.' within the element: [ <h4.lead.m-0.text-danger>, 2 more... ] but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Your invoice is paid successfully.' within the element: [ <h4.lead.m-0.text-danger>, 2 more... ] but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/18Public_Checkout_CreditCard_Stripe.spec.js:334:68)", "diff": null }, "uuid": "53ebe6b8-b8ad-4fdd-9b09-cd3d88443971", "parentUUID": "f017fd7f-6b2f-4f65-9edf-9ff272b2d890", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "53ebe6b8-b8ad-4fdd-9b09-cd3d88443971" ], "pending": [], "skipped": [], "duration": 215096, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "96d03b42-71dd-4e95-8411-f1240972b7c7", "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": "30e1d851-f09f-49ec-9d3b-f5abca9c2cd0", "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": 130272, "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('[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": { "message": "AssertionError: expected 3 to equal 2", "estack": "AssertionError: expected 3 to equal 2\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js:190:32)", "diff": "- 3\n+ 2\n" }, "uuid": "b6ea047b-9b7c-449e-a14e-65f6bbb9e55a", "parentUUID": "30e1d851-f09f-49ec-9d3b-f5abca9c2cd0", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "b6ea047b-9b7c-449e-a14e-65f6bbb9e55a" ], "pending": [], "skipped": [], "duration": 130272, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "40d3e571-4b93-4b5c-8bd3-f39fdfd0c5de", "title": "", "fullFile": "cypress/integration/SF/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js", "file": "cypress/integration/SF/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d0bc8038-b557-4924-aa1b-8750f8eed75f", "title": "Public Checkout using PayPal Express Checkout", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Public checkout using PayPal Express Checkout and I decline", "fullTitle": "Public Checkout using PayPal Express Checkout Public checkout using PayPal Express Checkout and I decline", "timedOut": null, "duration": 129909, "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('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": { "message": "AssertionError: expected 3 to equal 2", "estack": "AssertionError: expected 3 to equal 2\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js:190:32)", "diff": "- 3\n+ 2\n" }, "uuid": "b716ad01-8aa6-461b-a617-33db9e986e81", "parentUUID": "d0bc8038-b557-4924-aa1b-8750f8eed75f", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "b716ad01-8aa6-461b-a617-33db9e986e81" ], "pending": [], "skipped": [], "duration": 129909, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cf2e4783-0eda-4e10-8a1d-c53b478efaf5", "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": "82bb6128-876e-4aa6-ab24-62f54d4abc05", "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": 118675, "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.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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/23Add_payment_method_using_Make_Payment_for_credit_card_using_Authorize.net.spec.js:217:38)", "diff": null }, "uuid": "96c916cb-c71e-4acd-ae49-edb988b524cc", "parentUUID": "82bb6128-876e-4aa6-ab24-62f54d4abc05", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "96c916cb-c71e-4acd-ae49-edb988b524cc" ], "pending": [], "skipped": [], "duration": 118675, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "725d9e0b-6728-408a-9437-fb85800db001", "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": "0e1311de-d89c-45d1-85f3-313db6917d8d", "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": 108986, "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.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\"]').type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address1\"]').type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address2\"]').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": { "message": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select", "estack": "CypressError: Timed out retrying: `cy.select()` failed because it could not find a single `<option>` with value or text matching: `Authorize.NET`\n\nhttps://on.cypress.io/select\n at getOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153160:21)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at retryOptions (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:153198:27)\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Function.Promise.attempt.Promise.try (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:7858:29)\n at tryFn (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165607:21)\n at whenStable (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165645:12)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:165140:16\n at tryCatcher (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10584:23)\n at Promise._settlePromiseFromHandler (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8519:31)\n at Promise._settlePromise (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8576:18)\n at Promise._settlePromise0 (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8621:10)\n at Promise._settlePromises (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8701:18)\n at Promise._fulfill (https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:8645:18)\n at https://test.subscriptionflow.com/__cypress/runner/cypress_runner.js:10259:46\nFrom Your Spec Code:\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/SF/i-invoices/24Add_payment_method_using_Make_Payment_for_ACH_using_Authorize.net.spec.js:217:38)", "diff": null }, "uuid": "8c4e48ec-f25a-441b-9c2e-0bd9384201c4", "parentUUID": "0e1311de-d89c-45d1-85f3-313db6917d8d", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "8c4e48ec-f25a-441b-9c2e-0bd9384201c4" ], "pending": [], "skipped": [], "duration": 108986, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fb77da7b-d354-4c94-ba59-4a7015472b23", "title": "", "fullFile": "cypress/integration/SF/i-invoices/25Add_payment_method_using_Make_Payment_for_credit_card_using_PayPal_Pro.spec.js", "file": "cypress/integration/SF/i-invoices/25Add_payment_method_using_Make_Payment_for_credit_card_using_PayPal_Pro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b6322cde-4dc5-48d8-a065-fc223b75f748", "title": "Add Payment Method using Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Add Payment Method using Make payment through Card using PayPal Pro", "fullTitle": "Add Payment Method using Make Payment Add Payment Method using Make payment through Card using PayPal Pro", "timedOut": null, "duration": 164187, "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('PayPal Pro');\ncy.get('#first_name-input').clear().type('FirstName');\ncy.get('#last_name-input').clear().type('LastName');\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\"]').type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address1\"]').type('1111', {\n force: true\n});\ncy.get('input[name=\"billing_address2\"]').type('1111', {\n force: true\n});\ncy.get('#card_number-input').type('5110920230646270');\ncy.get('#card_expiration-input').type('122024', {\n force: true\n});\ncy.get('#card_cvv-input').type('250');\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('6270');\n }\n});", "err": {}, "uuid": "0310bd2c-b9d6-4e97-86b8-c8bf84fd0a97", "parentUUID": "b6322cde-4dc5-48d8-a065-fc223b75f748", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0310bd2c-b9d6-4e97-86b8-c8bf84fd0a97" ], "failures": [], "pending": [], "skipped": [], "duration": 164187, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8730c596-b42d-4c68-9e16-a2344af7558a", "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": "0204ba16-8dcf-48c3-b356-9f85ecae09e7", "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": 135350, "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": "beeacf38-5d66-4d88-aae0-e1c1d7c90bd9", "parentUUID": "0204ba16-8dcf-48c3-b356-9f85ecae09e7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "beeacf38-5d66-4d88-aae0-e1c1d7c90bd9" ], "failures": [], "pending": [], "skipped": [], "duration": 135350, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "43a3e6c4-ffdd-4332-9ff4-d1c5fd41f507", "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": "5aad76b6-c2e3-4ff3-bf10-fe2b2f0a39e5", "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": 208619, "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\"]').type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address1\"]').type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address2\"]').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:269:71)", "diff": null }, "uuid": "5124c054-7898-4118-aec2-2fb753793c6c", "parentUUID": "5aad76b6-c2e3-4ff3-bf10-fe2b2f0a39e5", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "5124c054-7898-4118-aec2-2fb753793c6c" ], "pending": [], "skipped": [], "duration": 208619, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6e510f76-5670-4abf-b337-ea9dffc9c03b", "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": "3aac5ece-89e1-41eb-8ab9-c68c7a6fdc07", "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": 193832, "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\"]').type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address1\"]').type('1111', {\n force: true\n });\n cy.get('input[name=\"billing_address2\"]').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": "bd2f88c1-2f59-4f9e-8bf2-24cc1368fe78", "parentUUID": "3aac5ece-89e1-41eb-8ab9-c68c7a6fdc07", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bd2f88c1-2f59-4f9e-8bf2-24cc1368fe78" ], "failures": [], "pending": [], "skipped": [], "duration": 193832, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d3373639-a1c5-4c6b-b9b3-276795d68a11", "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": "22e5f00e-9f95-4862-bef5-ecad0e6cbaae", "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": 277554, "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": "8d4b6747-2307-42a7-b4c8-e02a86106ff8", "parentUUID": "22e5f00e-9f95-4862-bef5-ecad0e6cbaae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8d4b6747-2307-42a7-b4c8-e02a86106ff8" ], "failures": [], "pending": [], "skipped": [], "duration": 277554, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a4a60370-0c1a-4827-9d9e-71a8a032a8c3", "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": "1479f9d3-1c8a-44b0-a2d7-bd02b843666a", "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": 99360, "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": "0f8bc9a4-4d44-4fda-bb45-dd3e635e09a4", "parentUUID": "1479f9d3-1c8a-44b0-a2d7-bd02b843666a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0f8bc9a4-4d44-4fda-bb45-dd3e635e09a4" ], "failures": [], "pending": [], "skipped": [], "duration": 99360, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d4a917c5-d159-4093-a286-4228eb32c2a5", "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": "03b96b31-3897-4f2d-a6ec-c5aabadd0507", "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": 81117, "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": "1e2247c9-18ca-4505-ac8d-32df63f3c3b7", "parentUUID": "03b96b31-3897-4f2d-a6ec-c5aabadd0507", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1e2247c9-18ca-4505-ac8d-32df63f3c3b7" ], "failures": [], "pending": [], "skipped": [], "duration": 81117, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3233b45f-80f4-4fe1-9bbe-f1a6cd71b6b8", "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": "cef3438c-e6ea-4e42-b58f-48715f517790", "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": 97513, "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": "860b9656-ff0c-4431-89ac-84fc20792f1f", "parentUUID": "cef3438c-e6ea-4e42-b58f-48715f517790", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "860b9656-ff0c-4431-89ac-84fc20792f1f" ], "failures": [], "pending": [], "skipped": [], "duration": 97513, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "269d6c27-14a9-43e4-af52-5cd839a56b0d", "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": "eb315a32-d4e8-4046-8e28-2c6f14dd639b", "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": 101635, "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": "d850b1bb-f633-4c54-b0e4-35047c8918ad", "parentUUID": "eb315a32-d4e8-4046-8e28-2c6f14dd639b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d850b1bb-f633-4c54-b0e4-35047c8918ad" ], "failures": [], "pending": [], "skipped": [], "duration": 101635, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3a84b238-4e55-485c-84b2-ef0ea63035bc", "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": "d31ff551-811b-45c7-9e8e-a6fd57e6911d", "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": 76389, "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": "d04c434a-a67b-4648-8f84-e9b8e699be84", "parentUUID": "d31ff551-811b-45c7-9e8e-a6fd57e6911d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d04c434a-a67b-4648-8f84-e9b8e699be84" ], "failures": [], "pending": [], "skipped": [], "duration": 76389, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b83708b9-ce37-45c2-b092-40f05600a384", "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": "2260f741-798d-42d9-b2cc-064845168434", "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": 287751, "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": "2e8ac8ea-80f2-47d8-85aa-2d5b7f908c5f", "parentUUID": "2260f741-798d-42d9-b2cc-064845168434", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2e8ac8ea-80f2-47d8-85aa-2d5b7f908c5f" ], "failures": [], "pending": [], "skipped": [], "duration": 287751, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f0de9aee-68e7-4fc6-86cb-9ebc2aa0e67a", "title": "", "fullFile": "cypress/integration/SF/z-logout/logout_spec.js", "file": "cypress/integration/SF/z-logout/logout_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d3c9d76e-2bd9-4233-8c4d-533f8f061536", "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": 15565, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();", "err": {}, "uuid": "2920980d-ff6b-4a3b-a3b8-fb6151a098c2", "parentUUID": "d3c9d76e-2bd9-4233-8c4d-533f8f061536", "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": 159, "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": "74b7792c-14cb-4bd0-8bea-71c41e8bf2a5", "parentUUID": "d3c9d76e-2bd9-4233-8c4d-533f8f061536", "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": 3128, "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": "5269391f-81c2-4b40-bd0e-6602c9c1803a", "parentUUID": "d3c9d76e-2bd9-4233-8c4d-533f8f061536", "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": 2023, "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": "62db8693-76c4-4f5e-a0db-364e0fd37b1d", "parentUUID": "d3c9d76e-2bd9-4233-8c4d-533f8f061536", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2920980d-ff6b-4a3b-a3b8-fb6151a098c2", "74b7792c-14cb-4bd0-8bea-71c41e8bf2a5", "5269391f-81c2-4b40-bd0e-6602c9c1803a", "62db8693-76c4-4f5e-a0db-364e0fd37b1d" ], "failures": [], "pending": [], "skipped": [], "duration": 20875, "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" } } }