0.1.1 • Published 2 months ago

@open-xchange/appsuite-codeceptjs v0.1.1

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
gitlab
Last release
2 months ago

Open-Xchange App Suite: CodeceptJS

This module contains appsuite specific configuration, helpers, page objects and actors for Open-Xchange App Suite.

Configuration

Basic config

// inside codecept.conf.js

module.exports.config = {
'helpers': {
  // other helpers...
      AppSuite: {
        require: './node_modules/@open-xchange/appsuite-codeceptjs/src/helper',
    // AppSuite helpers and actors rely on users array provided via config
    users: [{
      username: 'testuser1',
      password: 'ultimatelySecure',
      mail: 'testuser1@example.com'
    }]
      }
  },
  'include': {
      'I': './node_modules/@open-xchange/appsuite-codeceptjs/src/actor'
  },
};

If you want to have other actor functions bound to the I object, you can extend our actor in another file as follows:

// inside actor.js

module.exports = function () {
const {actor} = require('@open-xchange/appsuite-codeceptjs');
return actor({
  customFunction: function () {
    // do custom stuff
  }
});

};