@twilio/flex-plugin-e2e-tests 6.1.2-alpha.202305170607 → 6.1.2-alpha.202305171717
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/dist/tests/step005.js
CHANGED
|
@@ -36,15 +36,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
/* eslint-disable import/no-unused-modules */
|
|
40
|
-
var fs_1 = require("fs");
|
|
41
39
|
var replace_in_file_1 = require("replace-in-file");
|
|
42
40
|
var utils_1 = require("../utils");
|
|
43
41
|
// Build plugin
|
|
44
42
|
var testSuite = function (_a) {
|
|
45
43
|
var scenario = _a.scenario;
|
|
46
44
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
47
|
-
var plugin, ext
|
|
45
|
+
var plugin, ext;
|
|
48
46
|
return __generator(this, function (_b) {
|
|
49
47
|
switch (_b.label) {
|
|
50
48
|
case 0:
|
|
@@ -53,29 +51,34 @@ var testSuite = function (_a) {
|
|
|
53
51
|
ext = scenario.isTS ? 'tsx' : 'jsx';
|
|
54
52
|
return [4 /*yield*/, replace_in_file_1.replaceInFile({
|
|
55
53
|
files: utils_1.joinPath(plugin.dir, 'src', 'components', 'CustomTaskList', "CustomTaskList." + ext),
|
|
56
|
-
from: /This is a dismissible demo component
|
|
54
|
+
from: /This is a dismissible demo component./,
|
|
57
55
|
to: plugin.componentText,
|
|
58
56
|
})];
|
|
59
57
|
case 1:
|
|
60
58
|
_b.sent();
|
|
61
|
-
envVariableValue =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
case 2:
|
|
70
|
-
_b.sent();
|
|
59
|
+
// const envVariableValue = `${Date.now()}`;
|
|
60
|
+
// writeFileSync(`${plugin.dir}/.env`, `FLEX_APP_ENVIRONMENT_TEST=${envVariableValue}`);
|
|
61
|
+
// await replaceInFile({
|
|
62
|
+
// files: joinPath(plugin.dir, 'src', 'components', 'CustomTaskList', `CustomTaskList.${ext}`),
|
|
63
|
+
// from: /close.*/,
|
|
64
|
+
// to: `close-{process.env.FLEX_APP_ENVIRONMENT_TEST}`,
|
|
65
|
+
// countMatches: true,
|
|
66
|
+
// });
|
|
71
67
|
return [4 /*yield*/, utils_1.spawn('twilio', ['flex:plugins:build', '-l', 'debug'], { cwd: plugin.dir })];
|
|
72
|
-
case
|
|
68
|
+
case 2:
|
|
69
|
+
// const envVariableValue = `${Date.now()}`;
|
|
70
|
+
// writeFileSync(`${plugin.dir}/.env`, `FLEX_APP_ENVIRONMENT_TEST=${envVariableValue}`);
|
|
71
|
+
// await replaceInFile({
|
|
72
|
+
// files: joinPath(plugin.dir, 'src', 'components', 'CustomTaskList', `CustomTaskList.${ext}`),
|
|
73
|
+
// from: /close.*/,
|
|
74
|
+
// to: `close-{process.env.FLEX_APP_ENVIRONMENT_TEST}`,
|
|
75
|
+
// countMatches: true,
|
|
76
|
+
// });
|
|
73
77
|
_b.sent();
|
|
74
78
|
utils_1.assertion.not.dirIsEmpty([plugin.dir, 'build']);
|
|
75
79
|
utils_1.assertion.fileExists([plugin.dir, 'build', plugin.name + ".js"]);
|
|
76
80
|
utils_1.assertion.fileExists([plugin.dir, 'build', plugin.name + ".js.map"]);
|
|
77
81
|
utils_1.assertion.fileContains([plugin.dir, 'build', plugin.name + ".js"], plugin.componentText);
|
|
78
|
-
utils_1.assertion.fileContains([plugin.dir, 'build', plugin.name + ".js"], envVariableValue);
|
|
79
82
|
return [2 /*return*/];
|
|
80
83
|
}
|
|
81
84
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step005.js","sourceRoot":"","sources":["../../src/tests/step005.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"step005.js","sour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AG,EAAE,OAAO,EAAK,MAAM,CAAC,IAAI,QAAK,CAAC,CAAC,CAAC;oBACjE,iBAAS,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,EAAK,MAAM,CAAC,IAAI,YAAS,CAAC,CAAC,CAAC;oBACrE,iBAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,EAAK,MAAM,CAAC,IAAI,QAAK,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;;;;;CAE1F,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,uCAAuC,CAAC;AAEhE,kBAAe,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementHandle, Page } from 'puppeteer';
|
|
2
2
|
import { Base } from './base';
|
|
3
3
|
export declare class AdminDashboard extends Base {
|
|
4
|
-
private static readonly
|
|
4
|
+
private static readonly _adminDashboardSubHeader;
|
|
5
5
|
assert: {
|
|
6
6
|
/**
|
|
7
7
|
* Checks whether Welcome Banner is visible on Admin Dashboard
|
|
@@ -63,7 +63,7 @@ var AdminDashboard = /** @class */ (function (_super) {
|
|
|
63
63
|
* Checks whether Welcome Banner is visible on Admin Dashboard
|
|
64
64
|
*/
|
|
65
65
|
isVisible: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
66
|
-
return [2 /*return*/, this.elementVisible(AdminDashboard.
|
|
66
|
+
return [2 /*return*/, this.elementVisible(AdminDashboard._adminDashboardSubHeader, 'Admin Dashbaord Sub-Header')];
|
|
67
67
|
}); }); },
|
|
68
68
|
};
|
|
69
69
|
_this._baseUrl = baseUrl;
|
|
@@ -84,7 +84,7 @@ var AdminDashboard = /** @class */ (function (_super) {
|
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
AdminDashboard.
|
|
87
|
+
AdminDashboard._adminDashboardSubHeader = '[data-testid="admin-subheader"]';
|
|
88
88
|
return AdminDashboard;
|
|
89
89
|
}(base_1.Base));
|
|
90
90
|
exports.AdminDashboard = AdminDashboard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-dashboard.js","sourceRoot":"","sources":["../../../../src/utils/pages/view/admin-dashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+BAA8B;AAE9B;IAAoC,kCAAI;IActC,wBAAY,IAAU,EAAE,OAAe;QAAvC,YACE,kBAAM,IAAI,CAAC,SAEZ;QAdD,6EAA6E;QAC7E,YAAM,GAAG;YACP;;eAEG;YACH,SAAS,EAAE;gBACT,sBAAA,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"admin-dashboard.js","sourceRoot":"","sources":["../../../../src/utils/pages/view/admin-dashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,+BAA8B;AAE9B;IAAoC,kCAAI;IActC,wBAAY,IAAU,EAAE,OAAe;QAAvC,YACE,kBAAM,IAAI,CAAC,SAEZ;QAdD,6EAA6E;QAC7E,YAAM,GAAG;YACP;;eAEG;YACH,SAAS,EAAE;gBACT,sBAAA,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,wBAAwB,EAAE,4BAA4B,CAAC,EAAA;qBAAA;SAC7F,CAAC;QAMA,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;;IAC1B,CAAC;IAED;;OAEG;IACG,6BAAI,GAAV;;;;4BACE,qBAAM,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAA;;wBAA1D,SAA0D,CAAC;;;;;KAC5D;IAvBuB,uCAAwB,GAAG,iCAAiC,CAAC;IAwBvF,qBAAC;CAAA,AAzBD,CAAoC,WAAI,GAyBvC;AAzBY,wCAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twilio/flex-plugin-e2e-tests",
|
|
3
|
-
"version": "6.1.2-alpha.
|
|
3
|
+
"version": "6.1.2-alpha.202305171717",
|
|
4
4
|
"description": "Flex Plugin E2E Tests framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flex",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"test": "exit 0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@twilio/flex-dev-utils": "6.1.2-alpha.
|
|
38
|
-
"@twilio/flex-plugins-api-client": "6.1.2-alpha.
|
|
37
|
+
"@twilio/flex-dev-utils": "6.1.2-alpha.202305171717",
|
|
38
|
+
"@twilio/flex-plugins-api-client": "6.1.2-alpha.202305171717",
|
|
39
39
|
"axios": "^0.24.0",
|
|
40
40
|
"lodash": "4.17.21",
|
|
41
41
|
"package-json": "^7.0.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "3ea2a95c83fb0a42e03e1f41a393a2475d7e9974"
|
|
57
57
|
}
|