Socket
Book a DemoInstallSign in
Socket

cells-component-back-compatibility

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cells-component-back-compatibility

Repository where the functional tests of the components will be executed

latest
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

Compatibility backwards for some components of Cells catalog

Repo with the functional tests for back compatibility in some of the Cells components of BBVA.

Configure the tests

In the components-test.js file we have several variables to configure in order to execute all the tests that we like.

  • flowsToTest: function that returns an array with the configuration of all the flows that you want to check. Example:

    const flowsToTest = () => {
      return [
        {
          name: 'validate',
          exec: validate,
          timeout: 500000
        }
      ];
    };
    

    In this case we have configured the flow validate.

  • testComponents: array with the config of the components to test. Example:

const testComponents = [
  {
    name: 'cells-atom-button',
    url: 'ssh://git@globaldevtools.bbva.com:7999/ca/cells-atom-button.git'
  },
  {
    name: 'cells-molecule-star-rating',
    url: 'ssh://git@globaldevtools.bbva.com:7999/bgcm/cells-molecule-star-rating.git'
  },
  {
    name: 'cells-ajax-behavior',
    url: 'ssh://globaldevtools.bbva.com:7999/CBH/cells-ajax-behavior.git',
    disabled: true
  },
  {
    name: 'cells-template-animation-behavior',
    url: 'ssh://git@globaldevtools.bbva.com:7999/cbh/cells-template-animation-behavior.git',
    disabled: true
  },
  {
    name: 'bgadp-employees',
    url: 'ssh://git@globaldevtools.bbva.com:7999/bbvacellsapi/bgadp-employees.git',
    disabled: true
  },
  {
    name: 'bgadp-investment-funds',
    url: 'ssh://git@globaldevtools.bbva.com:7999/bbvacellsapi/bgadp-investment-funds.git',
    disabled: true
  }
];

NOTE: (20/06/2017) Behaviours and bgadp components are failing on structural-testing step because of a problem reported to catalog team. While this problem was not solved these components are going to be disabled.

  • setPisco: function that set the bin/pisco.js

    const setPisco = () => {
      if (!process.env.piscoExec) {
        process.env.piscoExec = 'cells';
      }
    };
    

    We have to remember that wen this module is executed from the outside, the value of this variable will be the piscosour executable of the recipe to be tested.

Testing the components

If we like to test the components configured in the previous section, we launch simply npm test

Keywords

functional-tests

FAQs

Package last updated on 31 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.