@open-xchange/codecept-helper

0.13.6 • Public • Published

Open-Xchange App Suite: Codecept helpers

This library contains appsuite specific helpers and actors for Open-Xchange App Suite.

Configuration

Basic config

// inside codecept.conf.js

module.exports.config = {
	'helpers': {
		// other helpers...
        OpenXchange: {
            require: './node_modules/@open-xchange/codecept-helper/src/helper',
			// OpenXchange 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/codecept-helper/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/codecept-helper');
	return actor({
		customFunction: function () {
			// do custom stuff
		}
	});
};

Readme

Keywords

none

Package Sidebar

Install

npm i @open-xchange/codecept-helper

Weekly Downloads

217

Version

0.13.6

License

MIT

Unpacked Size

156 kB

Total Files

31

Last publish

Collaborators

  • tran-dong.tran
  • bjoern.koester
  • hydrair
  • moritz.bach
  • andree
  • anne.matthes
  • johnyb
  • davidbauer
  • solygen
  • daniel.rentz
  • alexquast
  • d.haus
  • maik.schaefer
  • jjacobsohn