/
var
/
www
/
html
/
subscription-test-cases
/
Upload File
HOME
{ "stats": { "suites": 156, "tests": 170, "passes": 129, "pending": 0, "failures": 41, "start": "2021-01-18T23:29:17.427Z", "end": "2021-01-18T23:29:17.427Z", "duration": 20958105, "testsRegistered": 170, "passPercent": 75.88235294117646, "pendingPercent": 0, "other": 0, "hasOther": false, "skipped": 0, "hasSkipped": false }, "results": [ { "uuid": "e62ed74c-fb19-4b5f-961d-26fc7755b89a", "title": "", "fullFile": "cypress/integration/a-dashboard/1-login_spec.js", "file": "cypress/integration/a-dashboard/1-login_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3f999e33-6f7c-45ae-97e3-bbac8c3f0d53", "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": 17262, "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": "9d29742a-01c4-43c1-adc3-68a71892e69a", "parentUUID": "3f999e33-6f7c-45ae-97e3-bbac8c3f0d53", "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": "e3715878-4453-4d2e-8906-82fc81a88034", "parentUUID": "3f999e33-6f7c-45ae-97e3-bbac8c3f0d53", "isHook": false, "skipped": false }, { "title": "I should see \"Welcome <Username>\" ", "fullTitle": "Login to the site I should see \"Welcome <Username>\" ", "timedOut": null, "duration": 806, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.contains('Welcome');", "err": {}, "uuid": "8a9f6302-2742-4c58-8435-8e602f01bff2", "parentUUID": "3f999e33-6f7c-45ae-97e3-bbac8c3f0d53", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9d29742a-01c4-43c1-adc3-68a71892e69a", "e3715878-4453-4d2e-8906-82fc81a88034", "8a9f6302-2742-4c58-8435-8e602f01bff2" ], "failures": [], "pending": [], "skipped": [], "duration": 18154, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "96ab0d7a-c90d-4143-bbcd-99badde6854d", "title": "", "fullFile": "cypress/integration/a-dashboard/2-dashboard_view_spec.js", "file": "cypress/integration/a-dashboard/2-dashboard_view_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e0a25a1d-e533-4cfd-8a83-26466ad6a624", "title": "Dashboard View", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "I observe the Dashboard", "fullTitle": "Dashboard View I observe the Dashboard", "timedOut": null, "duration": 22435, "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": "2b06ec1e-c225-48bc-bf4c-4963033872d1", "parentUUID": "e0a25a1d-e533-4cfd-8a83-26466ad6a624", "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": 86, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.get('.main-navbar').should('be.visible');", "err": {}, "uuid": "0d3a170d-e5a4-4a09-8ae2-3e5705edf307", "parentUUID": "e0a25a1d-e533-4cfd-8a83-26466ad6a624", "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": 53, "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": "3894defd-f482-4657-9e0d-65518e14196c", "parentUUID": "e0a25a1d-e533-4cfd-8a83-26466ad6a624", "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": 37, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.scrollTo('bottom', {\n ensureScrollable: true\n});\ncy.get('.main-footer').should('be.visible');", "err": {}, "uuid": "d306bbf7-5668-4ae3-84a5-b765dd902c16", "parentUUID": "e0a25a1d-e533-4cfd-8a83-26466ad6a624", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2b06ec1e-c225-48bc-bf4c-4963033872d1", "0d3a170d-e5a4-4a09-8ae2-3e5705edf307", "3894defd-f482-4657-9e0d-65518e14196c", "d306bbf7-5668-4ae3-84a5-b765dd902c16" ], "failures": [], "pending": [], "skipped": [], "duration": 22611, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c44b2e40-5f1d-464e-9c12-10582faea9f6", "title": "", "fullFile": "cypress/integration/b-forgot-password/forgot-password.js", "file": "cypress/integration/b-forgot-password/forgot-password.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c5e072de-36cb-47e2-8a82-cdca9e7a41b8", "title": "Forgot Password", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Valid Email ", "fullTitle": "Forgot Password Valid Email ", "timedOut": null, "duration": 4535, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.forgot_password('admin@subscriptionflow.com');", "err": {}, "uuid": "d99664a8-9995-4146-b373-05bdee7b8637", "parentUUID": "c5e072de-36cb-47e2-8a82-cdca9e7a41b8", "isHook": false, "skipped": false }, { "title": "Email not in record", "fullTitle": "Forgot Password Email not in record", "timedOut": null, "duration": 7590, "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": "1d093b81-e660-4e02-a313-f0f0c9e307e4", "parentUUID": "c5e072de-36cb-47e2-8a82-cdca9e7a41b8", "isHook": false, "skipped": false }, { "title": "Successfull Password Reset Link", "fullTitle": "Forgot Password Successfull Password Reset Link", "timedOut": null, "duration": 8031, "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": "91d6a0e7-99ad-4f71-9104-b46dd04a9544", "parentUUID": "c5e072de-36cb-47e2-8a82-cdca9e7a41b8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d99664a8-9995-4146-b373-05bdee7b8637", "1d093b81-e660-4e02-a313-f0f0c9e307e4", "91d6a0e7-99ad-4f71-9104-b46dd04a9544" ], "failures": [], "pending": [], "skipped": [], "duration": 20156, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a0337b35-26e8-46f5-9906-73254c01bb1f", "title": "", "fullFile": "cypress/integration/c-contacts/cancel_contact_spec.js", "file": "cypress/integration/c-contacts/cancel_contact_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0540e649-07f3-42ab-ac68-a4b52f9d0f61", "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": 121423, "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": "08ec13c7-6dc1-409c-a278-33aa7a295820", "parentUUID": "0540e649-07f3-42ab-ac68-a4b52f9d0f61", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "08ec13c7-6dc1-409c-a278-33aa7a295820" ], "failures": [], "pending": [], "skipped": [], "duration": 121423, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8464bdab-2e5a-4e51-ac8a-f77d97229c39", "title": "", "fullFile": "cypress/integration/c-contacts/create_contact_spec.js", "file": "cypress/integration/c-contacts/create_contact_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1d10add2-40eb-4c84-a649-96a0e64b8dc0", "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": 131518, "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": "b482cf94-ebbb-479d-94a3-a11ca390103b", "parentUUID": "1d10add2-40eb-4c84-a649-96a0e64b8dc0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b482cf94-ebbb-479d-94a3-a11ca390103b" ], "failures": [], "pending": [], "skipped": [], "duration": 131518, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "058a9f3b-c90d-4543-8b26-1bad9c44886d", "title": "", "fullFile": "cypress/integration/d-product/01-create_product_spec.js", "file": "cypress/integration/d-product/01-create_product_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d139d88c-b422-472e-ac50-c37f16150864", "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": 26941, "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": "965acea5-baed-463c-8e64-72057dc71336", "parentUUID": "d139d88c-b422-472e-ac50-c37f16150864", "isHook": false, "skipped": false }, { "title": "Fill the form and click CTA", "fullTitle": "Create product Fill the form and click CTA", "timedOut": null, "duration": 28323, "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": "6b4fb111-8589-45a2-b4a2-0adc27e02538", "parentUUID": "d139d88c-b422-472e-ac50-c37f16150864", "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": 105, "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": "5d274d5e-78e2-42c6-b5f9-21d0c93a0a8b", "parentUUID": "d139d88c-b422-472e-ac50-c37f16150864", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "965acea5-baed-463c-8e64-72057dc71336", "6b4fb111-8589-45a2-b4a2-0adc27e02538", "5d274d5e-78e2-42c6-b5f9-21d0c93a0a8b" ], "failures": [], "pending": [], "skipped": [], "duration": 55369, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7e95121f-6ce8-42f5-805f-d5df40179eb9", "title": "", "fullFile": "cypress/integration/d-product/02-add_product_plan_spec.js", "file": "cypress/integration/d-product/02-add_product_plan_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "df14a1a3-5f5b-4e8c-a906-2f11449fd9d4", "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": 73888, "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 Records Found')) {\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": "176efe08-5655-402f-b3b9-fc4801c72ce8", "parentUUID": "df14a1a3-5f5b-4e8c-a906-2f11449fd9d4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "176efe08-5655-402f-b3b9-fc4801c72ce8" ], "failures": [], "pending": [], "skipped": [], "duration": 73888, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "105b8747-7c22-42b4-87cb-b4097fe87e5a", "title": "", "fullFile": "cypress/integration/d-product/03-add_plan_detail_one_time_spec.js", "file": "cypress/integration/d-product/03-add_plan_detail_one_time_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "88b2feac-749e-4a80-bec8-03e1648867de", "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": 54341, "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 Records Found')) {\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": "441911e4-8f74-4453-980b-7ef97cf22fdb", "parentUUID": "88b2feac-749e-4a80-bec8-03e1648867de", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "441911e4-8f74-4453-980b-7ef97cf22fdb" ], "failures": [], "pending": [], "skipped": [], "duration": 54341, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7e8b9cd5-e8b2-4c1a-af08-017e1f2e1da6", "title": "", "fullFile": "cypress/integration/d-product/04-add_plan_detail_recurring_spec.js", "file": "cypress/integration/d-product/04-add_plan_detail_recurring_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "00564c96-08c7-4085-8376-c55bfedfd888", "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": 55418, "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 Records Found')) {\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": "7b29c5db-001a-424c-b742-4de85bac2aab", "parentUUID": "00564c96-08c7-4085-8376-c55bfedfd888", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7b29c5db-001a-424c-b742-4de85bac2aab" ], "failures": [], "pending": [], "skipped": [], "duration": 55418, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "caea701c-e0f4-4e2c-ba72-49de52cba2c3", "title": "", "fullFile": "cypress/integration/d-product/05-add_plan_detail_UOM_spec.js", "file": "cypress/integration/d-product/05-add_plan_detail_UOM_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "98afeac4-9513-480b-8589-edca65457d08", "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": 55608, "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 Records Found')) {\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": "bca9b7ab-3a75-4650-a306-4e0c2e317367", "parentUUID": "98afeac4-9513-480b-8589-edca65457d08", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bca9b7ab-3a75-4650-a306-4e0c2e317367" ], "failures": [], "pending": [], "skipped": [], "duration": 55608, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9b2e4099-d8bd-409b-8ac5-208c2a056bcc", "title": "", "fullFile": "cypress/integration/d-product/06HPP_Trial_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/d-product/06HPP_Trial_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "df7c6ca7-bf08-48e4-b7e2-548cf23cf3c1", "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": 259606, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Records Found')) {\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": "f0dd7a2d-adaf-4d76-b75c-1a46a583626b", "parentUUID": "df7c6ca7-bf08-48e4-b7e2-548cf23cf3c1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f0dd7a2d-adaf-4d76-b75c-1a46a583626b" ], "failures": [], "pending": [], "skipped": [], "duration": 259606, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "214c1b08-ec7b-45b0-a3fa-30b6e6a1091a", "title": "", "fullFile": "cypress/integration/d-product/07HPP_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/d-product/07HPP_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c0fed37a-11e3-460b-a397-8e9d69585dd6", "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": 261102, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Records Found')) {\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": "eba74570-2e67-451b-9002-117754a0a862", "parentUUID": "c0fed37a-11e3-460b-a397-8e9d69585dd6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "eba74570-2e67-451b-9002-117754a0a862" ], "failures": [], "pending": [], "skipped": [], "duration": 261102, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "aaa236e9-fdb1-4f29-bbc6-de10eac73229", "title": "", "fullFile": "cypress/integration/d-product/08HPP_Trial_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/d-product/08HPP_Trial_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2fad5c11-0346-49ab-b7ac-dfa3ba86534f", "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": 269336, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (!trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Records Found')) {\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": "02228090-1f9b-4624-98d5-9c6681664e7d", "parentUUID": "2fad5c11-0346-49ab-b7ac-dfa3ba86534f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "02228090-1f9b-4624-98d5-9c6681664e7d" ], "failures": [], "pending": [], "skipped": [], "duration": 269336, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "264bcc69-a45d-4f82-bb2e-94e51ef9132e", "title": "", "fullFile": "cypress/integration/d-product/09HPP_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/d-product/09HPP_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5c9f6f4b-15b3-4511-bb05-5c647b8ca40c", "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": 271488, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#apps_flow').click({\n force: true\n});\ncy.get('.app-flow-content--item__text a').contains('PaymentsFlow').then(function (PF) {\n var payflow = PF.prop('href');\n cy.visit(payflow);\n});\ncy.get('.ni-planet').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.get('.ni-settings').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_termed_is_enabled_trial').then(function (trial) {\n if (trial.is(':checked')) {\n cy.get(trial).click({\n force: true\n });\n cy.get('button').contains('Save Configurations').click({\n force: true\n });\n }\n});\ncy.visit('https://test.subscriptionflow.com');\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/products');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('#status').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Name\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"is\", {\n force: true\n });\n cy.get('#select2-status-input-container').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Active').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.get('[href=\"#Plan-subpanel\"]').contains(' Plan ').click({\n force: true\n});\ncy.get('#related-table-plan').then(function (element) {\n if (!element.text().includes('No Records Found')) {\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": "fe1b0d62-d437-4cee-8ade-5287d1429e90", "parentUUID": "5c9f6f4b-15b3-4511-bb05-5c647b8ca40c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "fe1b0d62-d437-4cee-8ade-5287d1429e90" ], "failures": [], "pending": [], "skipped": [], "duration": 271488, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "958f6629-0dd6-4839-8dcd-a29fbdb03080", "title": "", "fullFile": "cypress/integration/d-product/10HPP_Trial_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/d-product/10HPP_Trial_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ec50af1f-6b41-4f91-8641-f8640e5c8f2f", "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": 262992, "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 Records Found')) {\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": "257c7588-daa7-463e-8eac-46f90ed8579a", "parentUUID": "ec50af1f-6b41-4f91-8641-f8640e5c8f2f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "257c7588-daa7-463e-8eac-46f90ed8579a" ], "failures": [], "pending": [], "skipped": [], "duration": 262992, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "bad0fcc1-9ad3-4c21-a34e-c9fbabb86e85", "title": "", "fullFile": "cypress/integration/d-product/11HPP_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/d-product/11HPP_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "de179ec8-9f84-4242-912e-d5c06ee87b43", "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": 222174, "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 Records Found')) {\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/d-product/11HPP_CreditCard_PayPalPro.spec.js:357:67)", "diff": null }, "uuid": "71778224-5103-4a4b-8019-7c8cae78f751", "parentUUID": "de179ec8-9f84-4242-912e-d5c06ee87b43", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "71778224-5103-4a4b-8019-7c8cae78f751" ], "pending": [], "skipped": [], "duration": 222174, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8c9755a5-f667-4c7c-a020-3aacc386350b", "title": "", "fullFile": "cypress/integration/d-product/12HPP_Trial_CreditCard_Stripe.spec.js", "file": "cypress/integration/d-product/12HPP_Trial_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "330c7fe0-1113-4d7e-a231-a3727c1480d1", "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": 286435, "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 Records Found')) {\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": "d60a9815-8437-4e68-bfee-fc98af293dcf", "parentUUID": "330c7fe0-1113-4d7e-a231-a3727c1480d1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d60a9815-8437-4e68-bfee-fc98af293dcf" ], "failures": [], "pending": [], "skipped": [], "duration": 286435, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "99cfd9ef-e0bf-4101-b811-0f38d63c680e", "title": "", "fullFile": "cypress/integration/d-product/13HPP_CreditCard_Stripe.spec.js", "file": "cypress/integration/d-product/13HPP_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5bda81bc-55fb-40f0-8630-1bd471c2c7f0", "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": 278917, "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 Records Found')) {\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": "7c2ec6e7-127e-4b03-81a0-3a86e743d20b", "parentUUID": "5bda81bc-55fb-40f0-8630-1bd471c2c7f0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7c2ec6e7-127e-4b03-81a0-3a86e743d20b" ], "failures": [], "pending": [], "skipped": [], "duration": 278917, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5c66f404-a55c-4a4a-b0bf-3c04348f13d7", "title": "", "fullFile": "cypress/integration/d-product/14HPP_Trial_BankTransfer_Stripe.spec.js", "file": "cypress/integration/d-product/14HPP_Trial_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6482f3c9-19a5-43e6-a1e3-c4dcfed11b52", "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": 273166, "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 Records Found')) {\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": "42020791-b57f-4127-a6d4-fbc47cdcf342", "parentUUID": "6482f3c9-19a5-43e6-a1e3-c4dcfed11b52", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "42020791-b57f-4127-a6d4-fbc47cdcf342" ], "failures": [], "pending": [], "skipped": [], "duration": 273166, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c1ba7584-8dc4-4763-9bc1-80763eaaa902", "title": "", "fullFile": "cypress/integration/d-product/15HPP_BankTransfer_Stripe.spec.js", "file": "cypress/integration/d-product/15HPP_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c0805fd6-aa5e-4e64-9de0-687ea68b73e7", "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": 274709, "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 Records Found')) {\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": "9a164696-2e46-4057-82ca-a37327fd81ee", "parentUUID": "c0805fd6-aa5e-4e64-9de0-687ea68b73e7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9a164696-2e46-4057-82ca-a37327fd81ee" ], "failures": [], "pending": [], "skipped": [], "duration": 274709, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fad9a8de-0470-4b44-b04b-55cbebeb57a1", "title": "", "fullFile": "cypress/integration/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js", "file": "cypress/integration/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e83af38c-8bf8-431d-a6a7-99290b8f0a43", "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": 212289, "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 Records Found')) {\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/d-product/18HPP_Trial_PayPalExpressCheckout.spec.js:350:93)", "diff": null }, "uuid": "43ec27cc-04fa-4660-b851-2c02b5d19da5", "parentUUID": "e83af38c-8bf8-431d-a6a7-99290b8f0a43", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "43ec27cc-04fa-4660-b851-2c02b5d19da5" ], "pending": [], "skipped": [], "duration": 212289, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2fd2a586-81e5-462f-a61e-eab762537141", "title": "", "fullFile": "cypress/integration/d-product/19HPP_PayPalExpressCheckout.spec.js", "file": "cypress/integration/d-product/19HPP_PayPalExpressCheckout.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "641303b7-874f-4e90-923d-53c7d20a08fa", "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": 252252, "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 Records Found')) {\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": "8b128d30-38d1-43b3-b0d0-74a2dcd76725", "parentUUID": "641303b7-874f-4e90-923d-53c7d20a08fa", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8b128d30-38d1-43b3-b0d0-74a2dcd76725" ], "failures": [], "pending": [], "skipped": [], "duration": 252252, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2869fc92-75ea-419e-90ee-066ace36037b", "title": "", "fullFile": "cypress/integration/e-plan/cancel-plan.js", "file": "cypress/integration/e-plan/cancel-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f9156bf8-aaba-414d-afb1-07bb96a5b68f", "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": 33932, "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": "8e5b0ad5-fdff-486f-b9d8-ac320a70210b", "parentUUID": "f9156bf8-aaba-414d-afb1-07bb96a5b68f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8e5b0ad5-fdff-486f-b9d8-ac320a70210b" ], "failures": [], "pending": [], "skipped": [], "duration": 33932, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "73278717-d1eb-4f3f-bd62-b24eeb4b2197", "title": "", "fullFile": "cypress/integration/e-plan/create-plan.js", "file": "cypress/integration/e-plan/create-plan.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e98044e0-1a2f-4341-b814-18b8be028659", "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": 36262, "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": "3de5cd0a-08d2-47f4-bca1-d10f992eb37b", "parentUUID": "e98044e0-1a2f-4341-b814-18b8be028659", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3de5cd0a-08d2-47f4-bca1-d10f992eb37b" ], "failures": [], "pending": [], "skipped": [], "duration": 36262, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "71050fc9-b499-4d5b-b937-6a182a15ae5c", "title": "", "fullFile": "cypress/integration/f-coupon/cancel-coupon.js", "file": "cypress/integration/f-coupon/cancel-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ba79d2e3-c068-4a82-b68d-3f22fcabae3b", "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": 72759, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('.nav-link').contains('More').click();\ncy.get('.dropdown-menu a').contains('Coupon').click({\n force: true\n});\ncy.wait(8000);\ncy.get('span').contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#name-input').type('Noman', {\n force: true\n});\ncy.get('#code-input').type('A2%T-IY', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Regular');\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search--dropdown .select2-search__field').type('Test{downarrow} {enter}');\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/coupons');", "err": {}, "uuid": "f48d9000-6cba-48fb-8a6e-a86f413f5008", "parentUUID": "ba79d2e3-c068-4a82-b68d-3f22fcabae3b", "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": 61130, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('.nav-link').contains('More').click();\ncy.get('.dropdown-menu a').contains('Coupon').click({\n force: true\n});\ncy.wait(8000);\ncy.get('span').contains('Create Coupon').click({\n force: true\n});\ncy.url().should('include', '/coupons/create');\ncy.get('#name-input').type('Noman', {\n force: true\n});\ncy.get('#code-input').type('A2%T-IY', {\n force: true\n});\ncy.get('#coupon_add_form textarea').type('Adding Coupon');\ncy.get('#availability-input').select('Limited');\ncy.get('#available_from-input').should('be.visible');\ncy.get('#available_to-input').should('be.visible');\nvar todaysDate = Cypress.moment().format('MM/DD/YYYY');\nvar addDays = Cypress.moment(todaysDate, \"MM/DD/YYYY\").add(10, 'days');\nvar endDate = Cypress.moment(addDays).format('MM/DD/YYYY');\ncy.get('#available_from-input').type(todaysDate, {\n force: true\n});\ncy.get('#available_to-input').type(endDate, {\n force: true\n});\ncy.get('#discount_type-input').select('Percentage');\ncy.get('#discount_value-input').type('50');\ncy.get('.select2-search__field').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#select2-plan_id-input-results li').contains('Test Plan').click({\n force: true\n});\ncy.get('#select2-assigned_to-input-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search--dropdown .select2-search__field').type('Test{downarrow} {enter}');\ncy.get('#apply_on_onetime-input').check({\n force: true\n});\ncy.get('#apply_on_recurring-input').check({\n force: true\n});\ncy.get('#apply_on_usage-input').check({\n force: true\n});\ncy.contains('Cancel').click({\n force: true\n});\ncy.url().should('include', '/coupons');", "err": {}, "uuid": "4405dca8-e574-46f2-97a2-374267f7f94c", "parentUUID": "ba79d2e3-c068-4a82-b68d-3f22fcabae3b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f48d9000-6cba-48fb-8a6e-a86f413f5008", "4405dca8-e574-46f2-97a2-374267f7f94c" ], "failures": [], "pending": [], "skipped": [], "duration": 133889, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "297722e2-3be3-4e76-bb9c-9594f538ba4f", "title": "", "fullFile": "cypress/integration/f-coupon/create-coupon.js", "file": "cypress/integration/f-coupon/create-coupon.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "cf3a623f-360b-4bca-92ed-f8a229964dbb", "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": 39281, "state": "failed", "speed": null, "pass": false, "fail": true, "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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#select2-plan_id-input-results li`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#select2-plan_id-input-results li`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/f-coupon/create-coupon.js:118:8)", "diff": null }, "uuid": "70fdf6b0-a662-4651-a851-f644d31ad53f", "parentUUID": "cf3a623f-360b-4bca-92ed-f8a229964dbb", "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": 38531, "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": "795b86fd-0712-4eb5-96f7-8691efd5aba7", "parentUUID": "cf3a623f-360b-4bca-92ed-f8a229964dbb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "795b86fd-0712-4eb5-96f7-8691efd5aba7" ], "failures": [ "70fdf6b0-a662-4651-a851-f644d31ad53f" ], "pending": [], "skipped": [], "duration": 77812, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b3a2f426-2d08-4335-96c7-eea910b5265b", "title": "", "fullFile": "cypress/integration/g-customer/01customer_page.spec.js", "file": "cypress/integration/g-customer/01customer_page.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5fc5fef8-0bc1-420e-9b53-83e9688beff9", "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": 40345, "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": "5a999ac9-f5cf-40da-ac5b-da3f0a49ed9a", "parentUUID": "5fc5fef8-0bc1-420e-9b53-83e9688beff9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5a999ac9-f5cf-40da-ac5b-da3f0a49ed9a" ], "failures": [], "pending": [], "skipped": [], "duration": 40345, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ba80183b-cab4-41cc-8aa4-f657c5fff4ea", "title": "", "fullFile": "cypress/integration/g-customer/02create_customer_spec.js", "file": "cypress/integration/g-customer/02create_customer_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "390d418a-3773-41a5-a2ac-6385dc2ee9c2", "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": 135453, "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": "a3d9d508-63fd-4b66-b2b6-a35e6a15623a", "parentUUID": "390d418a-3773-41a5-a2ac-6385dc2ee9c2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a3d9d508-63fd-4b66-b2b6-a35e6a15623a" ], "failures": [], "pending": [], "skipped": [], "duration": 135453, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "df85f43a-7906-411b-a706-c3c8645c060d", "title": "", "fullFile": "cypress/integration/g-customer/03cancel_customer_spec.js", "file": "cypress/integration/g-customer/03cancel_customer_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "99ab2a41-bb31-4e05-be1a-28843b2550ba", "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": 126865, "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": "3ca25d5b-dcbc-4592-9747-e30d294d98a7", "parentUUID": "99ab2a41-bb31-4e05-be1a-28843b2550ba", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3ca25d5b-dcbc-4592-9747-e30d294d98a7" ], "failures": [], "pending": [], "skipped": [], "duration": 126865, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "cb630c83-297d-4ecc-880d-a92fd7bcfeea", "title": "", "fullFile": "cypress/integration/g-customer/04search_customer.spec.js", "file": "cypress/integration/g-customer/04search_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "27e9f58f-5e43-437f-9871-5d1705ae86ce", "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": 49185, "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": "603da1d5-d94d-4128-a7de-e625be9f4a48", "parentUUID": "27e9f58f-5e43-437f-9871-5d1705ae86ce", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "603da1d5-d94d-4128-a7de-e625be9f4a48" ], "failures": [], "pending": [], "skipped": [], "duration": 49185, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1ab4285f-10d4-4f51-9911-cd8644324078", "title": "", "fullFile": "cypress/integration/g-customer/05delete_customer.spec.js", "file": "cypress/integration/g-customer/05delete_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bfb603c9-a2d4-4bc5-8f9b-39fb44eea7e7", "title": "Delete a customer", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Should delete customers", "fullTitle": "Delete a customer Should delete customers", "timedOut": null, "duration": 216345, "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": "3fa2d836-b9c6-40b3-adf5-425941ee736f", "parentUUID": "bfb603c9-a2d4-4bc5-8f9b-39fb44eea7e7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3fa2d836-b9c6-40b3-adf5-425941ee736f" ], "failures": [], "pending": [], "skipped": [], "duration": 216345, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d7d7da7f-287c-4f38-ab2e-eae25a8649e9", "title": "", "fullFile": "cypress/integration/g-customer/06edit_customer.spec.js", "file": "cypress/integration/g-customer/06edit_customer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "112af12a-a9e4-452b-8ddf-20e7e9095091", "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": 50256, "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": "eeec3cb1-a1b1-40b4-b1a0-421cb2d04c6f", "parentUUID": "112af12a-a9e4-452b-8ddf-20e7e9095091", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "eeec3cb1-a1b1-40b4-b1a0-421cb2d04c6f" ], "failures": [], "pending": [], "skipped": [], "duration": 50256, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "154efd19-f492-4470-8d39-1b793116dcc2", "title": "", "fullFile": "cypress/integration/g-customer/07clear_selection.spec.js", "file": "cypress/integration/g-customer/07clear_selection.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "02b9e20a-d178-431d-ad7e-c6e9d73129d5", "title": "Clear Selections", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Unselect all selected entries", "fullTitle": "Clear Selections Unselect all selected entries", "timedOut": null, "duration": 28801, "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": "357794a1-f2ed-427e-97aa-a4e219bcd425", "parentUUID": "02b9e20a-d178-431d-ad7e-c6e9d73129d5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "357794a1-f2ed-427e-97aa-a4e219bcd425" ], "failures": [], "pending": [], "skipped": [], "duration": 28801, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "54d50cf6-ae4b-45d2-bfac-ffa88d093a4a", "title": "", "fullFile": "cypress/integration/g-customer/08aesc_desc.spec.js", "file": "cypress/integration/g-customer/08aesc_desc.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "49b963a1-f1fb-43d5-97ac-616521d0af31", "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": 58811, "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": "c6531588-fd08-44ac-89ad-70cfb37109f5", "parentUUID": "49b963a1-f1fb-43d5-97ac-616521d0af31", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c6531588-fd08-44ac-89ad-70cfb37109f5" ], "failures": [], "pending": [], "skipped": [], "duration": 58811, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d00f8cec-daa8-4e74-8088-1db19765a790", "title": "", "fullFile": "cypress/integration/g-customer/09filter_by_name.spec.js", "file": "cypress/integration/g-customer/09filter_by_name.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f400b58e-69eb-4fd5-85be-81f939985200", "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": 128340, "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": "28cfb0f5-4a95-4d24-9dcf-9cf7e5508151", "parentUUID": "f400b58e-69eb-4fd5-85be-81f939985200", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "28cfb0f5-4a95-4d24-9dcf-9cf7e5508151" ], "failures": [], "pending": [], "skipped": [], "duration": 128340, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "57651134-8e07-4073-b63b-f7487843b833", "title": "", "fullFile": "cypress/integration/g-customer/10filter_by_customernumber.spec.js", "file": "cypress/integration/g-customer/10filter_by_customernumber.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "05617c03-98b4-41f6-856d-3186e713d303", "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": 132632, "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": "ffe53ee8-d61e-48d3-a11b-b5255373c738", "parentUUID": "05617c03-98b4-41f6-856d-3186e713d303", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ffe53ee8-d61e-48d3-a11b-b5255373c738" ], "failures": [], "pending": [], "skipped": [], "duration": 132632, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0abc9009-31d1-49ff-a54d-83b8c80096a3", "title": "", "fullFile": "cypress/integration/g-customer/11filter_by_phonenumber.spec.js", "file": "cypress/integration/g-customer/11filter_by_phonenumber.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f0044de6-8f7d-4b00-9a5e-30a07c7f4b34", "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": 130383, "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": "eb96c65b-050d-4735-8942-4d8e6580d8cf", "parentUUID": "f0044de6-8f7d-4b00-9a5e-30a07c7f4b34", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "eb96c65b-050d-4735-8942-4d8e6580d8cf" ], "failures": [], "pending": [], "skipped": [], "duration": 130383, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b1475c99-bea5-47a1-b06c-ac31cb52a751", "title": "", "fullFile": "cypress/integration/g-customer/12filter_by_email.spec.js", "file": "cypress/integration/g-customer/12filter_by_email.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2195895d-6ff8-4bb1-97cf-3799415970ba", "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": 271980, "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/g-customer/12filter_by_email.spec.js:231:16)", "diff": null }, "uuid": "e8c8304a-238e-4710-b74c-ee3c4af68568", "parentUUID": "2195895d-6ff8-4bb1-97cf-3799415970ba", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "e8c8304a-238e-4710-b74c-ee3c4af68568" ], "pending": [], "skipped": [], "duration": 271980, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2c20dd1e-c900-464f-a286-89bcd14ca6bb", "title": "", "fullFile": "cypress/integration/g-customer/13filter_by_PO.spec.js", "file": "cypress/integration/g-customer/13filter_by_PO.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3b636bf1-d015-49da-9c75-69c0a19662bc", "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": 131976, "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": "a243e249-82ae-4f2c-848c-0b73560ddde0", "parentUUID": "3b636bf1-d015-49da-9c75-69c0a19662bc", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a243e249-82ae-4f2c-848c-0b73560ddde0" ], "failures": [], "pending": [], "skipped": [], "duration": 131976, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c08e53eb-bbe6-4c1d-b5c8-625da334e82c", "title": "", "fullFile": "cypress/integration/g-customer/14filter_by_LegalEntity.spec.js", "file": "cypress/integration/g-customer/14filter_by_LegalEntity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "75a9530b-e3ba-429b-abfa-bc596bbf8c84", "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": 109550, "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": "77fdaeca-d844-4ed2-bf62-1907ebe78058", "parentUUID": "75a9530b-e3ba-429b-abfa-bc596bbf8c84", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "77fdaeca-d844-4ed2-bf62-1907ebe78058" ], "failures": [], "pending": [], "skipped": [], "duration": 109550, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9075af83-2f0e-4336-8879-c28d9fbf747f", "title": "", "fullFile": "cypress/integration/g-customer/15filter_by_billingCycle.spec.js", "file": "cypress/integration/g-customer/15filter_by_billingCycle.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bf2d2200-a7cf-4cbc-96ee-f1ae45bcd07b", "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": 107545, "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": "6bedb0a6-9d9c-455b-baee-edb45353b1c9", "parentUUID": "bf2d2200-a7cf-4cbc-96ee-f1ae45bcd07b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6bedb0a6-9d9c-455b-baee-edb45353b1c9" ], "failures": [], "pending": [], "skipped": [], "duration": 107545, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ecc55839-d75c-4d92-a133-1f105cf49bac", "title": "", "fullFile": "cypress/integration/g-customer/16filter_by_TaxExempt.spec.js", "file": "cypress/integration/g-customer/16filter_by_TaxExempt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6e7e4f7d-157c-4872-a31f-16fc25c593eb", "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": 27701, "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": "c5b20ac7-4b84-4ea8-886e-f0fd06513938", "parentUUID": "6e7e4f7d-157c-4872-a31f-16fc25c593eb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "c5b20ac7-4b84-4ea8-886e-f0fd06513938" ], "failures": [], "pending": [], "skipped": [], "duration": 27701, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f8fe60cf-cb60-4c36-9390-da94c0facc3a", "title": "", "fullFile": "cypress/integration/g-customer/17filter_by_certificateid.spec.js", "file": "cypress/integration/g-customer/17filter_by_certificateid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9ba21b51-8dd4-4b2d-b4c8-b46888249f4a", "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": 43854, "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": "19c90278-aa1d-48ca-b9eb-bd2cb8c56ef2", "parentUUID": "9ba21b51-8dd4-4b2d-b4c8-b46888249f4a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "19c90278-aa1d-48ca-b9eb-bd2cb8c56ef2" ], "failures": [], "pending": [], "skipped": [], "duration": 43854, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2b07fcd1-96de-4a77-a60f-ef23354d5fcc", "title": "", "fullFile": "cypress/integration/g-customer/18filter_by_certificatetype.spec.js", "file": "cypress/integration/g-customer/18filter_by_certificatetype.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5e753d1f-7fcd-41a7-bacd-01d3006f9b68", "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": 127821, "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": "db3d55c4-3472-44d2-8095-8a451799ed45", "parentUUID": "5e753d1f-7fcd-41a7-bacd-01d3006f9b68", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "db3d55c4-3472-44d2-8095-8a451799ed45" ], "failures": [], "pending": [], "skipped": [], "duration": 127821, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "57c7a41a-021d-4e93-aa4c-371f1c935e62", "title": "", "fullFile": "cypress/integration/g-customer/19filter_by_issuingJurisdiction.spec.js", "file": "cypress/integration/g-customer/19filter_by_issuingJurisdiction.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "630718a8-6a47-4d7d-82d1-32347bfdbb38", "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": 131505, "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": "9354f051-298c-4a0b-9ec4-4e0bf037033c", "parentUUID": "630718a8-6a47-4d7d-82d1-32347bfdbb38", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9354f051-298c-4a0b-9ec4-4e0bf037033c" ], "failures": [], "pending": [], "skipped": [], "duration": 131505, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d6b0986a-a92d-4657-b250-7e137bf020bb", "title": "", "fullFile": "cypress/integration/g-customer/20filter_by_entityUsecode.spec.js", "file": "cypress/integration/g-customer/20filter_by_entityUsecode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5b237ece-34ff-4411-b179-53bbae54fb87", "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": 116282, "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": "fc6ccc39-8e17-4b99-a25f-6e28d166c6e9", "parentUUID": "5b237ece-34ff-4411-b179-53bbae54fb87", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "fc6ccc39-8e17-4b99-a25f-6e28d166c6e9" ], "failures": [], "pending": [], "skipped": [], "duration": 116282, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "acc51d47-d8f6-4345-ba98-ed46211583d8", "title": "", "fullFile": "cypress/integration/g-customer/21filter_by_Description.spec.js", "file": "cypress/integration/g-customer/21filter_by_Description.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "57bcdcde-ad01-4e0b-9c95-105657370413", "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": 131008, "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": "d75471b8-26ca-46ce-bb8c-b8af6f99d6b3", "parentUUID": "57bcdcde-ad01-4e0b-9c95-105657370413", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d75471b8-26ca-46ce-bb8c-b8af6f99d6b3" ], "failures": [], "pending": [], "skipped": [], "duration": 131008, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5dbe2356-e916-44fa-8dea-420f8e8ef779", "title": "", "fullFile": "cypress/integration/g-customer/22filter_by_TaxCompany.spec.js", "file": "cypress/integration/g-customer/22filter_by_TaxCompany.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e1b03df9-3536-4025-9a60-e67abf2405f7", "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": 46139, "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/g-customer/22filter_by_TaxCompany.spec.js:150:61)", "diff": null }, "uuid": "8d8efb46-c556-471c-8d28-39608a95afdc", "parentUUID": "e1b03df9-3536-4025-9a60-e67abf2405f7", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "8d8efb46-c556-471c-8d28-39608a95afdc" ], "pending": [], "skipped": [], "duration": 46139, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e0ec29a6-8dc4-4681-aeb5-de981bd741cc", "title": "", "fullFile": "cypress/integration/g-customer/23filter_by_VATID.spec.js", "file": "cypress/integration/g-customer/23filter_by_VATID.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7564db07-5492-4adc-9209-2d908e11979e", "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": 128086, "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": "3acdd4cf-5b95-4edc-8fdd-1f2461012d3f", "parentUUID": "7564db07-5492-4adc-9209-2d908e11979e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3acdd4cf-5b95-4edc-8fdd-1f2461012d3f" ], "failures": [], "pending": [], "skipped": [], "duration": 128086, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0cffde9f-66d9-4491-9407-ca08ab69e704", "title": "", "fullFile": "cypress/integration/g-customer/24filter_by_PortalisEnabled.spec.js", "file": "cypress/integration/g-customer/24filter_by_PortalisEnabled.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "cf64718a-4aaf-40a9-a7ad-1ab1fceed50d", "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": 63307, "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": "1563c7b6-7570-48c3-8f34-ceebbdbd657c", "parentUUID": "cf64718a-4aaf-40a9-a7ad-1ab1fceed50d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1563c7b6-7570-48c3-8f34-ceebbdbd657c" ], "failures": [], "pending": [], "skipped": [], "duration": 63307, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b66b4954-1d67-46da-ad93-4591f6d0fd15", "title": "", "fullFile": "cypress/integration/g-customer/25filter_by_BillingAddress1.spec.js", "file": "cypress/integration/g-customer/25filter_by_BillingAddress1.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "13d4d9a2-7201-42e8-b4eb-c5cd658859e5", "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": 129585, "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": "82606bdb-1759-410c-98d3-4653e4ebd785", "parentUUID": "13d4d9a2-7201-42e8-b4eb-c5cd658859e5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "82606bdb-1759-410c-98d3-4653e4ebd785" ], "failures": [], "pending": [], "skipped": [], "duration": 129585, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "791ba7fc-7918-4677-ae36-f8dd6c1300e1", "title": "", "fullFile": "cypress/integration/g-customer/26filter_by_BillingAddress2.spec.js", "file": "cypress/integration/g-customer/26filter_by_BillingAddress2.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "78f0802c-969c-4c74-8027-48b224b8b328", "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": 41006, "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": "44282255-7c2f-498e-9c75-0c8c45008a51", "parentUUID": "78f0802c-969c-4c74-8027-48b224b8b328", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "44282255-7c2f-498e-9c75-0c8c45008a51" ], "failures": [], "pending": [], "skipped": [], "duration": 41006, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ce30bd39-87dc-46a8-adbd-fc3d321da36a", "title": "", "fullFile": "cypress/integration/g-customer/27filter_by_Billing_Country.spec.js", "file": "cypress/integration/g-customer/27filter_by_Billing_Country.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "191285fe-f2ac-497c-96ca-cac073fd7ab5", "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": 129607, "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": "377a0441-44a6-44fe-89aa-7473f1270b2d", "parentUUID": "191285fe-f2ac-497c-96ca-cac073fd7ab5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "377a0441-44a6-44fe-89aa-7473f1270b2d" ], "failures": [], "pending": [], "skipped": [], "duration": 129607, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "963e4597-b77d-4aac-b648-74d747d1c81b", "title": "", "fullFile": "cypress/integration/g-customer/28filter_by_BillingState.spec.js", "file": "cypress/integration/g-customer/28filter_by_BillingState.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2b46dfc6-5964-4121-9537-01e1314fd2bf", "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": 129126, "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": "1aab4ee1-7f13-48cc-950b-5e99e499c9de", "parentUUID": "2b46dfc6-5964-4121-9537-01e1314fd2bf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1aab4ee1-7f13-48cc-950b-5e99e499c9de" ], "failures": [], "pending": [], "skipped": [], "duration": 129126, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ba249d67-3469-4838-a23d-8485568f4a7a", "title": "", "fullFile": "cypress/integration/g-customer/29filter_by_BillingCity.spec.js", "file": "cypress/integration/g-customer/29filter_by_BillingCity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "87ffbfe6-e1c8-4b07-b32a-005dc48a8e76", "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": 129526, "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": "73271ba3-5b1d-4708-9b64-f202faacf9e6", "parentUUID": "87ffbfe6-e1c8-4b07-b32a-005dc48a8e76", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "73271ba3-5b1d-4708-9b64-f202faacf9e6" ], "failures": [], "pending": [], "skipped": [], "duration": 129526, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "79c4f15f-ac9e-469a-8355-4c0f0545a8c5", "title": "", "fullFile": "cypress/integration/g-customer/30filter_by_BillingPostalCode.spec.js", "file": "cypress/integration/g-customer/30filter_by_BillingPostalCode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "22ad819b-c0c2-4c8a-ab71-40bc90702190", "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": 129910, "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": "df0282b8-4165-4dc8-857d-0bb6473001b2", "parentUUID": "22ad819b-c0c2-4c8a-ab71-40bc90702190", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "df0282b8-4165-4dc8-857d-0bb6473001b2" ], "failures": [], "pending": [], "skipped": [], "duration": 129910, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a1896fef-5819-45d3-89bb-983d6062e111", "title": "", "fullFile": "cypress/integration/g-customer/31filter_by_ShippingAddress1.spec.js", "file": "cypress/integration/g-customer/31filter_by_ShippingAddress1.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "feecdf57-22e3-4adb-8eaf-fa5ed6127606", "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": 129419, "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": "553adb56-a0f7-4585-9dea-9d54dfc634d4", "parentUUID": "feecdf57-22e3-4adb-8eaf-fa5ed6127606", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "553adb56-a0f7-4585-9dea-9d54dfc634d4" ], "failures": [], "pending": [], "skipped": [], "duration": 129419, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "efc26a36-a185-47bb-ab93-4d4fcbc04b1a", "title": "", "fullFile": "cypress/integration/g-customer/32filter_by_ShippingAddress2.spec.js", "file": "cypress/integration/g-customer/32filter_by_ShippingAddress2.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "841c7e4a-679a-4343-b413-9f207440650b", "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": 41155, "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": "617c8705-38d0-4fbc-a4ea-19ea83d90c2a", "parentUUID": "841c7e4a-679a-4343-b413-9f207440650b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "617c8705-38d0-4fbc-a4ea-19ea83d90c2a" ], "failures": [], "pending": [], "skipped": [], "duration": 41155, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fc22b81d-01e8-44b9-8a62-7a03f75358b5", "title": "", "fullFile": "cypress/integration/g-customer/33filter_by_ShippingCountry.spec.js", "file": "cypress/integration/g-customer/33filter_by_ShippingCountry.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "7a58b1c7-b59f-4176-813f-221fbf2793fb", "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": 128832, "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": "09c1bb84-3f8b-4d6f-bf4f-de6e770ddb9c", "parentUUID": "7a58b1c7-b59f-4176-813f-221fbf2793fb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "09c1bb84-3f8b-4d6f-bf4f-de6e770ddb9c" ], "failures": [], "pending": [], "skipped": [], "duration": 128832, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6d50265b-b6c6-45a6-ab4b-45d3e593796c", "title": "", "fullFile": "cypress/integration/g-customer/34filter_by_ShippingState.spec.js", "file": "cypress/integration/g-customer/34filter_by_ShippingState.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "db84706a-9985-4f17-a0e1-badd06a99800", "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": 128685, "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": "7495baf2-1afe-4249-9f39-4def8bb04c85", "parentUUID": "db84706a-9985-4f17-a0e1-badd06a99800", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7495baf2-1afe-4249-9f39-4def8bb04c85" ], "failures": [], "pending": [], "skipped": [], "duration": 128685, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5a3a9c2f-de40-4db3-a6bc-8abb6a205ff0", "title": "", "fullFile": "cypress/integration/g-customer/35filter_by_ShippingCity.spec.js", "file": "cypress/integration/g-customer/35filter_by_ShippingCity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e93f4933-b136-4fd5-b106-2ee046ca51e8", "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": 128907, "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": "d1fb8e7d-516d-4b4b-a476-ef8868469af6", "parentUUID": "e93f4933-b136-4fd5-b106-2ee046ca51e8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d1fb8e7d-516d-4b4b-a476-ef8868469af6" ], "failures": [], "pending": [], "skipped": [], "duration": 128907, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d5486ce6-7928-4ab2-9ad5-95bc8fffbe3f", "title": "", "fullFile": "cypress/integration/g-customer/36filter_by_ShippingPostalCode.spec.js", "file": "cypress/integration/g-customer/36filter_by_ShippingPostalCode.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3e36d7ec-d636-45c2-885e-2039d481de17", "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": 128518, "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": "1197402d-e297-4be5-9e77-ed2cd6e93037", "parentUUID": "3e36d7ec-d636-45c2-885e-2039d481de17", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1197402d-e297-4be5-9e77-ed2cd6e93037" ], "failures": [], "pending": [], "skipped": [], "duration": 128518, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "45dce82c-9e7f-44e7-98ba-a82fef0220a2", "title": "", "fullFile": "cypress/integration/g-customer/37filter_by_CreatedAt.spec.js", "file": "cypress/integration/g-customer/37filter_by_CreatedAt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0935f61d-ba84-488c-ac7a-a9ef0df43e20", "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": 139425, "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": "ea884dee-58e9-4fdb-9238-1e2c1b193d5e", "parentUUID": "0935f61d-ba84-488c-ac7a-a9ef0df43e20", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ea884dee-58e9-4fdb-9238-1e2c1b193d5e" ], "failures": [], "pending": [], "skipped": [], "duration": 139425, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4e83ea4b-e088-40c9-906c-146bea9608c4", "title": "", "fullFile": "cypress/integration/g-customer/38filter_by_CreatedBy.spec.js", "file": "cypress/integration/g-customer/38filter_by_CreatedBy.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "594622c6-6389-41a0-9d0f-83d739269cfb", "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": 75145, "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": "ac25b7fa-db5d-43ec-9fb8-5539dbe066f1", "parentUUID": "594622c6-6389-41a0-9d0f-83d739269cfb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ac25b7fa-db5d-43ec-9fb8-5539dbe066f1" ], "failures": [], "pending": [], "skipped": [], "duration": 75145, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a4fa6a2d-85dc-4331-bf89-ed23c950c695", "title": "", "fullFile": "cypress/integration/g-customer/39clear_filter.spec.js", "file": "cypress/integration/g-customer/39clear_filter.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "bc96a3c3-572c-4698-9739-231c6c24e578", "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": 68600, "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": "1896df7c-d923-4489-ae1d-926f194cfb59", "parentUUID": "bc96a3c3-572c-4698-9739-231c6c24e578", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1896df7c-d923-4489-ae1d-926f194cfb59" ], "failures": [], "pending": [], "skipped": [], "duration": 68600, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a1d14ce5-4825-4c5a-a695-d51e7dee417c", "title": "", "fullFile": "cypress/integration/g-customer/40Bulk_update.spec.js", "file": "cypress/integration/g-customer/40Bulk_update.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e25bbd7c-c034-4eed-95ff-7dd79527ae34", "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": 75284, "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": "afb04167-80a6-4fc6-8507-14f0b96c1b42", "parentUUID": "e25bbd7c-c034-4eed-95ff-7dd79527ae34", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "afb04167-80a6-4fc6-8507-14f0b96c1b42" ], "failures": [], "pending": [], "skipped": [], "duration": 75284, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f85ce698-19f0-4ac7-8b63-519453ca476e", "title": "", "fullFile": "cypress/integration/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js", "file": "cypress/integration/g-customer/41Add_Payment_CreditCard_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d3daa182-0501-4544-b685-34fa60ec577a", "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": 188373, "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": "71236449-4939-4267-8df3-28c5e0301633", "parentUUID": "d3daa182-0501-4544-b685-34fa60ec577a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "71236449-4939-4267-8df3-28c5e0301633" ], "failures": [], "pending": [], "skipped": [], "duration": 188373, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c656320a-e3cc-4ee5-af07-b4a57baaaf17", "title": "", "fullFile": "cypress/integration/g-customer/42Add_Public_Payment_Creditcard_Authorizenet.spec.js", "file": "cypress/integration/g-customer/42Add_Public_Payment_Creditcard_Authorizenet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f0cee881-1e58-4e27-b914-3a323c54d3c5", "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": 178989, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_credit-card-tab').click({\n force: true\n});\ncy.get('#paymentInformationCard__cardNumber').type('4111111111111112');\ncy.get('#paymentInformationCard__expiryMonth').select('01', {\n force: true\n}).should('have.value', '01');\ncy.get('#paymentInformationCard__expiryYear').select('2021', {\n force: true\n}).should('have.value', '2021');\ncy.get('#paymentInformationCard__Cvv').type('12', {\n force: true\n}).should('have.value', '12');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.get('#card-errors').should('be.visible').and(function ($element) {\n expect($element.text()).to.include('Please provide valid credit card number.');\n expect($element.text()).to.include('Please provide valid CVV.');\n});\ncy.get('#paymentInformationCard__cardNumber').clear().type('4111111111111111');\ncy.get('#paymentInformationCard__expiryYear').select('2027', {\n force: true\n}).should('have.value', '2027');\ncy.get('#paymentInformationCard__Cvv').clear().type('667');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (****1111) is saved successfully.').should('be.visible');", "err": {}, "uuid": "5512b111-782d-432b-91af-b8b43d258548", "parentUUID": "f0cee881-1e58-4e27-b914-3a323c54d3c5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "5512b111-782d-432b-91af-b8b43d258548" ], "failures": [], "pending": [], "skipped": [], "duration": 178989, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d9feb275-f0f4-4d05-b2de-c6cc0aac54f3", "title": "", "fullFile": "cypress/integration/g-customer/43Add_Public_Payment_BankTransfer_Authorizenet.spec.js", "file": "cypress/integration/g-customer/43Add_Public_Payment_BankTransfer_Authorizenet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e9fb1d8f-9fc1-4bd6-9354-467231d4f2ff", "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": 189810, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#confirmation_config_integration button').contains('Close').click({\n force: true\n});\ncy.wait(5000);\ncy.contains('Customers').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.link-primary').eq(1).click({\n force: true\n});\ncy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n});\ncy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n});\ncy.get('#PaymentMethod-subpanel .pull-right a').contains('Public Payment Method Page').then(function ($ele) {\n var href = $ele.prop('href');\n cy.visit(href);\n});\ncy.wait(10000);\ncy.get('#sc_pcp-chk-acc-info_lbl-acc-info').contains('Card Holder Information').should('exist');\ncy.get('#sc_pcp-chk-billing-addr_lbl-billing-addr').contains('Address').should('exist');\ncy.get('#sc_pcp-chk-payment_lbl-payment-info').contains('Payment Information').should('exist');\ncy.get('#sc_pcp-chk-acc-info_inp-fname-el').type('Andy');\ncy.get('#sc_pcp-chk-acc-info_inp-lname-el').type('Barymore');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy');\ncy.get('#sc_pcp-chk-acc-info_inp-notes-el').type('This is the description');\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-container').click({\n force: true\n});\ncy.wait(5000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-sc_pcp-chk-billing-addr-inp-country-el-results li').contains('United States').click({\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-state-el').type('New York', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-city-el').type('Adams', {\n force: true\n});\ncy.get('#sc_pcp-chk-billing-addr-inp-zip-el').type('55500');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline1-el').type('house 1');\ncy.get('#sc_pcp-chk-billing-addr-inp-addrline2-el').type('street 1');\ncy.get('#sc_pcp-chk-payment_ach-tab').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#sc_pcp-chk-subscribe_el_btn').dblclick({\n force: true\n});\ncy.wait(10000);\ncy.get('#ach-errors').contains('Please provide valid account number.').should('be.visible');\ncy.get('#paymentInformationBank__accountNumber').type('111111111');\ncy.get('#paymentInformationBank__routingNumber').type('021000021');\ncy.get('#termsAndConditions').click({\n force: true\n});\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(10000);\ncy.get('.row h5').contains('* Please enter a valid email address').should('be.visible');\ncy.get('#sc_pcp-chk-acc-info_inp-email-el').type('andy@gmail.com');\ncy.get('#sc_pcp-chk-subscribe_el_btn').click({\n force: true\n});\ncy.wait(18000);\ncy.get('.lead').contains('Your payment method (****1111) is saved successfully.').should('be.visible');", "err": {}, "uuid": "8dd9f1eb-c65d-4dbf-85c3-f4859521d71c", "parentUUID": "e9fb1d8f-9fc1-4bd6-9354-467231d4f2ff", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8dd9f1eb-c65d-4dbf-85c3-f4859521d71c" ], "failures": [], "pending": [], "skipped": [], "duration": 189810, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "118288d6-677a-4c5b-8ef2-c998de82e60a", "title": "", "fullFile": "cypress/integration/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "232deb28-119b-442e-a9af-79f14311e4a0", "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": 157080, "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": "AssertionError: Timed out retrying: Expected to find content: 'Your payment method (****6270) is saved 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 payment method (****6270) is saved 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/g-customer/44Add_Public_Payment_CreditCard_PayPalPro.spec.js:216:87)", "diff": null }, "uuid": "3c666bb1-1071-42a7-9bb1-93120be71be6", "parentUUID": "232deb28-119b-442e-a9af-79f14311e4a0", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "3c666bb1-1071-42a7-9bb1-93120be71be6" ], "pending": [], "skipped": [], "duration": 157080, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2e4c2781-6daa-4c85-92c9-721b4a6593c5", "title": "", "fullFile": "cypress/integration/g-customer/45Add_Public_Payment_CreditCard_Stripe.spec.js", "file": "cypress/integration/g-customer/45Add_Public_Payment_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "87bf94fa-11c4-4aed-851c-16a1fc0a4e7b", "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": 175521, "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": "b76f9de2-bae3-4bbc-88f4-0eb13c71e622", "parentUUID": "87bf94fa-11c4-4aed-851c-16a1fc0a4e7b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b76f9de2-bae3-4bbc-88f4-0eb13c71e622" ], "failures": [], "pending": [], "skipped": [], "duration": 175521, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "18526204-fa4d-4df7-bc40-09423b662486", "title": "", "fullFile": "cypress/integration/g-customer/46Add_Public_Payment_BankTransfer_Stripe.spec.js", "file": "cypress/integration/g-customer/46Add_Public_Payment_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "9ac0eaac-f2a9-4d72-9d56-15aea26df5c0", "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": 204744, "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": "d1ae5e04-5d3b-4077-a970-ecccfd80be4a", "parentUUID": "9ac0eaac-f2a9-4d72-9d56-15aea26df5c0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d1ae5e04-5d3b-4077-a970-ecccfd80be4a" ], "failures": [], "pending": [], "skipped": [], "duration": 204744, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e41631f3-d229-41a0-bd2f-a8706678f0e9", "title": "", "fullFile": "cypress/integration/g-customer/48Add_Public_Payment_PayPalExpress.spec.js", "file": "cypress/integration/g-customer/48Add_Public_Payment_PayPalExpress.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "3caddd62-420a-4423-bda4-54490c51d284", "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": 154195, "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": "66ab6855-0be0-4ebe-b6ba-8856b5ee79dc", "parentUUID": "3caddd62-420a-4423-bda4-54490c51d284", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "66ab6855-0be0-4ebe-b6ba-8856b5ee79dc" ], "failures": [], "pending": [], "skipped": [], "duration": 154195, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "dfadfa7b-d7d4-48d9-9a5c-77cf8dbbfcdb", "title": "", "fullFile": "cypress/integration/g-customer/49Process_Payment_Cash_Amount_Equal_To_Total_Inv_Amount.spec.js", "file": "cypress/integration/g-customer/49Process_Payment_Cash_Amount_Equal_To_Total_Inv_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8672c2e3-1b6d-4bfb-ab40-c1ff2bca006f", "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": 44582, "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('#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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/49Process_Payment_Cash_Amount_Equal_To_Total_Inv_Amount.spec.js:117:8)", "diff": null }, "uuid": "46e22997-de00-4657-ac49-2f2e7b983a57", "parentUUID": "8672c2e3-1b6d-4bfb-ab40-c1ff2bca006f", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "46e22997-de00-4657-ac49-2f2e7b983a57" ], "pending": [], "skipped": [], "duration": 44582, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3132b682-f10e-4256-be70-fb62b1fc2ca5", "title": "", "fullFile": "cypress/integration/g-customer/50Process_Payment_Cash_Amount_GreaterThan_Total_Int_Amount.spec.js", "file": "cypress/integration/g-customer/50Process_Payment_Cash_Amount_GreaterThan_Total_Int_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "423b6222-39ae-42c1-a1b2-003de3fc6674", "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": 43226, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/50Process_Payment_Cash_Amount_GreaterThan_Total_Int_Amount.spec.js:117:8)", "diff": null }, "uuid": "5314d6ab-b627-4d36-b56a-8db5b309721d", "parentUUID": "423b6222-39ae-42c1-a1b2-003de3fc6674", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "5314d6ab-b627-4d36-b56a-8db5b309721d" ], "pending": [], "skipped": [], "duration": 43226, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7e602ba1-fd92-471d-8523-0c6d7129d88f", "title": "", "fullFile": "cypress/integration/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js", "file": "cypress/integration/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6fcb68aa-a566-46ea-a5ab-e8e49d4f8581", "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": 42826, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Paid', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/51Process_Payment_Cheque_Status_Paid.spec.js:117:8)", "diff": null }, "uuid": "68bbae51-cbb0-405d-83e6-60d5b3de60a4", "parentUUID": "6fcb68aa-a566-46ea-a5ab-e8e49d4f8581", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "68bbae51-cbb0-405d-83e6-60d5b3de60a4" ], "pending": [], "skipped": [], "duration": 42826, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d630fc3b-0e93-475d-9542-a1fbf2e652ea", "title": "", "fullFile": "cypress/integration/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js", "file": "cypress/integration/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c19a3ace-0371-4834-90e4-7ef4525890b9", "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": 43732, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#approve-modal\"]').click({\n force: true\n });\n cy.get('#approve-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/52Process_Payment_Cheque_Status_Approve_Pending.spec.js:117:8)", "diff": null }, "uuid": "1a88d2b4-2b1b-4606-8583-d17d9b024443", "parentUUID": "c19a3ace-0371-4834-90e4-7ef4525890b9", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "1a88d2b4-2b1b-4606-8583-d17d9b024443" ], "pending": [], "skipped": [], "duration": 43732, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "29c58b10-799e-4a21-ab9a-180bf0cda92b", "title": "", "fullFile": "cypress/integration/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js", "file": "cypress/integration/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1cda1ce0-483b-4051-aba7-8061abec16c0", "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": 44737, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n }\n cy.get('#cash_or_card-input').select('Cheque', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#receive_amount').clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#decline-modal\"]').click({\n force: true\n });\n cy.get('#decline-form textarea').type('Some reason');\n cy.get('#decline-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Declined');\n });\n });\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/53Process_Payment_Cheque_Status_Decline_Pending.spec.js:117:8)", "diff": null }, "uuid": "082d521d-9eb7-4d69-9e98-06f9a6d521fb", "parentUUID": "1cda1ce0-483b-4051-aba7-8061abec16c0", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "082d521d-9eb7-4d69-9e98-06f9a6d521fb" ], "pending": [], "skipped": [], "duration": 44737, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "bd86e827-027f-4fd5-86d3-75148d53ad32", "title": "", "fullFile": "cypress/integration/g-customer/54Process_Payment_BankTransfer.spec.js", "file": "cypress/integration/g-customer/54Process_Payment_BankTransfer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "70e77904-31cd-49cf-925a-83ba381a6c0b", "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": 43382, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/54Process_Payment_BankTransfer.spec.js:117:8)", "diff": null }, "uuid": "ae06ddca-ac2d-40d1-88cd-6691ea4eb832", "parentUUID": "70e77904-31cd-49cf-925a-83ba381a6c0b", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "ae06ddca-ac2d-40d1-88cd-6691ea4eb832" ], "pending": [], "skipped": [], "duration": 43382, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "733b9abf-7ce7-4e56-b3a6-e42df06cd64c", "title": "", "fullFile": "cypress/integration/g-customer/55Cancel_Process_Payment.spec.js", "file": "cypress/integration/g-customer/55Cancel_Process_Payment.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "99d52435-59cd-4bb6-9006-d9cfd1b542e3", "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": 42983, "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 }).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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/55Cancel_Process_Payment.spec.js:117:8)", "diff": null }, "uuid": "6814f78b-2366-4d08-9fb1-e7b34ed95b2f", "parentUUID": "99d52435-59cd-4bb6-9006-d9cfd1b542e3", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "6814f78b-2366-4d08-9fb1-e7b34ed95b2f" ], "pending": [], "skipped": [], "duration": 42983, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0cc9026f-3f38-4655-a452-9d4906fa4423", "title": "", "fullFile": "cypress/integration/g-customer/56Process_Payment_Wire_Status_Paid.spec.js", "file": "cypress/integration/g-customer/56Process_Payment_Wire_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a1f71a9f-e7b6-4cb1-8865-522c48fde6cc", "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": 42847, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Paid', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/56Process_Payment_Wire_Status_Paid.spec.js:117:8)", "diff": null }, "uuid": "3af701aa-212d-4096-8ef6-1d701c7cd81f", "parentUUID": "a1f71a9f-e7b6-4cb1-8865-522c48fde6cc", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "3af701aa-212d-4096-8ef6-1d701c7cd81f" ], "pending": [], "skipped": [], "duration": 42847, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8e829b0d-5c73-4928-8d03-9c8dade1e3ab", "title": "", "fullFile": "cypress/integration/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js", "file": "cypress/integration/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "fdc1ab25-6bf5-46af-b886-898c900b6d5d", "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": 43418, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#approve-modal\"]').click({\n force: true\n });\n cy.get('#approve-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(p).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n });\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/57Process_Payment_Wire_Status_Approve_Pending.spec.js:117:8)", "diff": null }, "uuid": "69b1128f-3c95-4e12-8b52-141ff4d80f43", "parentUUID": "fdc1ab25-6bf5-46af-b886-898c900b6d5d", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "69b1128f-3c95-4e12-8b52-141ff4d80f43" ], "pending": [], "skipped": [], "duration": 43418, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0d34542e-33e4-4880-ba95-713a6edae458", "title": "", "fullFile": "cypress/integration/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js", "file": "cypress/integration/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0bd7a38d-0400-4f5b-85a0-7a7148064f77", "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": 43808, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n }\n cy.get('#cash_or_card-input').select('Wire', {\n force: true\n });\n cy.get('#status_pay-input').select('Pending', {\n force: true\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n m = m + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody a span').eq(0).click({\n force: true\n }).then(function () {\n cy.wait(7000);\n cy.get('a[data-target=\"#decline-modal\"]').click({\n force: true\n });\n cy.get('#decline-form textarea').type('Some reason');\n cy.get('#decline-form button[type=\"submit\"]').click({\n force: true\n });\n });\n var p;\n var q;\n var r = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n q = r + 1;\n p = r - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(r).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(q).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + bal;\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n } else {\n r = r + 11;\n }\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Declined');\n });\n });\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/58Process_Payment_Wire_Status_Decline_Pending.spec.js:117:8)", "diff": null }, "uuid": "9fe57534-cd47-4b92-a35d-96de50c6bdf1", "parentUUID": "0bd7a38d-0400-4f5b-85a0-7a7148064f77", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "9fe57534-cd47-4b92-a35d-96de50c6bdf1" ], "pending": [], "skipped": [], "duration": 43808, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a68b4c7d-febb-48fc-98a1-229d708e2525", "title": "", "fullFile": "cypress/integration/g-customer/59Process_Payment_Card.spec.js", "file": "cypress/integration/g-customer/59Process_Payment_Card.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5708215c-906a-4393-8890-8f1deab9f1ff", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Process Payment Make payment through Card", "timedOut": null, "duration": 43374, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('Card', {\n force: true\n });\n cy.get('#payment-method-link i.fas.fa-plus').click({\n force: true\n });\n cy.wait(5000);\n cy.get('#payment-gateway-input').select('Authorize.NET');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('#card_number-input').type('4111111111111111');\n cy.get('#expiry_month-input').select('06').should('have.value', '06');\n cy.get('#expiry_year-input').select('2024').should('have.value', '2024');\n cy.get('#card_cvv-input').type('123');\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.get('#payment_method_id-input option').contains('Default').then(function (option) {\n cy.get('#payment_method_id-input').select(option.val(), {\n force: true\n });\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(12000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/59Process_Payment_Card.spec.js:117:8)", "diff": null }, "uuid": "7c2faf8b-6ece-4d46-a6c8-403721c1b901", "parentUUID": "5708215c-906a-4393-8890-8f1deab9f1ff", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "7c2faf8b-6ece-4d46-a6c8-403721c1b901" ], "pending": [], "skipped": [], "duration": 43374, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ebfe8409-6c0d-49af-9389-fe829c158dcf", "title": "", "fullFile": "cypress/integration/g-customer/60Process_Payment_eCheck.spec.js", "file": "cypress/integration/g-customer/60Process_Payment_eCheck.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f1cad0c7-6ca1-43b1-a321-924e420a0926", "title": "Process Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Process Payment Make payment through eCheck", "timedOut": null, "duration": 43353, "state": "failed", "speed": null, "pass": false, "fail": true, "pending": false, "context": null, "code": "cy.visit(\"/en/customers\");\ncy.check();\ncy.get('input[type=\"search\"]').type('Andy Barymore', {\n force: true\n}).then(function () {\n cy.wait(10000);\n cy.get('.link-primary').eq(1).click({\n force: true\n });\n});\ncy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n});\ncy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n cy.url().then(function (profURL) {\n cy.get('button.btn.detail-btn-bars').click({\n force: true\n });\n cy.get('ul li').contains('Process Payment').click({\n force: true\n });\n cy.url().should('contain', '/process-payment/');\n cy.get('.card-header').contains('Basic Information').should('be.visible');\n cy.get('.card-header').contains('Apply Payment').should('be.visible');\n cy.get('tbody td').then(function (invoicesamt) {\n if (invoicesamt.text().includes('No Unpaid or Overdue invoices found')) {\n cy.url().then(function (myUrl) {\n cy.visit(profURL);\n cy.contains('Edit').click({\n force: true\n });\n cy.get('#auto_charge-input').then(function (isChecked) {\n if (isChecked.prop('checked')) {\n cy.get(isChecked).click({\n force: true\n });\n }\n });\n cy.get('button.btn-create').eq(1).click({\n force: true\n });\n createOrder();\n cy.visit(myUrl);\n });\n }\n });\n });\n cy.wait(7000);\n cy.get('input[type=\"checkbox\"]').eq(0).click({\n force: true\n });\n cy.wait(5000);\n var newbal = 0;\n var status;\n cy.get('input[type=\"checkbox\"]').eq(1).click({\n force: true\n });\n cy.get('td').eq(5).then(function (balance) {\n cy.get('.inv_payment').eq(0).clear({\n force: true\n }).type(20, {\n force: true\n });\n cy.get('td').eq(1).then(function (invname) {\n var bal = balance.text().replace(/[$,]+/g, \"\");\n bal = parseFloat(bal);\n if (bal < 20) {\n cy.get('.inv_payment').eq(0).should('have.value', bal);\n newbal = bal;\n status = \"Paid\";\n } else if (bal > 20) {\n newbal = 20;\n status = \"Partially Paid\";\n } else {\n newbal = 20;\n status = \"Paid\";\n }\n cy.get('#cash_or_card-input').select('eCheck', {\n force: true\n });\n cy.get('#payment-method-link i.fas.fa-plus').click({\n force: true\n });\n cy.wait(10000);\n cy.get('#payment-gateway-input').select('Authorize.NET');\n cy.get('#first_name-input').type('FirstName');\n cy.get('#last_name-input').type('LastName');\n cy.get('#select2-billing_country-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('United States');\n cy.wait(7000);\n cy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n });\n cy.get('#select2-billing_state-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('.select2-search__field').type('New York');\n cy.wait(7000);\n cy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n });\n cy.get('#select2-billing_city-input-container').click({\n force: true\n });\n cy.wait(7000);\n cy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n });\n cy.get('#card_number-input').type('4111111111111111');\n cy.get('#expiry_month-input').select('10').should('have.value', '10');\n cy.get('#expiry_year-input').select('2027').should('have.value', '2027');\n cy.get('#card_cvv-input').type('123');\n cy.get('#save_button_dis').click({\n force: true\n });\n cy.wait(20000);\n cy.get('#payment_method_id-input option').contains('Default').then(function (option) {\n cy.get('#payment_method_id-input').select(option.val());\n });\n cy.get('#reference').type('abc123', {\n force: true\n });\n cy.get('#description').type('This is a description', {\n force: true\n });\n cy.get('#account_code_select option').eq(1).then(function (option) {\n cy.get('#account_code_select').select(option.val(), {\n force: true\n });\n });\n cy.get('input[type=\"submit\"]').click({\n force: true\n });\n cy.wait(3000);\n cy.get('#confirmation-modal button').contains('Yes').click({\n force: true\n });\n cy.wait(18000);\n cy.reload();\n cy.get('[href=\"#Invoice-subpanel\"]').contains(' Invoices ').click({\n force: true\n });\n var j;\n var k;\n var m = 7;\n cy.get('#relatedList-bulk-action-Invoice_Customer td a span').each(function (row) {\n if (row.text().includes(invname.text())) {\n k = m + 1;\n j = m - 1;\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(m).then(function (OB) {\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(k).then(function (CB) {\n var OpeningBalance = OB.text().replace(/[$,]+/g, \"\");\n OpeningBalance = parseFloat(OpeningBalance);\n var ClosingBalance = CB.text().replace(/[$,]+/g, \"\");\n ClosingBalance = parseFloat(ClosingBalance);\n var ClosingBalance1 = OpeningBalance + (bal - newbal);\n expect(ClosingBalance1).eq(ClosingBalance);\n });\n });\n cy.get('#relatedList-bulk-action-Invoice_Customer td').eq(j).then(function (statusnew) {\n expect(statusnew.text()).to.include(status);\n });\n } else {\n m = m + 11;\n }\n });\n });\n });\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(2).then(function (element) {\n var el = element.text().replace(/[$,]+/g, \"\");\n el = parseInt(el);\n expect(el).to.eq(0);\n });\n cy.get('#relatedList-bulk-action-Transaction_Customer tbody td').eq(6).then(function (stat) {\n expect(stat.text()).to.include('Paid');\n });\n});", "err": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/60Process_Payment_eCheck.spec.js:117:8)", "diff": null }, "uuid": "b3f69103-572d-4284-a9be-27c7e191565e", "parentUUID": "f1cad0c7-6ca1-43b1-a321-924e420a0926", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "b3f69103-572d-4284-a9be-27c7e191565e" ], "pending": [], "skipped": [], "duration": 43353, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f19b97cd-3146-46d2-bb73-111958320e77", "title": "", "fullFile": "cypress/integration/g-customer/61Process_Payment_PayPal_Approve.spec.js", "file": "cypress/integration/g-customer/61Process_Payment_PayPal_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2fd5ca3a-691c-4ca5-ab05-33632fa99050", "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": 43705, "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: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/61Process_Payment_PayPal_Approve.spec.js:117:8)", "diff": null }, "uuid": "fac47374-e9c5-4860-92c8-9f9cdaf1741a", "parentUUID": "2fd5ca3a-691c-4ca5-ab05-33632fa99050", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "fac47374-e9c5-4860-92c8-9f9cdaf1741a" ], "pending": [], "skipped": [], "duration": 43705, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2a22a545-8eb9-4c39-8d5d-178545a18c26", "title": "", "fullFile": "cypress/integration/g-customer/62Process_Payment_PayPal_Decline.spec.js", "file": "cypress/integration/g-customer/62Process_Payment_PayPal_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a5939ad1-4ba1-4fea-9149-df010d71a1c5", "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": 43525, "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: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/62Process_Payment_PayPal_Decline.spec.js:117:8)", "diff": null }, "uuid": "df21ead1-d828-484a-a077-7747ef311654", "parentUUID": "a5939ad1-4ba1-4fea-9149-df010d71a1c5", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "df21ead1-d828-484a-a077-7747ef311654" ], "pending": [], "skipped": [], "duration": 43525, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3164bb02-fef8-4e7d-b9a2-cc3b7e9bf4fc", "title": "", "fullFile": "cypress/integration/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/g-customer/63Add_Payment_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5aeee866-310e-48b2-9f5b-7a18b61a11ed", "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": 193314, "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": "67aa8797-e660-4af7-ab54-a2571592db8a", "parentUUID": "5aeee866-310e-48b2-9f5b-7a18b61a11ed", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "67aa8797-e660-4af7-ab54-a2571592db8a" ], "failures": [], "pending": [], "skipped": [], "duration": 193314, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "75cdf854-e764-43ec-be87-75b4052e57c4", "title": "", "fullFile": "cypress/integration/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a0c9099b-5130-417c-8037-533639287423", "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": 119285, "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/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js:195:72)\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/g-customer/64Add_Payment_CreditCard_PayPalPro.spec.js:129:9)", "diff": null }, "uuid": "e803c117-08ed-4140-8419-811dd1ea0544", "parentUUID": "a0c9099b-5130-417c-8037-533639287423", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "e803c117-08ed-4140-8419-811dd1ea0544" ], "pending": [], "skipped": [], "duration": 119285, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c5f311e6-413f-436a-a617-86be0112452a", "title": "", "fullFile": "cypress/integration/g-customer/65Add_Payment_CreditCard_Stripe.spec.js", "file": "cypress/integration/g-customer/65Add_Payment_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "037eca59-1fd9-4bfe-b4b2-19174d42faf6", "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": 206334, "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": "1358ddbc-965d-4781-8293-c15bf21aa988", "parentUUID": "037eca59-1fd9-4bfe-b4b2-19174d42faf6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "1358ddbc-965d-4781-8293-c15bf21aa988" ], "failures": [], "pending": [], "skipped": [], "duration": 206334, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e79f0a64-5b2f-4622-a84a-57e3f33e9ef3", "title": "", "fullFile": "cypress/integration/g-customer/66Add_Payment_BankTransfer_Stripe.spec.js", "file": "cypress/integration/g-customer/66Add_Payment_BankTransfer_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "aa019f58-bcab-484f-ac29-030561d31bc4", "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": 202648, "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": "de929d72-683b-44d8-b1cc-1569fac6ef2a", "parentUUID": "aa019f58-bcab-484f-ac29-030561d31bc4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "de929d72-683b-44d8-b1cc-1569fac6ef2a" ], "failures": [], "pending": [], "skipped": [], "duration": 202648, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c389fefe-104e-418c-ac05-4ef6123df03d", "title": "", "fullFile": "cypress/integration/g-customer/67Add_Payment_GoCardless.spec.js", "file": "cypress/integration/g-customer/67Add_Payment_GoCardless.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "230004bf-af89-40c5-826b-c8a1ad31af94", "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": 191459, "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": "be417675-5ff0-413c-a237-ef199b3dfa7e", "parentUUID": "230004bf-af89-40c5-826b-c8a1ad31af94", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "be417675-5ff0-413c-a237-ef199b3dfa7e" ], "failures": [], "pending": [], "skipped": [], "duration": 191459, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5bbb13d8-e77e-4af9-a5f7-6ab181a38dce", "title": "", "fullFile": "cypress/integration/g-customer/68Add_Payment_PayPalExpress.spec.js", "file": "cypress/integration/g-customer/68Add_Payment_PayPalExpress.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2a64ad97-8ea1-44d0-9f18-2157bd2c4e9c", "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": 187772, "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": "bb8d4a11-50dc-4050-b13a-823b20971879", "parentUUID": "2a64ad97-8ea1-44d0-9f18-2157bd2c4e9c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "bb8d4a11-50dc-4050-b13a-823b20971879" ], "failures": [], "pending": [], "skipped": [], "duration": 187772, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2b5e18d4-9c0c-4dd9-a846-22c6d6107712", "title": "", "fullFile": "cypress/integration/g-customer/69Add_Payment_Uncheck_Default.spec.js", "file": "cypress/integration/g-customer/69Add_Payment_Uncheck_Default.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5bef7537-ff91-40c7-bb2f-01b06e421f30", "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": 183377, "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": "4b67724d-df65-4536-8862-e85fd7eb1020", "parentUUID": "5bef7537-ff91-40c7-bb2f-01b06e421f30", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4b67724d-df65-4536-8862-e85fd7eb1020" ], "failures": [], "pending": [], "skipped": [], "duration": 183377, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "52d40760-7286-42ee-aac2-7e0255bc688b", "title": "", "fullFile": "cypress/integration/g-customer/70Cancel_Add_Payment.spec.js", "file": "cypress/integration/g-customer/70Cancel_Add_Payment.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ddea6370-328a-4887-ac68-bd4818351b38", "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": 110857, "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": "7e32abf8-a32b-473d-9a80-30df3817fa03", "parentUUID": "ddea6370-328a-4887-ac68-bd4818351b38", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7e32abf8-a32b-473d-9a80-30df3817fa03" ], "failures": [], "pending": [], "skipped": [], "duration": 110857, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b80ce37e-ced8-46b4-a885-a7b0f4689d8a", "title": "", "fullFile": "cypress/integration/g-customer/71Allocate_Existing_Credits.spec.js", "file": "cypress/integration/g-customer/71Allocate_Existing_Credits.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ceeda097-3d11-443a-9573-f680c832dae5", "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": 286147, "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": "8a1ee882-239a-47ec-97ab-e6d40c44d196", "parentUUID": "ceeda097-3d11-443a-9573-f680c832dae5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8a1ee882-239a-47ec-97ab-e6d40c44d196" ], "failures": [], "pending": [], "skipped": [], "duration": 286147, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d0e1a69b-152c-4b2c-b978-f3c35af03d65", "title": "", "fullFile": "cypress/integration/g-customer/72Allocate_Existing_Credits_Amt_Gtr_Balance.spec.js", "file": "cypress/integration/g-customer/72Allocate_Existing_Credits_Amt_Gtr_Balance.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0fe1d722-32b9-4945-bffd-ab149bffa80c", "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": 287402, "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": "9ca11d1a-41b6-4a64-836a-5eafcf4c3a04", "parentUUID": "0fe1d722-32b9-4945-bffd-ab149bffa80c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9ca11d1a-41b6-4a64-836a-5eafcf4c3a04" ], "failures": [], "pending": [], "skipped": [], "duration": 287402, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "d8228e28-b563-4b32-a0e3-4ef22d6159c6", "title": "", "fullFile": "cypress/integration/g-customer/73Allocate_Existing_Credits_Amt_Lt_Balance.spec.js", "file": "cypress/integration/g-customer/73Allocate_Existing_Credits_Amt_Lt_Balance.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "fe04e74a-b923-4ef7-9c35-4932eb61df26", "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": 302456, "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": "a45034a7-19a0-48d1-9bdd-27bfec65f91f", "parentUUID": "fe04e74a-b923-4ef7-9c35-4932eb61df26", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a45034a7-19a0-48d1-9bdd-27bfec65f91f" ], "failures": [], "pending": [], "skipped": [], "duration": 302456, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e7d5cec3-1f94-458b-bb63-7f9efb113db3", "title": "", "fullFile": "cypress/integration/g-customer/74Allocate_Existing_Credits_Amt_Gtr_Outstanding.spec.js", "file": "cypress/integration/g-customer/74Allocate_Existing_Credits_Amt_Gtr_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0eb2f4f7-8827-4fb6-90e4-6132394a5a20", "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": 297561, "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": "6a5e6f78-1597-4cd9-9db3-448063a106ec", "parentUUID": "0eb2f4f7-8827-4fb6-90e4-6132394a5a20", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6a5e6f78-1597-4cd9-9db3-448063a106ec" ], "failures": [], "pending": [], "skipped": [], "duration": 297561, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "09920e98-3dae-47fb-98c5-0fac69e912dc", "title": "", "fullFile": "cypress/integration/g-customer/75Allocate_Existing_Credits_Amt_Lt_Outstanding.spec.js", "file": "cypress/integration/g-customer/75Allocate_Existing_Credits_Amt_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e77e12fa-c828-486f-982d-989af23ea497", "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": 313377, "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": "7eb123b2-2d37-42f2-957d-592e777b5e32", "parentUUID": "e77e12fa-c828-486f-982d-989af23ea497", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7eb123b2-2d37-42f2-957d-592e777b5e32" ], "failures": [], "pending": [], "skipped": [], "duration": 313377, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fdff6adc-c93c-485d-8412-49c7546db97e", "title": "", "fullFile": "cypress/integration/g-customer/76Allocate_Existing_Credits_Amt_eq_Outstanding.spec.js", "file": "cypress/integration/g-customer/76Allocate_Existing_Credits_Amt_eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d08a3aa0-618b-4fc0-8fd6-b8689a166539", "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": 316143, "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": "848cdd04-d84d-4016-83bc-11005fc701bc", "parentUUID": "d08a3aa0-618b-4fc0-8fd6-b8689a166539", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "848cdd04-d84d-4016-83bc-11005fc701bc" ], "failures": [], "pending": [], "skipped": [], "duration": 316143, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "69ec14e0-a1c8-41eb-b306-9551f6fdff88", "title": "", "fullFile": "cypress/integration/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js", "file": "cypress/integration/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "8cf3c895-f44d-4e08-ad8f-323b50e93e19", "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": 319071, "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/g-customer/77Allocate_Existing_Credits_Multiple_Invoices.spec.js:322:23)", "diff": "- 14\n+ 15\n" }, "uuid": "1e7bd492-e1b9-4c24-9bd9-2eecc5246c0b", "parentUUID": "8cf3c895-f44d-4e08-ad8f-323b50e93e19", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "1e7bd492-e1b9-4c24-9bd9-2eecc5246c0b" ], "pending": [], "skipped": [], "duration": 319071, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "01f2bf8a-baaa-45e3-b121-efce63f3fdb9", "title": "", "fullFile": "cypress/integration/g-customer/78Create_And_Allocate_Credits.spec.js", "file": "cypress/integration/g-customer/78Create_And_Allocate_Credits.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "dc7f46b5-3e64-4eff-96c1-c5669de44997", "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": 165907, "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": "482dd685-0ad5-418b-9662-58def2af3b0b", "parentUUID": "dc7f46b5-3e64-4eff-96c1-c5669de44997", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "482dd685-0ad5-418b-9662-58def2af3b0b" ], "failures": [], "pending": [], "skipped": [], "duration": 165907, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "81e5697b-6a77-42c6-96a5-f144fccaed6e", "title": "", "fullFile": "cypress/integration/g-customer/79Create_And_Allocate_Balance_Gtr_Allocated.spec.js", "file": "cypress/integration/g-customer/79Create_And_Allocate_Balance_Gtr_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "86701d9a-ee29-41f6-ad9c-738d4bf99de4", "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": 177089, "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": "b55308ab-0a82-4b1f-a61f-14ae25bedb1b", "parentUUID": "86701d9a-ee29-41f6-ad9c-738d4bf99de4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b55308ab-0a82-4b1f-a61f-14ae25bedb1b" ], "failures": [], "pending": [], "skipped": [], "duration": 177089, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "f4b98d2d-afd1-434b-a279-3458a81e5bb7", "title": "", "fullFile": "cypress/integration/g-customer/80Create_And_Allocate_Balance_Lt_Allocated.spec.js", "file": "cypress/integration/g-customer/80Create_And_Allocate_Balance_Lt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "45df96b5-a8fb-4e8f-a213-782a3daa5df0", "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": 151468, "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": "afab2082-9d69-4f06-a33b-e9af3c520886", "parentUUID": "45df96b5-a8fb-4e8f-a213-782a3daa5df0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "afab2082-9d69-4f06-a33b-e9af3c520886" ], "failures": [], "pending": [], "skipped": [], "duration": 151468, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "92fc5c35-c70b-4642-916b-390ac082243e", "title": "", "fullFile": "cypress/integration/g-customer/81Create_And_Allocate_Balance_Gtr_Outstanding.spec.js", "file": "cypress/integration/g-customer/81Create_And_Allocate_Balance_Gtr_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5603a174-f103-48ff-89c1-56c2fcc1041b", "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": 154746, "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": "0905d5fb-c7ef-48d1-b90d-4a288726a9be", "parentUUID": "5603a174-f103-48ff-89c1-56c2fcc1041b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "0905d5fb-c7ef-48d1-b90d-4a288726a9be" ], "failures": [], "pending": [], "skipped": [], "duration": 154746, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "6a8ccbfa-1398-486e-88cd-6f1b040b4643", "title": "", "fullFile": "cypress/integration/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js", "file": "cypress/integration/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "23211c4f-d252-4c34-b51b-9ba8f2e1e86c", "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": 154831, "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/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/g-customer/82Create_And_Allocate_Balance_Lt_Outstanding.spec.js:170:11)", "diff": null }, "uuid": "78c170d8-9bd9-4214-9f18-0c9ce91955f8", "parentUUID": "23211c4f-d252-4c34-b51b-9ba8f2e1e86c", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "78c170d8-9bd9-4214-9f18-0c9ce91955f8" ], "pending": [], "skipped": [], "duration": 154831, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7b2fa452-4a96-4742-8d1f-258e20b4d11b", "title": "", "fullFile": "cypress/integration/g-customer/83Create_And_Allocate_Balance_Eq_Outstanding.spec.js", "file": "cypress/integration/g-customer/83Create_And_Allocate_Balance_Eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "90cc32af-df12-4ef3-9d22-ce9aab85dced", "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": 167310, "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": "99410489-cb79-425d-b263-8be3ca2d07ba", "parentUUID": "90cc32af-df12-4ef3-9d22-ce9aab85dced", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "99410489-cb79-425d-b263-8be3ca2d07ba" ], "failures": [], "pending": [], "skipped": [], "duration": 167310, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "fd8ab387-60eb-4ffc-8f4e-ae6b3fc12d68", "title": "", "fullFile": "cypress/integration/g-customer/84Create_And_Allocate_Multiple_Invoices.spec.js", "file": "cypress/integration/g-customer/84Create_And_Allocate_Multiple_Invoices.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "a1e2060d-8300-4f2c-9cde-4a1cd605e76b", "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": 170305, "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": "4e25bf46-382d-4543-a1a2-b245a42b110e", "parentUUID": "a1e2060d-8300-4f2c-9cde-4a1cd605e76b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "4e25bf46-382d-4543-a1a2-b245a42b110e" ], "failures": [], "pending": [], "skipped": [], "duration": 170305, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "20b94c5b-eacd-4abc-9f86-9d1b7a558484", "title": "", "fullFile": "cypress/integration/g-customer/85Create_And_Dont_Allocate.spec.js", "file": "cypress/integration/g-customer/85Create_And_Dont_Allocate.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "5e087dca-4de1-466c-89fd-1e81095ff18d", "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": 166348, "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": "f2e23b7d-17d3-4b0f-8199-237bc3bc558f", "parentUUID": "5e087dca-4de1-466c-89fd-1e81095ff18d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "f2e23b7d-17d3-4b0f-8199-237bc3bc558f" ], "failures": [], "pending": [], "skipped": [], "duration": 166348, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "102ca6ae-4e87-44e6-be28-1c9ba4c2b2e8", "title": "", "fullFile": "cypress/integration/h-order/01-create_order.spec.js", "file": "cypress/integration/h-order/01-create_order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "93f379a8-95d4-4ea1-aff5-02bc0f7c7aba", "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": 54148, "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 element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/01-create_order.spec.js:118:8)", "diff": null }, "uuid": "f082b266-8362-4fea-934c-e30bd551e036", "parentUUID": "93f379a8-95d4-4ea1-aff5-02bc0f7c7aba", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "f082b266-8362-4fea-934c-e30bd551e036" ], "pending": [], "skipped": [], "duration": 54148, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0a2783e2-bd47-49e8-a608-e394a3521866", "title": "", "fullFile": "cypress/integration/h-order/02-create-evergreen-order.spec.js", "file": "cypress/integration/h-order/02-create-evergreen-order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "31668c54-c5ec-4693-95b7-b88c2a2d9e48", "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": 56681, "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-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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/02-create-evergreen-order.spec.js:118:8)", "diff": null }, "uuid": "a5e83e8b-5169-48f7-a5b4-5ad5e712270d", "parentUUID": "31668c54-c5ec-4693-95b7-b88c2a2d9e48", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "a5e83e8b-5169-48f7-a5b4-5ad5e712270d" ], "pending": [], "skipped": [], "duration": 56681, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3d6f7110-c94c-40f0-99e7-250750b82c6c", "title": "", "fullFile": "cypress/integration/h-order/03-create-trial-order.spec.js", "file": "cypress/integration/h-order/03-create-trial-order.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "aab4b4b4-e7bd-475d-ac78-09c57919026c", "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": 55689, "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('.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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/03-create-trial-order.spec.js:118:8)", "diff": null }, "uuid": "41b3df01-80b4-46d8-b90d-4ee8abab3dfe", "parentUUID": "aab4b4b4-e7bd-475d-ac78-09c57919026c", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "41b3df01-80b4-46d8-b90d-4ee8abab3dfe" ], "pending": [], "skipped": [], "duration": 55689, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2c6eda5f-d5cb-4e7f-91ff-dd19f7dad141", "title": "", "fullFile": "cypress/integration/h-order/04-giftsubs.spec.js", "file": "cypress/integration/h-order/04-giftsubs.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1e4905d0-9fcd-4eef-ac31-e12c448af011", "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": 54876, "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('.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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/04-giftsubs.spec.js:118:8)", "diff": null }, "uuid": "4acd9934-3ab9-4c4e-84dd-f56f23eab8f7", "parentUUID": "1e4905d0-9fcd-4eef-ac31-e12c448af011", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "4acd9934-3ab9-4c4e-84dd-f56f23eab8f7" ], "pending": [], "skipped": [], "duration": 54876, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "3faafc56-8838-4120-a56b-e4cf682985bc", "title": "", "fullFile": "cypress/integration/h-order/05-modify-existing-subs.spec.js", "file": "cypress/integration/h-order/05-modify-existing-subs.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6c6d3e84-b2fd-4776-9753-64f1901f5cac", "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": 54917, "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('[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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/05-modify-existing-subs.spec.js:118:8)", "diff": null }, "uuid": "10781d21-d12d-44e9-b3de-241a3b297d09", "parentUUID": "6c6d3e84-b2fd-4776-9753-64f1901f5cac", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "10781d21-d12d-44e9-b3de-241a3b297d09" ], "pending": [], "skipped": [], "duration": 54917, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b00d484d-3d55-4e9b-ba9e-89709b2ac5aa", "title": "", "fullFile": "cypress/integration/h-order/06-increase-quantity.spec.js", "file": "cypress/integration/h-order/06-increase-quantity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ad668b46-e0bb-4ec0-8c98-b40ae2e48137", "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": 55958, "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('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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/06-increase-quantity.spec.js:121:8)", "diff": null }, "uuid": "2bf6f6d1-0cdd-4ef0-86cc-dd9fbe39016a", "parentUUID": "ad668b46-e0bb-4ec0-8c98-b40ae2e48137", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "2bf6f6d1-0cdd-4ef0-86cc-dd9fbe39016a" ], "pending": [], "skipped": [], "duration": 55958, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4b78234d-44e6-4017-ba12-e3015aee35df", "title": "", "fullFile": "cypress/integration/h-order/07-decrease-quantity.spec.js", "file": "cypress/integration/h-order/07-decrease-quantity.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d16a2632-a8f4-4caa-8612-acd3c1442672", "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": 53967, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/07-decrease-quantity.spec.js:121:8)", "diff": null }, "uuid": "74f31d75-5125-4fd4-b92d-be0c872fb0e2", "parentUUID": "d16a2632-a8f4-4caa-8612-acd3c1442672", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "74f31d75-5125-4fd4-b92d-be0c872fb0e2" ], "pending": [], "skipped": [], "duration": 53967, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7878dc1a-5e4e-442e-b394-b2a97bad4a41", "title": "", "fullFile": "cypress/integration/h-order/08-increase-price.spec.js", "file": "cypress/integration/h-order/08-increase-price.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d114796a-522b-4608-96d5-f7e2ec93cae8", "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": 55868, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/08-increase-price.spec.js:121:8)", "diff": null }, "uuid": "9ee315d7-ad99-41d4-9ed6-ea95677faf7f", "parentUUID": "d114796a-522b-4608-96d5-f7e2ec93cae8", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "9ee315d7-ad99-41d4-9ed6-ea95677faf7f" ], "pending": [], "skipped": [], "duration": 55868, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5b67ad38-782a-4d87-9627-7d0110f3fcf6", "title": "", "fullFile": "cypress/integration/h-order/09-decrease-price.spec.js", "file": "cypress/integration/h-order/09-decrease-price.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "1e0a83cb-3a8b-43e5-8063-5b976bd61e42", "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": 54409, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/09-decrease-price.spec.js:121:8)", "diff": null }, "uuid": "a6909e05-045a-43a5-ad0e-fe06918551e1", "parentUUID": "1e0a83cb-3a8b-43e5-8063-5b976bd61e42", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "a6909e05-045a-43a5-ad0e-fe06918551e1" ], "pending": [], "skipped": [], "duration": 54409, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4507f331-d4ef-4bca-a40c-13bcc87d7b30", "title": "", "fullFile": "cypress/integration/h-order/10-change-plan.spec.js", "file": "cypress/integration/h-order/10-change-plan.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6ed881fc-5c77-4f50-bdca-b6c0fc594fa7", "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": 55075, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/10-change-plan.spec.js:121:8)", "diff": null }, "uuid": "2907c302-814f-4775-aca6-125d6fbca8a7", "parentUUID": "6ed881fc-5c77-4f50-bdca-b6c0fc594fa7", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "2907c302-814f-4775-aca6-125d6fbca8a7" ], "pending": [], "skipped": [], "duration": 55075, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "8d241517-ae06-49d4-a074-f187f778b79e", "title": "", "fullFile": "cypress/integration/h-order/11-change-product.spec.js", "file": "cypress/integration/h-order/11-change-product.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e921e010-1109-465b-86a5-69411d10740f", "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": 55526, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/11-change-product.spec.js:121:8)", "diff": null }, "uuid": "6c5f714e-cfd5-4746-bb51-49e67ecb09c6", "parentUUID": "e921e010-1109-465b-86a5-69411d10740f", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "6c5f714e-cfd5-4746-bb51-49e67ecb09c6" ], "pending": [], "skipped": [], "duration": 55526, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "898c8975-ff91-45d7-bf42-9cd902bb9d9e", "title": "", "fullFile": "cypress/integration/h-order/12-add-line-item.spec.js", "file": "cypress/integration/h-order/12-add-line-item.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "345d6930-9689-4eb0-9671-91b73b20fc35", "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": 56079, "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(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": { "message": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-order .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/h-order/12-add-line-item.spec.js:121:8)", "diff": null }, "uuid": "d4886b26-21c6-4d7b-912d-ecca54a0c252", "parentUUID": "345d6930-9689-4eb0-9671-91b73b20fc35", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "d4886b26-21c6-4d7b-912d-ecca54a0c252" ], "pending": [], "skipped": [], "duration": 56079, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "83d929b0-f9f1-4f2a-a980-69dd9d849993", "title": "", "fullFile": "cypress/integration/i-invoices/01Make_Payment_Cash.spec.js", "file": "cypress/integration/i-invoices/01Make_Payment_Cash.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ade2d7d7-01d1-44c2-9b94-495074ad98e1", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Cash", "fullTitle": "Make Payment Make payment through Cash", "timedOut": null, "duration": 107890, "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": "229862c0-26cf-4bc5-9435-28c08a4a0944", "parentUUID": "ade2d7d7-01d1-44c2-9b94-495074ad98e1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "229862c0-26cf-4bc5-9435-28c08a4a0944" ], "failures": [], "pending": [], "skipped": [], "duration": 107890, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "267cf843-ec06-4d42-913b-0af7e660a700", "title": "", "fullFile": "cypress/integration/i-invoices/02Make_Payment_Writeoff.spec.js", "file": "cypress/integration/i-invoices/02Make_Payment_Writeoff.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "07bbaf3b-d4a4-407b-984c-f8480bbd6806", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment writeoff", "fullTitle": "Make Payment Make payment writeoff", "timedOut": null, "duration": 104980, "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": "afd312a1-d184-4c79-917c-96197d0478fc", "parentUUID": "07bbaf3b-d4a4-407b-984c-f8480bbd6806", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "afd312a1-d184-4c79-917c-96197d0478fc" ], "failures": [], "pending": [], "skipped": [], "duration": 104980, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "db7f3b1c-ea13-42e8-8cfa-4daa4ee341ac", "title": "", "fullFile": "cypress/integration/i-invoices/03Make_Payment_BankTransfer.spec.js", "file": "cypress/integration/i-invoices/03Make_Payment_BankTransfer.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2acbfef4-845c-4c77-bff6-1f8b043ec939", "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": 105729, "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": "7b2ef80f-af1f-4044-9039-4d8627967471", "parentUUID": "2acbfef4-845c-4c77-bff6-1f8b043ec939", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "7b2ef80f-af1f-4044-9039-4d8627967471" ], "failures": [], "pending": [], "skipped": [], "duration": 105729, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "80f96fda-c39f-4f59-ac93-d94c04cde9bb", "title": "", "fullFile": "cypress/integration/i-invoices/04Make_Payment_Cheque_Status_Paid.spec.js", "file": "cypress/integration/i-invoices/04Make_Payment_Cheque_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d81c44ef-81d9-4cc2-a8c5-cca1f78fc9e3", "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": 107155, "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": "a199f43d-1f10-4759-a1e3-fc037a8bc305", "parentUUID": "d81c44ef-81d9-4cc2-a8c5-cca1f78fc9e3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "a199f43d-1f10-4759-a1e3-fc037a8bc305" ], "failures": [], "pending": [], "skipped": [], "duration": 107155, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "c0904527-90b9-401a-827a-5b0e4c2a1d6b", "title": "", "fullFile": "cypress/integration/i-invoices/05Make_Payment_Cheque_Status_Approve_Pending.spec.js", "file": "cypress/integration/i-invoices/05Make_Payment_Cheque_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "16315bac-ad18-4ed6-883b-54976462dbda", "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": 161478, "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": "3327aca4-a449-4dd0-ac8f-5d9bb9c62837", "parentUUID": "16315bac-ad18-4ed6-883b-54976462dbda", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "3327aca4-a449-4dd0-ac8f-5d9bb9c62837" ], "failures": [], "pending": [], "skipped": [], "duration": 161478, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "e1c44600-9d51-4568-ad63-4d6946748350", "title": "", "fullFile": "cypress/integration/i-invoices/06Make_Payment_Cheque_Status_Decline_Pending.spec.js", "file": "cypress/integration/i-invoices/06Make_Payment_Cheque_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "76572362-0676-4b7f-b758-826c3eae4af3", "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": 161186, "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": "56b251d6-703b-4cf7-8133-7dc51de317d6", "parentUUID": "76572362-0676-4b7f-b758-826c3eae4af3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "56b251d6-703b-4cf7-8133-7dc51de317d6" ], "failures": [], "pending": [], "skipped": [], "duration": 161186, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "5b648198-3bfb-449c-ab59-cbc4f06ec6bb", "title": "", "fullFile": "cypress/integration/i-invoices/07Make_Payment_Wire_Status_Paid.spec.js", "file": "cypress/integration/i-invoices/07Make_Payment_Wire_Status_Paid.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "6078bc68-bfc5-4acf-93be-d7a7fe9cb7e9", "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": 107613, "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": "2c76559d-ea8d-4793-a551-8e67fd920c05", "parentUUID": "6078bc68-bfc5-4acf-93be-d7a7fe9cb7e9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "2c76559d-ea8d-4793-a551-8e67fd920c05" ], "failures": [], "pending": [], "skipped": [], "duration": 107613, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "af93a85a-e9bf-41ba-ac61-814f3c34e732", "title": "", "fullFile": "cypress/integration/i-invoices/08Make_Payment_Wire_Status_Approve_Pending.spec.js", "file": "cypress/integration/i-invoices/08Make_Payment_Wire_Status_Approve_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "178e556f-9a72-4898-b329-c9ba18f8ba64", "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": 160184, "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": "e26ea039-aa8e-4bd6-bf72-aafc9859dba3", "parentUUID": "178e556f-9a72-4898-b329-c9ba18f8ba64", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e26ea039-aa8e-4bd6-bf72-aafc9859dba3" ], "failures": [], "pending": [], "skipped": [], "duration": 160184, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b8a0e4f3-c5f2-4909-838a-8f97c5887f39", "title": "", "fullFile": "cypress/integration/i-invoices/09Make_Payment_Wire_Status_Decline_Pending.spec.js", "file": "cypress/integration/i-invoices/09Make_Payment_Wire_Status_Decline_Pending.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "d49bfc81-4d68-4dbe-8853-7b1692288c8a", "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": 161382, "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": "be1374c5-35d2-48ce-af71-0b9a5d122deb", "parentUUID": "d49bfc81-4d68-4dbe-8853-7b1692288c8a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "be1374c5-35d2-48ce-af71-0b9a5d122deb" ], "failures": [], "pending": [], "skipped": [], "duration": 161382, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1d06fe13-99d6-4593-8b5a-dae6d84b3a75", "title": "", "fullFile": "cypress/integration/i-invoices/10Make_Payment_Card.spec.js", "file": "cypress/integration/i-invoices/10Make_Payment_Card.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "be3a569b-fb57-4e28-b3ef-93176f5756e0", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through Card", "fullTitle": "Make Payment Make payment through Card", "timedOut": null, "duration": 155298, "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": "AssertionError: Timed out retrying: Expected to find content: 'Default' within the element: <option> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Default' within the element: <option> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/i-invoices/10Make_Payment_Card.spec.js:295:47)", "diff": null }, "uuid": "1cc76d51-598b-4eb8-89a5-0f7cdf9f55c2", "parentUUID": "be3a569b-fb57-4e28-b3ef-93176f5756e0", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "1cc76d51-598b-4eb8-89a5-0f7cdf9f55c2" ], "pending": [], "skipped": [], "duration": 155298, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "b1aa2d4f-f9ce-48a3-9a8f-0d685b69e98f", "title": "", "fullFile": "cypress/integration/i-invoices/11Make_Payment_eCheck.spec.js", "file": "cypress/integration/i-invoices/11Make_Payment_eCheck.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "2bade779-2457-4e42-a344-fd0a4178f1f0", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through eCheck", "fullTitle": "Make Payment Make payment through eCheck", "timedOut": null, "duration": 158588, "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 content: 'Default' within the element: <option> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: 'Default' within the element: <option> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/i-invoices/11Make_Payment_eCheck.spec.js:295:47)", "diff": null }, "uuid": "ba79aa10-5d36-452f-96c8-0d66d7fd5095", "parentUUID": "2bade779-2457-4e42-a344-fd0a4178f1f0", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "ba79aa10-5d36-452f-96c8-0d66d7fd5095" ], "pending": [], "skipped": [], "duration": 158588, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ea8873f3-392a-43b6-a591-10b479c3a5e1", "title": "", "fullFile": "cypress/integration/i-invoices/12Make_Payment_PayPal.spec.js", "file": "cypress/integration/i-invoices/12Make_Payment_PayPal.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "163d9fb0-821c-4299-ae53-3a39d57e2071", "title": "Make Payment", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "Make payment through PayPal", "fullTitle": "Make Payment Make payment through PayPal", "timedOut": null, "duration": 223052, "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 content: '.com' within the element: <option> but never did.", "estack": "AssertionError: Timed out retrying: Expected to find content: '.com' within the element: <option> but never did.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/i-invoices/12Make_Payment_PayPal.spec.js:294:47)", "diff": null }, "uuid": "ea77b6c9-432d-4d46-80e0-2d99f4f43ec7", "parentUUID": "163d9fb0-821c-4299-ae53-3a39d57e2071", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "ea77b6c9-432d-4d46-80e0-2d99f4f43ec7" ], "pending": [], "skipped": [], "duration": 223052, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "342957b2-ce95-4f5a-926d-7e8b94e7eb0e", "title": "", "fullFile": "cypress/integration/i-invoices/13Public_Checkout_Offline_Approve.spec.js", "file": "cypress/integration/i-invoices/13Public_Checkout_Offline_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e65ced5c-071b-4281-bbe1-2fdaf1f45e36", "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": 166236, "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": "23c2f279-0c93-43b2-94ad-296f603d2f4e", "parentUUID": "e65ced5c-071b-4281-bbe1-2fdaf1f45e36", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "23c2f279-0c93-43b2-94ad-296f603d2f4e" ], "failures": [], "pending": [], "skipped": [], "duration": 166236, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7f83253b-0750-4534-b38e-7783028c1126", "title": "", "fullFile": "cypress/integration/i-invoices/14Public_Checkout_Offline_Decline.spec.js", "file": "cypress/integration/i-invoices/14Public_Checkout_Offline_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "795e5fca-4373-4e70-a0dd-030f54bc771a", "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": 166196, "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": "ccf63218-dcc4-4e1e-822a-fcee7b323aa2", "parentUUID": "795e5fca-4373-4e70-a0dd-030f54bc771a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ccf63218-dcc4-4e1e-822a-fcee7b323aa2" ], "failures": [], "pending": [], "skipped": [], "duration": 166196, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "1ce97ca3-2197-4f59-902c-5b75a39bc093", "title": "", "fullFile": "cypress/integration/i-invoices/15Public_Checkout_CreditCard_AuthorizNet.spec.js", "file": "cypress/integration/i-invoices/15Public_Checkout_CreditCard_AuthorizNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ecc1ae36-b22d-42cd-a074-8a362306d86a", "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": 198261, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Authorize.NET').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.visit('https://test.subscriptionflow.com/en/invoices');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "98a709c1-2330-4ce0-89fb-8ca60181a2ad", "parentUUID": "ecc1ae36-b22d-42cd-a074-8a362306d86a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "98a709c1-2330-4ce0-89fb-8ca60181a2ad" ], "failures": [], "pending": [], "skipped": [], "duration": 198261, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "afef0e9f-90c9-429b-80a9-754695fe2e95", "title": "", "fullFile": "cypress/integration/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js", "file": "cypress/integration/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "24e67c2f-8c67-47b6-9b8a-fe5ecf63a68b", "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": 199572, "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 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/i-invoices/16Public_Checkout_BankTransfer_AuthorizeNet.spec.js:296:68)", "diff": null }, "uuid": "008d8289-2fa0-4aaa-ab3e-091342030700", "parentUUID": "24e67c2f-8c67-47b6-9b8a-fe5ecf63a68b", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "008d8289-2fa0-4aaa-ab3e-091342030700" ], "pending": [], "skipped": [], "duration": 199572, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "7a9706f1-4e78-4247-81d8-eca409e08f10", "title": "", "fullFile": "cypress/integration/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js", "file": "cypress/integration/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "e7e55080-2143-4270-80ec-e4f98a432963", "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": 190606, "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/i-invoices/17Public_Checkout_CreditCard_PayPalPro.spec.js:293:68)", "diff": null }, "uuid": "837dfb63-4ed3-49e8-bcfc-d91c88cdf896", "parentUUID": "e7e55080-2143-4270-80ec-e4f98a432963", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "837dfb63-4ed3-49e8-bcfc-d91c88cdf896" ], "pending": [], "skipped": [], "duration": 190606, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "00fc27db-37b1-4146-9436-5f993331a483", "title": "", "fullFile": "cypress/integration/i-invoices/18Public_Checkout_CreditCard_Stripe.spec.js", "file": "cypress/integration/i-invoices/18Public_Checkout_CreditCard_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "832bf968-9292-4117-94bd-095d14815060", "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": 234769, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();\ncy.get('#navbarSupportedContent .fa-cog').click({\n force: true\n});\ncy.url().should('contain', '/settings/administration');\ncy.get('.settings-link').contains('Payment Setting').click({\n force: true\n});\ncy.url().should('contain', '/settings/payment-gateways');\ncy.wait(5000);\ncy.get('.integration-box-item strong').contains('Stripe').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#tab-advance-options').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#default-input').then(function (isChecked) {\n if (isChecked.val() == '0') {\n cy.get(isChecked).click({\n force: true\n });\n }\n});\ncy.get('#btn-save').click({\n force: true\n});\ncy.wait(20000);\ncy.visit('https://test.subscriptionflow.com/en/invoices');\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n var newamount;\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction').then(function (element) {\n if (!element.text().includes('No Records Found')) {\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction1) {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = parseInt(transaction1.text()) + 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n });\n } else {\n makePayment();\n cy.visit(myUrl);\n cy.get('[href=\"#Transaction-subpanel\"]').contains(' Transactions ').click({\n force: true\n });\n cy.get('#related-table-transaction .sf-pagination-wrapper span.bold').eq(0).then(function (transaction2) {\n var count = 1;\n expect(count).to.eq(parseInt(transaction2.text()));\n });\n }\n cy.get('label.badge').should('have.class', 'badge-status-paid');\n });\n});", "err": {}, "uuid": "336376ca-37cb-4d65-9b25-5deb15833670", "parentUUID": "832bf968-9292-4117-94bd-095d14815060", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "336376ca-37cb-4d65-9b25-5deb15833670" ], "failures": [], "pending": [], "skipped": [], "duration": 234769, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "697a59a3-cf19-4846-9b3a-9b6bd95805a3", "title": "", "fullFile": "cypress/integration/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js", "file": "cypress/integration/i-invoices/21Public_Checkout_PayPal_ExpressCheckout_Approve.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "0dda544c-02c7-4ea9-a192-c88e8b0e4b15", "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": 179605, "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": "d0e1e27a-d85e-46b1-8610-17f198c24c91", "parentUUID": "0dda544c-02c7-4ea9-a192-c88e8b0e4b15", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "d0e1e27a-d85e-46b1-8610-17f198c24c91" ], "failures": [], "pending": [], "skipped": [], "duration": 179605, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "81522c92-7aca-427c-a668-c2f470053770", "title": "", "fullFile": "cypress/integration/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js", "file": "cypress/integration/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f5cfb188-18df-4e1e-8ea1-34d179c79164", "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": 137653, "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: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.", "estack": "AssertionError: Timed out retrying: Expected to find element: `#related-table-transaction .sf-pagination-wrapper span.bold`, but never found it.\n at Context.eval (https://test.subscriptionflow.com/__cypress/tests?p=cypress/integration/i-invoices/22Public_Checkout_PayPal_ExpressCheckout_Decline.spec.js:199:14)", "diff": null }, "uuid": "c8513958-ac80-469b-ad52-9a3dabb68f02", "parentUUID": "f5cfb188-18df-4e1e-8ea1-34d179c79164", "isHook": false, "skipped": false } ], "suites": [], "passes": [], "failures": [ "c8513958-ac80-469b-ad52-9a3dabb68f02" ], "pending": [], "skipped": [], "duration": 137653, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "711c90d2-9266-4a22-bd4c-7374f7a4e170", "title": "", "fullFile": "cypress/integration/i-invoices/23Add_payment_method_using_Make_Payment_for_credit_card_using_Authorize.net.spec.js", "file": "cypress/integration/i-invoices/23Add_payment_method_using_Make_Payment_for_credit_card_using_Authorize.net.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "b3822081-c7bb-4f77-8ff7-2015022519bf", "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": 170363, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.visit(myUrl);\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('Card');\ncy.get('#sale_form i.fas.fa-plus').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#payment-gateway-input').select('Authorize.NET');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('#card_number-input').type('4111111111111111');\ncy.get('#expiry_month-input').select('08').should('have.value', '08');\ncy.get('#expiry_year-input').select('2021').should('have.value', '2021');\ncy.get('#card_cvv-input').type('765');\ncy.get('#save_button_dis').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#payment_method_id-input option').each(function (option) {\n if (option.text().includes('Default')) {\n expect(option.text()).to.include('1111');\n }\n});", "err": {}, "uuid": "9c296b51-7b83-405b-be9b-d2c27e6b7e93", "parentUUID": "b3822081-c7bb-4f77-8ff7-2015022519bf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "9c296b51-7b83-405b-be9b-d2c27e6b7e93" ], "failures": [], "pending": [], "skipped": [], "duration": 170363, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "32ff6e8b-c78b-4eba-a800-9d8023ccc9f8", "title": "", "fullFile": "cypress/integration/i-invoices/24Add_payment_method_using_Make_Payment_for_ACH_using_Authorize.net.spec.js", "file": "cypress/integration/i-invoices/24Add_payment_method_using_Make_Payment_for_ACH_using_Authorize.net.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "85c7e453-d1ea-4605-9036-f0fc2181445c", "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": 171794, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"/en/invoices\");\ncy.check();\ncy.wait(10000);\ncy.get('.btn.mob-btn-import.btn-import.dropdown-toggle').contains('More').click({\n force: true\n}).then(function () {\n cy.contains('Edit Columns').click({\n force: true\n });\n cy.get('#name').click({\n force: true\n });\n cy.get('#push_right').click({\n force: true\n });\n cy.get('button[onclick=\"javascript:update_list_view_main(this.form.id)\"]').click({\n force: true\n });\n});\ncy.wait(10000);\ncy.get('.fa-chevron-right').click({\n force: true\n});\ncy.wait(1000);\nvar x = 0;\nvar y;\ncy.get('#sidebar_checkboxes .scheck span').each(function (spans) {\n if (spans.text() == \"Status\") {\n y = \"#filter-condition-field_\" + x + \" input\";\n console.log(y);\n cy.get('#sidebar_checkboxes .scheckbox').eq(x).click({\n force: true\n });\n } else {\n x = x + 1;\n }\n});\nvar i = 0;\nvar j;\ncy.get('.dataTables_scrollHead th').each(function (element) {\n if (element.text() == \"Invoice Number\") {\n j = \"[data-sfuniqueid = dataTable__table-td-\" + i + \"] a span\";\n cy.get('.filerSelect [name=\"filter_condition[status]\"]').should('be.visible').select(\"doesn't contain\", {\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Paid').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Projected').click({\n force: true\n });\n cy.get('.select2-search__field').click({\n force: true\n });\n cy.get('#select2-status-input-results li').contains('Void').click({\n force: true\n });\n cy.get('.apply-filter').contains('Apply Filter').click({\n force: true\n });\n cy.wait(10000);\n cy.get(j).first().click({\n force: true\n });\n } else {\n i = i + 1;\n }\n});\ncy.url().then(function (myUrl) {\n cy.get('.row-c a.link-primary').eq(0).click({\n force: true\n });\n cy.get('[href=\"#PaymentMethod-subpanel').contains('Payment Methods').click({\n force: true\n });\n cy.get('#related-table-paymentmethod').then(function (rows) {\n if (!rows.text().includes('No Records Found')) {\n cy.get('#check-all-PaymentMethod_Customer').click({\n force: true\n });\n cy.get('#action-menu-PaymentMethod_Customer .fa-caret-down').click({\n force: true\n });\n cy.get('a[data-model=\"PaymentMethod\"]').contains('Delete').click({\n force: true\n });\n cy.on('window:confirm', function () {\n return true;\n }).then(function () {\n cy.wait(5000);\n });\n }\n });\n cy.visit(myUrl);\n});\ncy.get('button.btn.detail-btn-bars').click({\n force: true\n});\ncy.get('ul li').contains('Make Payment').click({\n force: true\n});\ncy.wait(10000);\ncy.get('#cash_or_card-input').select('eCheck');\ncy.get('#sale_form i.fas.fa-plus').click({\n force: true\n});\ncy.wait(5000);\ncy.get('#payment-gateway-input').select('Authorize.NET');\ncy.get('#select2-billing_country-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('United States');\ncy.wait(7000);\ncy.get('#select2-billing_country-input-results li').contains('United States').click({\n force: true\n});\ncy.get('#select2-billing_state-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('.select2-search__field').type('New York');\ncy.wait(7000);\ncy.get('#select2-billing_state-input-results li').contains('New York').click({\n force: true\n});\ncy.get('#select2-billing_city-input-container').click({\n force: true\n});\ncy.wait(7000);\ncy.get('#select2-billing_city-input-results li').contains('Adams').click({\n force: true\n});\ncy.get('input[name=\"billing_postalcode\"]').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": {}, "uuid": "55cadd85-4fe7-4af4-bd96-36da6acfc5cc", "parentUUID": "85c7e453-d1ea-4605-9036-f0fc2181445c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "55cadd85-4fe7-4af4-bd96-36da6acfc5cc" ], "failures": [], "pending": [], "skipped": [], "duration": 171794, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "9b944a11-4b0e-45d6-81c5-842ff452a041", "title": "", "fullFile": "cypress/integration/i-invoices/25Add_payment_method_using_Make_Payment_for_credit_card_using_PayPal_Pro.spec.js", "file": "cypress/integration/i-invoices/25Add_payment_method_using_Make_Payment_for_credit_card_using_PayPal_Pro.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "55cdaffe-fc33-47ae-9a6b-b868919720cc", "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": 176793, "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": "53ce84f6-d321-4347-93fb-f73175f47256", "parentUUID": "55cdaffe-fc33-47ae-9a6b-b868919720cc", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "53ce84f6-d321-4347-93fb-f73175f47256" ], "failures": [], "pending": [], "skipped": [], "duration": 176793, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "54cedf6f-e8b4-48ac-9107-c9abc4b6efc5", "title": "", "fullFile": "cypress/integration/i-invoices/26Add_payment_method_using_Make_Payment_for_credit_card_using_Stripe.spec.js", "file": "cypress/integration/i-invoices/26Add_payment_method_using_Make_Payment_for_credit_card_using_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "edb1ab35-1ac6-43b4-bd2d-be21fb570fec", "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": 141178, "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": "e0dfc260-4214-4d39-96f5-cf3bdc6a2731", "parentUUID": "edb1ab35-1ac6-43b4-bd2d-be21fb570fec", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e0dfc260-4214-4d39-96f5-cf3bdc6a2731" ], "failures": [], "pending": [], "skipped": [], "duration": 141178, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "52bf99ba-5aad-446b-8e85-02f272457e56", "title": "", "fullFile": "cypress/integration/i-invoices/27Add_payment_method_using_Make_Payment_for_ACH_using_Stripe.spec.js", "file": "cypress/integration/i-invoices/27Add_payment_method_using_Make_Payment_for_ACH_using_Stripe.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "4462fb3c-44c7-419f-a258-bfbaa3fc7711", "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": 269045, "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('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": {}, "uuid": "b90b6050-4017-4fdb-a5b4-73e28988968a", "parentUUID": "4462fb3c-44c7-419f-a258-bfbaa3fc7711", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b90b6050-4017-4fdb-a5b4-73e28988968a" ], "failures": [], "pending": [], "skipped": [], "duration": 269045, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "bba283e3-262d-4783-882c-a393021fb6d6", "title": "", "fullFile": "cypress/integration/i-invoices/28Add_Payment_Method_using_Make_Payment_for_ACH_using_GoCardless.spec.js", "file": "cypress/integration/i-invoices/28Add_Payment_Method_using_Make_Payment_for_ACH_using_GoCardless.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "496829de-4672-45d6-ab97-c230bd458ef6", "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": 198688, "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": "8912ae29-b7db-4654-915f-6a4d8ecc841e", "parentUUID": "496829de-4672-45d6-ab97-c230bd458ef6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "8912ae29-b7db-4654-915f-6a4d8ecc841e" ], "failures": [], "pending": [], "skipped": [], "duration": 198688, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a5dfb891-efd7-4b69-bf95-cc92cda04def", "title": "", "fullFile": "cypress/integration/j-transactions/01Pay_Invoice_Using_Unapplied_Amount.spec.js", "file": "cypress/integration/j-transactions/01Pay_Invoice_Using_Unapplied_Amount.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "32d910e5-df8b-412a-b7ce-430bb040f50d", "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": 236607, "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": "15819784-7281-4831-aa9f-5f6500f6d6d6", "parentUUID": "32d910e5-df8b-412a-b7ce-430bb040f50d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "15819784-7281-4831-aa9f-5f6500f6d6d6" ], "failures": [], "pending": [], "skipped": [], "duration": 236607, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "595161b0-2f88-45f1-bbed-a58f74c00f3f", "title": "", "fullFile": "cypress/integration/j-transactions/02Pay_Invoice_Using_Unapplied_Amt_Gt_Allocated.spec.js", "file": "cypress/integration/j-transactions/02Pay_Invoice_Using_Unapplied_Amt_Gt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "37129d78-654b-4666-9469-7fde6c929a53", "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": 109116, "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": "6159f4b2-1e92-445f-9bb8-5dcf28324e53", "parentUUID": "37129d78-654b-4666-9469-7fde6c929a53", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "6159f4b2-1e92-445f-9bb8-5dcf28324e53" ], "failures": [], "pending": [], "skipped": [], "duration": 109116, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "2fb85fef-d9c2-48c9-9c19-e5353369da49", "title": "", "fullFile": "cypress/integration/j-transactions/03Pay_Invoice_Using_Unapplied_Amt_Lt_Allocated.spec.js", "file": "cypress/integration/j-transactions/03Pay_Invoice_Using_Unapplied_Amt_Lt_Allocated.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "31d59287-08b7-404e-9254-04345078cd26", "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": 99541, "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": "debadcdb-b694-444b-8e10-54e0c986c6d7", "parentUUID": "31d59287-08b7-404e-9254-04345078cd26", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "debadcdb-b694-444b-8e10-54e0c986c6d7" ], "failures": [], "pending": [], "skipped": [], "duration": 99541, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "4b73e28a-d953-4b4d-83ef-34c7a4908c5d", "title": "", "fullFile": "cypress/integration/j-transactions/04Pay_Invoice_Using_Unapplied_Amt_Lt_Outstanding.spec.js", "file": "cypress/integration/j-transactions/04Pay_Invoice_Using_Unapplied_Amt_Lt_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "ab9c9e57-3e6a-430c-bdc8-f15479d2aa02", "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": 252026, "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": "e69a550d-02e0-4cbb-a8a2-482c3d320819", "parentUUID": "ab9c9e57-3e6a-430c-bdc8-f15479d2aa02", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "e69a550d-02e0-4cbb-a8a2-482c3d320819" ], "failures": [], "pending": [], "skipped": [], "duration": 252026, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "a30fcc4b-2199-4955-9fb5-013106b6a00f", "title": "", "fullFile": "cypress/integration/j-transactions/05Pay_Invoice_Using_Unapplied_Amt_Eq_Outstanding.spec.js", "file": "cypress/integration/j-transactions/05Pay_Invoice_Using_Unapplied_Amt_Eq_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c59cb749-0994-4289-a33a-a898f28fb1a2", "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": 109826, "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": "ccfbf773-48cd-4b4c-b436-a9ac29887fc9", "parentUUID": "c59cb749-0994-4289-a33a-a898f28fb1a2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "ccfbf773-48cd-4b4c-b436-a9ac29887fc9" ], "failures": [], "pending": [], "skipped": [], "duration": 109826, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "59ae1e4b-24ac-44b2-b27e-a88417f58405", "title": "", "fullFile": "cypress/integration/j-transactions/06Pay_Invoice_Using_Unapplied_Amt_Gtr_Than_Outstanding.spec.js", "file": "cypress/integration/j-transactions/06Pay_Invoice_Using_Unapplied_Amt_Gtr_Than_Outstanding.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "03fe9729-ce67-4d1b-a560-40151070a11b", "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": 76213, "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": "92a5cbc8-e3a3-49f3-b141-44d9ec211a46", "parentUUID": "03fe9729-ce67-4d1b-a560-40151070a11b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "92a5cbc8-e3a3-49f3-b141-44d9ec211a46" ], "failures": [], "pending": [], "skipped": [], "duration": 76213, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "0582d7c6-c82b-4551-8290-f2295aa94701", "title": "", "fullFile": "cypress/integration/j-transactions/07Pay_Multiple_Invoice_Using_Unapplied_Amt.spec.js", "file": "cypress/integration/j-transactions/07Pay_Multiple_Invoice_Using_Unapplied_Amt.spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f82377ec-1d36-4b91-9494-6999a3781240", "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": 107040, "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": "57657b59-b408-4b01-a4bb-259108c5db51", "parentUUID": "f82377ec-1d36-4b91-9494-6999a3781240", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "57657b59-b408-4b01-a4bb-259108c5db51" ], "failures": [], "pending": [], "skipped": [], "duration": 107040, "root": false, "rootEmpty": false, "_timeout": 2000 } ], "passes": [], "failures": [], "pending": [], "skipped": [], "duration": 0, "root": true, "rootEmpty": true, "_timeout": 2000 }, { "uuid": "ff443e73-6a60-4dce-8a82-1d029b829361", "title": "", "fullFile": "cypress/integration/k-logout/logout_spec.js", "file": "cypress/integration/k-logout/logout_spec.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "f71a0daf-302b-4413-be9c-e56811a301ff", "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": 17902, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.visit(\"\");\ncy.check();", "err": {}, "uuid": "b8064c2b-73c3-46d4-819a-b755e7cfd0dd", "parentUUID": "f71a0daf-302b-4413-be9c-e56811a301ff", "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": 160, "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": "5dd3d3ca-1049-404a-bde7-2ae5c2d52ca4", "parentUUID": "f71a0daf-302b-4413-be9c-e56811a301ff", "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": 3693, "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": "5d328741-d00f-459d-af6e-c7655da70bf2", "parentUUID": "f71a0daf-302b-4413-be9c-e56811a301ff", "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": 2330, "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": "0c24afc9-a615-4eab-850b-e1589a172cde", "parentUUID": "f71a0daf-302b-4413-be9c-e56811a301ff", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "b8064c2b-73c3-46d4-819a-b755e7cfd0dd", "5dd3d3ca-1049-404a-bde7-2ae5c2d52ca4", "5d328741-d00f-459d-af6e-c7655da70bf2", "0c24afc9-a615-4eab-850b-e1589a172cde" ], "failures": [], "pending": [], "skipped": [], "duration": 24085, "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" } } }