diff --git a/packages/terra-functional-testing/src/services/wdio-test-service.js b/packages/terra-functional-testing/src/services/wdio-test-service.js new file mode 100644 index 000000000..631b0915b --- /dev/null +++ b/packages/terra-functional-testing/src/services/wdio-test-service.js @@ -0,0 +1,15 @@ +class TestService { + constructor(options = {}) { + this.serviceOptions = options; + } + + afterCommand(commandName, _args, _result, error) { + if ((commandName === 'url' || commandName === 'refresh') && !error) { + browser.execute(function test() { + console.log('[wdio-test-service] test function'); + }); + } + } +} + +module.exports = TestService;