From 34b9ccb56d88edc9f41a4b653cf90b13437e081b Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 8 Apr 2022 11:02:16 -0300 Subject: [PATCH] Run setup beforeSuite --- appium/config/wdio.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appium/config/wdio.conf.js b/appium/config/wdio.conf.js index 283de83ab..94a3fce5a 100644 --- a/appium/config/wdio.conf.js +++ b/appium/config/wdio.conf.js @@ -119,5 +119,12 @@ exports.config = { ui: 'bdd', timeout: 60000 }, - specs: ['./tests/specs/**/*.js'] + specs: ['./tests/specs/**/*.js'], + beforeSuite() { + const { setup } = require('../../e2e/helpers/data_setup'); + + before(async () => { + await setup(); + }); + } };