@controleonline/ui-common 1.2.71 → 1.2.75
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/.github/actions/workers/manager/action.yml +147 -0
- package/.github/actions/workers/qa/action.yml +44 -0
- package/.github/actions/workers/security/action.yml +44 -0
- package/.github/actions/workers/technical-documenter/action.yml +51 -0
- package/.github/workflows/manager-worker.yml +168 -0
- package/.github/workflows/publish-npm.yml +45 -0
- package/.gitmodules +3 -0
- package/AGENTS.md +6 -0
- package/README.md +14 -0
- package/package.json +3 -2
- package/src/api/fetch.js +1 -1
- package/src/api/index.js +92 -22
- package/src/react/components/AddImportModal.js +94 -110
- package/src/react/components/BottomNavigationBar.config.js +211 -231
- package/src/react/components/CategoryForm.js +52 -35
- package/src/react/components/DefaultProvider.native.js +131 -95
- package/src/react/components/DefaultProvider.web.js +148 -74
- package/src/react/components/NetworkPrinterPreviewModal.js +249 -0
- package/src/react/components/NetworkPrinterPreviewModal.styles.js +159 -0
- package/src/react/components/RuntimeInfoFooter.js +100 -36
- package/src/react/components/RuntimeInfoFooter.styles.js +3 -0
- package/src/react/components/UnifiedPaymentBar.js +7 -4
- package/src/react/components/UserAvatar.js +160 -0
- package/src/react/components/integrations/IntegrationHero/index.js +48 -0
- package/src/react/components/integrations/IntegrationHero/styles.js +57 -0
- package/src/react/components/integrations/IntegrationTabs/index.js +89 -0
- package/src/react/components/integrations/IntegrationTabs/styles.js +44 -0
- package/src/react/config/deviceConfigBootstrap.js +5 -3
- package/src/react/pages/Connections.js +229 -0
- package/src/react/pages/Connections.styles.js +222 -0
- package/src/react/pages/DeviceDetailPage.js +2814 -0
- package/src/react/pages/DeviceDetailPage.styles.js +308 -0
- package/src/react/pages/Devices/currentDevice.js +194 -0
- package/src/react/pages/Devices/deviceTypes/DeviceGroupCard.js +257 -0
- package/src/react/pages/Devices/deviceTypes/all.js +23 -0
- package/src/react/pages/Devices/deviceTypes/device.js +25 -0
- package/src/react/pages/Devices/deviceTypes/deviceListHelpers.js +178 -0
- package/src/react/pages/Devices/deviceTypes/display.js +26 -0
- package/src/react/pages/Devices/deviceTypes/index.js +145 -0
- package/src/react/pages/Devices/deviceTypes/ipCamera.js +35 -0
- package/src/react/pages/Devices/deviceTypes/pdv.js +88 -0
- package/src/react/pages/Devices/deviceTypes/printer.js +37 -0
- package/src/react/pages/Devices/deviceTypes/shared.js +453 -0
- package/src/react/pages/Devices/deviceTypes/useDeviceNetworkConnectivity.js +145 -0
- package/src/react/pages/Devices.js +183 -0
- package/src/react/pages/Devices.styles.js +353 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99CatalogTab.js +219 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99OverviewTab.js +134 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99PreviewModal.js +173 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99ProductCard.js +1 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99QuickWalletModal.js +181 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99SettingsTab.js +306 -0
- package/src/react/pages/Food99IntegrationPage/components/Food99StoreTab.js +417 -0
- package/src/react/pages/Food99IntegrationPage/index.js +1530 -0
- package/src/react/pages/Food99IntegrationPage/styles.js +792 -0
- package/src/react/pages/Food99IntegrationPage/utils.js +155 -0
- package/src/react/pages/Food99IntegrationPage.js +1 -0
- package/src/react/pages/Food99IntegrationPage.styles.js +1 -0
- package/src/react/pages/GenericLogPage.js +42 -167
- package/src/react/pages/IFoodIntegrationPage/components/IFoodCatalogTab.js +8 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOperationsTab.js +420 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodOverviewTab.js +118 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodPreviewModal.js +103 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodProductCard.js +1 -0
- package/src/react/pages/IFoodIntegrationPage/components/IFoodStoreTab.js +150 -0
- package/src/react/pages/IFoodIntegrationPage/index.js +1298 -0
- package/src/react/pages/IFoodIntegrationPage/styles.js +764 -0
- package/src/react/pages/IFoodIntegrationPage/utils.js +91 -0
- package/src/react/pages/IFoodIntegrationPage.js +1 -0
- package/src/react/pages/IFoodIntegrationPage.styles.js +1 -0
- package/src/react/pages/Imports.js +214 -166
- package/src/react/pages/IntegrationConfigPage.js +744 -0
- package/src/react/pages/IntegrationConfigPage.styles.js +269 -0
- package/src/react/pages/Integrations.js +299 -0
- package/src/react/pages/Integrations.styles.js +130 -0
- package/src/react/pages/ManagerOrderNotificationsPage.js +642 -0
- package/src/react/pages/MarketplaceIntegrationPage/components/MarketplaceProductCard.js +205 -0
- package/src/react/pages/MarketplaceIntegrationPage/components/RemoteMarketplaceMenuTab.js +335 -0
- package/src/react/pages/MarketplaceIntegrationPage/index.js +60 -0
- package/src/react/pages/MarketplaceIntegrationPage/utils.js +137 -0
- package/src/react/pages/MercadoLivreIntegrationPage.js +538 -0
- package/src/react/pages/PrinterDeviceDetailPage.js +1916 -0
- package/src/react/pages/PrinterDeviceDetailPage.styles.js +223 -0
- package/src/react/pages/PrinterDeviceFormPage.js +521 -0
- package/src/react/pages/PrinterDeviceFormPage.styles.js +159 -0
- package/src/react/pages/WhatsAppConnectionPage.js +459 -0
- package/src/react/pages/WhatsAppConnectionPage.styles.js +284 -0
- package/src/react/pages/integrationsCatalog.js +399 -0
- package/src/react/services/Cielo/Cielo.js +193 -193
- package/src/react/utils/categoryContexts.js +46 -0
- package/src/react/utils/entityDisplay.js +222 -217
- package/src/react/utils/fileUrl.js +39 -20
- package/src/react/utils/integrationPage.js +16 -0
- package/src/react/utils/runtimeFooter.js +40 -22
- package/src/react/utils/runtimeLanguage.js +50 -9
- package/src/react/utils/runtimeMenu.js +191 -131
- package/src/react/utils/runtimeZoom.js +43 -0
- package/src/react/utils/shopConfig.js +27 -15
- package/src/react/utils/shopFranchises.js +126 -1
- package/src/react/utils/storeColumns.js +23 -4
- package/src/react/utils/userAvatar.js +104 -0
- package/src/store/categories/index.js +48 -20
- package/src/store/device_config/index.js +62 -21
- package/src/store/entity_log/index.js +22 -1
- package/src/store/imports/customActions.js +51 -0
- package/src/store/imports/index.js +89 -88
- package/src/store/status/index.js +11 -11
- package/src/store/themes/index.js +22 -0
- package/src/store/timezones/index.js +3 -1
- package/src/tests/browser/manager/connections.spec.js +143 -0
- package/src/tests/browser/manager/devices-current.spec.js +343 -0
- package/src/tests/browser/manager/mercado-livre-integration.spec.js +268 -0
- package/src/tests/react/api/deviceHeaders.test.js +114 -0
- package/src/tests/react/components/AddImportModal.test.js +166 -0
- package/src/tests/react/components/BottomNavigationBar.config.test.js +20 -0
- package/src/tests/react/components/UserAvatar.test.js +52 -0
- package/src/tests/react/pages/DevicePickerStyles.test.js +47 -0
- package/src/tests/react/pages/Devices/deviceListHelpers.test.js +39 -0
- package/src/tests/react/pages/DevicesCurrentDevice.test.js +198 -0
- package/src/tests/react/pages/connectionsHelpers.test.js +34 -0
- package/src/tests/react/pages/mercadoLivreIntegrationPageContract.test.mjs +16 -0
- package/src/tests/react/services/Cielo.test.js +190 -190
- package/src/tests/react/store/categoriesOrdering.test.js +26 -0
- package/src/tests/react/utils/appDomain.test.js +62 -0
- package/src/tests/react/utils/entityDisplay.test.js +2 -2
- package/src/tests/react/utils/fileUrl.test.js +3 -3
- package/src/tests/react/utils/formatter.test.mjs +33 -0
- package/src/tests/react/utils/runtimeFooter.test.js +29 -4
- package/src/tests/react/utils/runtimeLanguage.test.js +79 -9
- package/src/tests/react/utils/runtimeMenu.test.js +198 -134
- package/src/tests/react/utils/runtimeZoom.test.js +38 -0
- package/src/tests/react/utils/shopConfig.test.js +10 -9
- package/src/tests/react/utils/shopFranchises.test.js +43 -0
- package/src/tests/react/utils/translate.discovery.test.mjs +170 -0
- package/src/tests/react/utils/translate.test.helpers.mjs +152 -0
- package/src/tests/react/utils/translate.test.mjs +141 -349
- package/src/tests/react/utils/userAvatar.test.js +63 -0
- package/src/utils/appDomain.js +15 -4
- package/src/utils/formatter.js +104 -16
- package/src/utils/integrationConfigs.js +80 -80
- package/src/utils/translate.js +222 -438
- package/src/utils/translateDiscovery.js +96 -0
- package/src/utils/translateNormalize.js +33 -0
- package/src/utils/translatePending.js +92 -0
- package/src/utils/translateStorage.js +142 -0
- package/.github/agents/developer.agent.md +0 -30
- package/.github/agents/devops.agent.md +0 -30
- package/.github/agents/qa.agent.md +0 -30
- package/.github/agents/security.agent.md +0 -30
- package/.github/workflows/npmjs.yml +0 -35
|
@@ -1,88 +1,89 @@
|
|
|
1
|
-
import * as actions from "@controleonline/ui-default/src/store/default/actions";
|
|
2
|
-
import * as getters from "@controleonline/ui-default/src/store/default/getters";
|
|
3
|
-
import mutations from "@controleonline/ui-default/src/store/default/mutations";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
{ value: "
|
|
52
|
-
{ value: "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
import * as actions from "@controleonline/ui-default/src/store/default/actions";
|
|
2
|
+
import * as getters from "@controleonline/ui-default/src/store/default/getters";
|
|
3
|
+
import mutations from "@controleonline/ui-default/src/store/default/mutations";
|
|
4
|
+
import * as customActions from './customActions';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
namespaced: true,
|
|
8
|
+
state: {
|
|
9
|
+
item: {},
|
|
10
|
+
items: [],
|
|
11
|
+
resourceEndpoint: "imports",
|
|
12
|
+
isLoading: false,
|
|
13
|
+
error: "",
|
|
14
|
+
|
|
15
|
+
totalItems: 0, messages: [], message: {},
|
|
16
|
+
|
|
17
|
+
summary: {},
|
|
18
|
+
filters: {},
|
|
19
|
+
columns: [
|
|
20
|
+
{
|
|
21
|
+
editable: false,
|
|
22
|
+
isIdentity: true,
|
|
23
|
+
sortable: true,
|
|
24
|
+
name: "id",
|
|
25
|
+
align: "left",
|
|
26
|
+
label: "id",
|
|
27
|
+
sum: false,
|
|
28
|
+
format: function (value) {
|
|
29
|
+
return "#" + value;
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
externalFilter: false,
|
|
34
|
+
sortable: true,
|
|
35
|
+
name: "field_name",
|
|
36
|
+
align: "left",
|
|
37
|
+
label: "field_name",
|
|
38
|
+
sum: false,
|
|
39
|
+
format: function (value) {
|
|
40
|
+
return value;
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
externalFilter: false,
|
|
45
|
+
sortable: true,
|
|
46
|
+
name: "field_type",
|
|
47
|
+
align: "left",
|
|
48
|
+
label: "field_type",
|
|
49
|
+
sum: false,
|
|
50
|
+
list: [
|
|
51
|
+
{ value: "text", label: "text" },
|
|
52
|
+
{ value: "select", label: "select" },
|
|
53
|
+
{ value: "date-range", label: "date-range" },
|
|
54
|
+
],
|
|
55
|
+
format: function (value) {
|
|
56
|
+
return value;
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
externalFilter: false,
|
|
61
|
+
sortable: true,
|
|
62
|
+
name: "required",
|
|
63
|
+
align: "left",
|
|
64
|
+
label: "required",
|
|
65
|
+
sum: false,
|
|
66
|
+
format: function (value) {
|
|
67
|
+
return value;
|
|
68
|
+
},
|
|
69
|
+
saveFormat: function (value) {
|
|
70
|
+
return false;
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
externalFilter: false,
|
|
75
|
+
sortable: true,
|
|
76
|
+
name: "field_configs",
|
|
77
|
+
align: "left",
|
|
78
|
+
label: "field_configs",
|
|
79
|
+
sum: false,
|
|
80
|
+
format: function (value) {
|
|
81
|
+
return value;
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
actions: { ...actions, ...customActions },
|
|
87
|
+
getters,
|
|
88
|
+
mutations,
|
|
89
|
+
};
|
|
@@ -38,19 +38,19 @@ export default {
|
|
|
38
38
|
return value;
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
{
|
|
42
|
-
sortable: true,
|
|
43
|
-
name: "color",
|
|
44
|
-
align: "left",
|
|
45
|
-
label: "color",
|
|
46
|
-
inputType: "color",
|
|
47
|
-
format: function (value) {
|
|
48
|
-
return value;
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
41
|
{
|
|
52
42
|
sortable: true,
|
|
53
|
-
name: "
|
|
43
|
+
name: "color",
|
|
44
|
+
align: "left",
|
|
45
|
+
label: "color",
|
|
46
|
+
inputType: "color",
|
|
47
|
+
format: function (value) {
|
|
48
|
+
return value;
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
sortable: true,
|
|
53
|
+
name: "realStatus",
|
|
54
54
|
align: "left",
|
|
55
55
|
label: "realStatus",
|
|
56
56
|
format: function (value) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as actions from '@controleonline/ui-default/src/store/default/actions';
|
|
2
|
+
import * as getters from '@controleonline/ui-default/src/store/default/getters';
|
|
3
|
+
import mutations from '@controleonline/ui-default/src/store/default/mutations';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
namespaced: true,
|
|
7
|
+
state: {
|
|
8
|
+
item: {},
|
|
9
|
+
items: [],
|
|
10
|
+
resourceEndpoint: 'themes',
|
|
11
|
+
isLoading: false,
|
|
12
|
+
isSaving: false,
|
|
13
|
+
error: '',
|
|
14
|
+
totalItems: 0,
|
|
15
|
+
summary: {},
|
|
16
|
+
filters: {},
|
|
17
|
+
columns: [],
|
|
18
|
+
},
|
|
19
|
+
actions,
|
|
20
|
+
getters,
|
|
21
|
+
mutations,
|
|
22
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const {expect, test} = require('playwright/test');
|
|
2
|
+
const packageJson = require('../../../../../../../package.json');
|
|
3
|
+
const {API_ORIGIN} = require('../../../../../../../src/tests/browser/apiOrigin');
|
|
4
|
+
|
|
5
|
+
const APP_VERSION = packageJson?.version || '1.0.0';
|
|
6
|
+
|
|
7
|
+
const CORS_HEADERS = {
|
|
8
|
+
'access-control-allow-origin': '*',
|
|
9
|
+
'access-control-allow-headers':
|
|
10
|
+
'API-TOKEN, APP-DOMAIN, DEVICE, ACCEPT, CONTENT-TYPE, X-Requested-With',
|
|
11
|
+
'access-control-allow-methods': 'GET,POST,PUT,PATCH,DELETE,OPTIONS',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const jsonHeaders = () => ({
|
|
15
|
+
...CORS_HEADERS,
|
|
16
|
+
'content-type': 'application/ld+json; charset=utf-8',
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const collection = member => ({
|
|
20
|
+
member,
|
|
21
|
+
'hydra:member': member,
|
|
22
|
+
totalItems: member.length,
|
|
23
|
+
'hydra:totalItems': member.length,
|
|
24
|
+
summary: {},
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const mockConnectionsApi = async page => {
|
|
28
|
+
const company = {
|
|
29
|
+
id: 3,
|
|
30
|
+
name: 'Teste',
|
|
31
|
+
alias: 'TESTE',
|
|
32
|
+
panel_enabled: true,
|
|
33
|
+
enabled: true,
|
|
34
|
+
commercial_enabled: true,
|
|
35
|
+
theme: {colors: {primary: '#0EA5E9', success: '#10b981'}},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const connections = [
|
|
39
|
+
{
|
|
40
|
+
id: 21,
|
|
41
|
+
name: 'Atendimento',
|
|
42
|
+
phone: {ddd: '11', phone: '988887777'},
|
|
43
|
+
type: 'crm',
|
|
44
|
+
channel: 'whatsapp',
|
|
45
|
+
status: {status: 'connected'},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 22,
|
|
49
|
+
name: 'Suporte',
|
|
50
|
+
phone: {ddd: '21', phone: '977776666'},
|
|
51
|
+
type: 'support',
|
|
52
|
+
channel: 'whatsapp',
|
|
53
|
+
status: {status: 'pending'},
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
await page.route(`${API_ORIGIN}/**`, async route => {
|
|
58
|
+
const request = route.request();
|
|
59
|
+
const url = new URL(request.url());
|
|
60
|
+
const pathname = url.pathname.replace(/^\/+/, '');
|
|
61
|
+
const method = request.method().toUpperCase();
|
|
62
|
+
|
|
63
|
+
if (method === 'OPTIONS') {
|
|
64
|
+
return route.fulfill({status: 204, headers: CORS_HEADERS, body: ''});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (pathname === 'companies' || pathname.startsWith('people/')) {
|
|
68
|
+
return route.fulfill({
|
|
69
|
+
status: 200,
|
|
70
|
+
headers: jsonHeaders(),
|
|
71
|
+
body: JSON.stringify(company),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (pathname === 'connections' || pathname.startsWith('connections')) {
|
|
76
|
+
return route.fulfill({
|
|
77
|
+
status: 200,
|
|
78
|
+
headers: jsonHeaders(),
|
|
79
|
+
body: JSON.stringify(collection(connections)),
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return route.fulfill({
|
|
84
|
+
status: 200,
|
|
85
|
+
headers: jsonHeaders(),
|
|
86
|
+
body: JSON.stringify(collection([])),
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
await page.addInitScript(
|
|
91
|
+
({appVersion}) => {
|
|
92
|
+
const set = (k, v) => {
|
|
93
|
+
try {
|
|
94
|
+
localStorage.setItem(k, v);
|
|
95
|
+
} catch {}
|
|
96
|
+
};
|
|
97
|
+
set(
|
|
98
|
+
'session',
|
|
99
|
+
JSON.stringify({
|
|
100
|
+
id: 7,
|
|
101
|
+
people: '/people/7',
|
|
102
|
+
api_key: 'test-api-key',
|
|
103
|
+
active: 1,
|
|
104
|
+
mycompany: 3,
|
|
105
|
+
roles: ['ROLE_ADMIN'],
|
|
106
|
+
}),
|
|
107
|
+
);
|
|
108
|
+
set('config', JSON.stringify({language: 'pt-br'}));
|
|
109
|
+
set('app-type', 'ERP');
|
|
110
|
+
set(
|
|
111
|
+
'device',
|
|
112
|
+
JSON.stringify({
|
|
113
|
+
id: 'web-erp',
|
|
114
|
+
device: 'web-erp',
|
|
115
|
+
type: 'WEB',
|
|
116
|
+
appName: 'Browser ERP',
|
|
117
|
+
appVersion,
|
|
118
|
+
buildNumber: appVersion,
|
|
119
|
+
systemName: 'web',
|
|
120
|
+
systemVersion: 'web',
|
|
121
|
+
deviceType: 'web',
|
|
122
|
+
metadata: {},
|
|
123
|
+
}),
|
|
124
|
+
);
|
|
125
|
+
},
|
|
126
|
+
{appVersion: APP_VERSION},
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
test.describe('connections browser smoke', () => {
|
|
131
|
+
test('renders connections page with DefaultTable', async ({page}) => {
|
|
132
|
+
await mockConnectionsApi(page);
|
|
133
|
+
await page.goto('/connections-page');
|
|
134
|
+
|
|
135
|
+
await expect(page.getByText(/Conex/i).first()).toBeVisible({timeout: 15000});
|
|
136
|
+
await expect(page.getByText('WhatsApp').first()).toBeVisible();
|
|
137
|
+
await expect(page.getByText('Atendimento')).toBeVisible();
|
|
138
|
+
await expect(page.getByText('Suporte')).toBeVisible();
|
|
139
|
+
await expect(
|
|
140
|
+
page.getByPlaceholder(/Buscar conex/i),
|
|
141
|
+
).toBeVisible();
|
|
142
|
+
});
|
|
143
|
+
});
|