1.0.0 • Published 8 months ago

@qavajs/steps-ctp v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

npm version

@qavajs/steps-ctp

Step library to work with commercetools platform SDK in qavajs framework

Installation

npm install @qavajs/steps-ctp

Configuration

const App = require('./page_object');
module.exports = {
    default: {
        require: [
            'node_modules/@qavajs/steps-ctp/index.js'
        ],
        browser: {
            timeout: {
                present: 10000,
                visible: 20000,
                page: 10000
            },
            capabilities: {
                browserName: 'chromium'
            }
        },
        pageObject: new App()
    }
}

Global variables

@qavajs/steps-ctp needed following environment variables:

variabledescriptionobligation
projectKeykey of the commercetools platform projectmandatory
scopesarray of the ctp key scopesmandatory
host_authurl of the host authenticationmandatory
host_middlewareurl of the middleware hostmandatory
clientIdid of the ctp's clientmandatory
clientSecretsecret of the ctp's clientmandatory