artes 1.0.38 → 1.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "The package provide step definitions and user writes feature files, and the package handles automation, with optional POM files and custom step definitions.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const { element, context, selector, moduleConfig } = require("../imports/commons");
|
|
2
3
|
const { frame } = require("../stepFunctions/frameActions");
|
|
3
4
|
|
|
4
5
|
const mouse = {
|
|
@@ -126,10 +127,11 @@ const mouse = {
|
|
|
126
127
|
await element(selector).scrollIntoViewIfNeeded();
|
|
127
128
|
},
|
|
128
129
|
upload: async (filePath, fileInput) => {
|
|
130
|
+
const file = selector(filePath)
|
|
129
131
|
const fileChooserPromise = context.page.waitForEvent("filechooser");
|
|
130
132
|
await element(fileInput).click();
|
|
131
133
|
const fileChooser = await fileChooserPromise;
|
|
132
|
-
await fileChooser.setFiles(
|
|
134
|
+
await fileChooser.setFiles(path.join(moduleConfig.projectPath, file));
|
|
133
135
|
},
|
|
134
136
|
};
|
|
135
137
|
|