@globisnv/cypress-core 0.0.1 → 0.0.2
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/README.md +1 -1
- package/package.json +7 -7
- package/dist/apiMethods/IGS_request.d.ts +0 -98
- package/dist/apiMethods/IGS_request.js +0 -161
- package/dist/apiMethods/IGS_response.d.ts +0 -47
- package/dist/apiMethods/IGS_response.js +0 -1
- package/dist/blueprints/GLO_addressPopup.d.ts +0 -45
- package/dist/blueprints/GLO_addressPopup.js +0 -96
- package/dist/blueprints/GLO_article.d.ts +0 -45
- package/dist/blueprints/GLO_article.js +0 -110
- package/dist/blueprints/GLO_articleLot.d.ts +0 -12
- package/dist/blueprints/GLO_articleLot.js +0 -23
- package/dist/blueprints/GLO_articleVersion.d.ts +0 -4
- package/dist/blueprints/GLO_articleVersion.js +0 -4
- package/dist/blueprints/GLO_attachmentPopup.d.ts +0 -9
- package/dist/blueprints/GLO_attachmentPopup.js +0 -10
- package/dist/blueprints/GLO_bankAccount.d.ts +0 -7
- package/dist/blueprints/GLO_bankAccount.js +0 -7
- package/dist/blueprints/GLO_billingProcess.d.ts +0 -4
- package/dist/blueprints/GLO_billingProcess.js +0 -4
- package/dist/blueprints/GLO_billingProposal.d.ts +0 -9
- package/dist/blueprints/GLO_billingProposal.js +0 -9
- package/dist/blueprints/GLO_cancel.d.ts +0 -7
- package/dist/blueprints/GLO_cancel.js +0 -7
- package/dist/blueprints/GLO_commandlist.d.ts +0 -10
- package/dist/blueprints/GLO_commandlist.js +0 -10
- package/dist/blueprints/GLO_complaint.d.ts +0 -27
- package/dist/blueprints/GLO_complaint.js +0 -51
- package/dist/blueprints/GLO_composition.d.ts +0 -14
- package/dist/blueprints/GLO_composition.js +0 -20
- package/dist/blueprints/GLO_consignment.d.ts +0 -61
- package/dist/blueprints/GLO_consignment.js +0 -104
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +0 -6
- package/dist/blueprints/GLO_consignmentContainerGroup.js +0 -6
- package/dist/blueprints/GLO_consignmentGoods.d.ts +0 -40
- package/dist/blueprints/GLO_consignmentGoods.js +0 -62
- package/dist/blueprints/GLO_consignmentHandling.d.ts +0 -4
- package/dist/blueprints/GLO_consignmentHandling.js +0 -4
- package/dist/blueprints/GLO_consignmentOrder.d.ts +0 -31
- package/dist/blueprints/GLO_consignmentOrder.js +0 -37
- package/dist/blueprints/GLO_consignmentPart.d.ts +0 -13
- package/dist/blueprints/GLO_consignmentPart.js +0 -13
- package/dist/blueprints/GLO_consignmentParts.d.ts +0 -5
- package/dist/blueprints/GLO_consignmentParts.js +0 -12
- package/dist/blueprints/GLO_consignmentPrice.d.ts +0 -11
- package/dist/blueprints/GLO_consignmentPrice.js +0 -19
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +0 -6
- package/dist/blueprints/GLO_consignmentSupplier.js +0 -11
- package/dist/blueprints/GLO_contacts.d.ts +0 -10
- package/dist/blueprints/GLO_contacts.js +0 -14
- package/dist/blueprints/GLO_container.d.ts +0 -6
- package/dist/blueprints/GLO_container.js +0 -4
- package/dist/blueprints/GLO_contract.d.ts +0 -22
- package/dist/blueprints/GLO_contract.js +0 -30
- package/dist/blueprints/GLO_contractArticle.d.ts +0 -17
- package/dist/blueprints/GLO_contractArticle.js +0 -35
- package/dist/blueprints/GLO_contractArticleCost.d.ts +0 -5
- package/dist/blueprints/GLO_contractArticleCost.js +0 -8
- package/dist/blueprints/GLO_countryVatZone.d.ts +0 -8
- package/dist/blueprints/GLO_countryVatZone.js +0 -9
- package/dist/blueprints/GLO_currencyDeviation.d.ts +0 -14
- package/dist/blueprints/GLO_currencyDeviation.js +0 -15
- package/dist/blueprints/GLO_customerArticle.d.ts +0 -12
- package/dist/blueprints/GLO_customerArticle.js +0 -15
- package/dist/blueprints/GLO_customsFlow.d.ts +0 -8
- package/dist/blueprints/GLO_customsFlow.js +0 -19
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +0 -15
- package/dist/blueprints/GLO_customsFlowDefinition.js +0 -14
- package/dist/blueprints/GLO_customsUnion.d.ts +0 -4
- package/dist/blueprints/GLO_customsUnion.js +0 -4
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +0 -10
- package/dist/blueprints/GLO_deliveryReceipt.js +0 -22
- package/dist/blueprints/GLO_departureSchedule.d.ts +0 -27
- package/dist/blueprints/GLO_departureSchedule.js +0 -57
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +0 -49
- package/dist/blueprints/GLO_departureScheduleTimes.js +0 -61
- package/dist/blueprints/GLO_document.d.ts +0 -7
- package/dist/blueprints/GLO_document.js +0 -7
- package/dist/blueprints/GLO_documentAttachment.d.ts +0 -4
- package/dist/blueprints/GLO_documentAttachment.js +0 -4
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +0 -5
- package/dist/blueprints/GLO_documentDefinitionEntity.js +0 -5
- package/dist/blueprints/GLO_documentGroup.d.ts +0 -4
- package/dist/blueprints/GLO_documentGroup.js +0 -4
- package/dist/blueprints/GLO_documentType.d.ts +0 -12
- package/dist/blueprints/GLO_documentType.js +0 -11
- package/dist/blueprints/GLO_enterCountry.d.ts +0 -21
- package/dist/blueprints/GLO_enterCountry.js +0 -47
- package/dist/blueprints/GLO_enterDiscount.d.ts +0 -8
- package/dist/blueprints/GLO_enterDiscount.js +0 -9
- package/dist/blueprints/GLO_equipment.d.ts +0 -34
- package/dist/blueprints/GLO_equipment.js +0 -55
- package/dist/blueprints/GLO_equipmentCategory.d.ts +0 -15
- package/dist/blueprints/GLO_equipmentCategory.js +0 -14
- package/dist/blueprints/GLO_equipmentEntity.d.ts +0 -5
- package/dist/blueprints/GLO_equipmentEntity.js +0 -5
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +0 -13
- package/dist/blueprints/GLO_equipmentServiceCategory.js +0 -13
- package/dist/blueprints/GLO_equipmentType.d.ts +0 -21
- package/dist/blueprints/GLO_equipmentType.js +0 -20
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +0 -13
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +0 -12
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +0 -46
- package/dist/blueprints/GLO_fieldInputValidation.js +0 -73
- package/dist/blueprints/GLO_formula.d.ts +0 -9
- package/dist/blueprints/GLO_formula.js +0 -9
- package/dist/blueprints/GLO_gang.d.ts +0 -12
- package/dist/blueprints/GLO_gang.js +0 -12
- package/dist/blueprints/GLO_holiday.d.ts +0 -7
- package/dist/blueprints/GLO_holiday.js +0 -8
- package/dist/blueprints/GLO_journey.d.ts +0 -18
- package/dist/blueprints/GLO_journey.js +0 -24
- package/dist/blueprints/GLO_journeyStop.d.ts +0 -32
- package/dist/blueprints/GLO_journeyStop.js +0 -44
- package/dist/blueprints/GLO_layout.d.ts +0 -6
- package/dist/blueprints/GLO_layout.js +0 -6
- package/dist/blueprints/GLO_logging.d.ts +0 -9
- package/dist/blueprints/GLO_logging.js +0 -12
- package/dist/blueprints/GLO_logisticConnection.d.ts +0 -10
- package/dist/blueprints/GLO_logisticConnection.js +0 -11
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +0 -5
- package/dist/blueprints/GLO_logisticConnectionType.js +0 -5
- package/dist/blueprints/GLO_logisticContract.d.ts +0 -28
- package/dist/blueprints/GLO_logisticContract.js +0 -80
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +0 -42
- package/dist/blueprints/GLO_logisticContractDetail.js +0 -122
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +0 -11
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +0 -14
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +0 -5
- package/dist/blueprints/GLO_logisticContractDetailItem.js +0 -8
- package/dist/blueprints/GLO_logisticContractItem.d.ts +0 -14
- package/dist/blueprints/GLO_logisticContractItem.js +0 -40
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractItemActivity.js +0 -4
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +0 -7
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +0 -7
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +0 -4
- package/dist/blueprints/GLO_logisticContractReference.d.ts +0 -4
- package/dist/blueprints/GLO_logisticContractReference.js +0 -4
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +0 -9
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +0 -8
- package/dist/blueprints/GLO_logisticLocation.d.ts +0 -7
- package/dist/blueprints/GLO_logisticLocation.js +0 -7
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +0 -19
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +0 -30
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +0 -4
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +0 -4
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +0 -6
- package/dist/blueprints/GLO_logistic_waiting_hours.js +0 -6
- package/dist/blueprints/GLO_operationalDefault.d.ts +0 -23
- package/dist/blueprints/GLO_operationalDefault.js +0 -25
- package/dist/blueprints/GLO_outputDetailMail.d.ts +0 -14
- package/dist/blueprints/GLO_outputDetailMail.js +0 -13
- package/dist/blueprints/GLO_postalcode.d.ts +0 -6
- package/dist/blueprints/GLO_postalcode.js +0 -6
- package/dist/blueprints/GLO_priceDependency.d.ts +0 -5
- package/dist/blueprints/GLO_priceDependency.js +0 -4
- package/dist/blueprints/GLO_priceEntry.d.ts +0 -17
- package/dist/blueprints/GLO_priceEntry.js +0 -17
- package/dist/blueprints/GLO_priceRequest.d.ts +0 -8
- package/dist/blueprints/GLO_priceRequest.js +0 -20
- package/dist/blueprints/GLO_priceRequestLine.d.ts +0 -12
- package/dist/blueprints/GLO_priceRequestLine.js +0 -17
- package/dist/blueprints/GLO_principal.d.ts +0 -9
- package/dist/blueprints/GLO_principal.js +0 -13
- package/dist/blueprints/GLO_printPopup.d.ts +0 -10
- package/dist/blueprints/GLO_printPopup.js +0 -62
- package/dist/blueprints/GLO_production.d.ts +0 -9
- package/dist/blueprints/GLO_production.js +0 -9
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +0 -8
- package/dist/blueprints/GLO_productionLineMaterial.js +0 -13
- package/dist/blueprints/GLO_productionMaterial.d.ts +0 -5
- package/dist/blueprints/GLO_productionMaterial.js +0 -5
- package/dist/blueprints/GLO_purchaseCosts.d.ts +0 -6
- package/dist/blueprints/GLO_purchaseCosts.js +0 -9
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +0 -12
- package/dist/blueprints/GLO_purchaseInvoice.js +0 -25
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +0 -8
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +0 -13
- package/dist/blueprints/GLO_purchaseOrder.d.ts +0 -14
- package/dist/blueprints/GLO_purchaseOrder.js +0 -25
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +0 -10
- package/dist/blueprints/GLO_purchaseOrderLine.js +0 -24
- package/dist/blueprints/GLO_purchasePrices.d.ts +0 -10
- package/dist/blueprints/GLO_purchasePrices.js +0 -10
- package/dist/blueprints/GLO_quotation.d.ts +0 -12
- package/dist/blueprints/GLO_quotation.js +0 -32
- package/dist/blueprints/GLO_quotationLine.d.ts +0 -12
- package/dist/blueprints/GLO_quotationLine.js +0 -28
- package/dist/blueprints/GLO_receipt.d.ts +0 -13
- package/dist/blueprints/GLO_receipt.js +0 -17
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +0 -8
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +0 -8
- package/dist/blueprints/GLO_receiptLine.d.ts +0 -22
- package/dist/blueprints/GLO_receiptLine.js +0 -28
- package/dist/blueprints/GLO_relationAddress.d.ts +0 -26
- package/dist/blueprints/GLO_relationAddress.js +0 -58
- package/dist/blueprints/GLO_relationBankAccount.d.ts +0 -9
- package/dist/blueprints/GLO_relationBankAccount.js +0 -9
- package/dist/blueprints/GLO_relationContact.d.ts +0 -23
- package/dist/blueprints/GLO_relationContact.js +0 -45
- package/dist/blueprints/GLO_relationGroupType.d.ts +0 -7
- package/dist/blueprints/GLO_relationGroupType.js +0 -6
- package/dist/blueprints/GLO_relations.d.ts +0 -67
- package/dist/blueprints/GLO_relations.js +0 -186
- package/dist/blueprints/GLO_relationtype.d.ts +0 -15
- package/dist/blueprints/GLO_relationtype.js +0 -31
- package/dist/blueprints/GLO_remarkType.d.ts +0 -10
- package/dist/blueprints/GLO_remarkType.js +0 -9
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +0 -4
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +0 -14
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +0 -10
- package/dist/blueprints/GLO_remarkTypeEntityType.js +0 -9
- package/dist/blueprints/GLO_representative.d.ts +0 -7
- package/dist/blueprints/GLO_representative.js +0 -6
- package/dist/blueprints/GLO_salesInvoice.d.ts +0 -9
- package/dist/blueprints/GLO_salesInvoice.js +0 -15
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +0 -9
- package/dist/blueprints/GLO_salesInvoiceLine.js +0 -13
- package/dist/blueprints/GLO_salesOrder.d.ts +0 -13
- package/dist/blueprints/GLO_salesOrder.js +0 -25
- package/dist/blueprints/GLO_salesOrderLine.d.ts +0 -13
- package/dist/blueprints/GLO_salesOrderLine.js +0 -34
- package/dist/blueprints/GLO_stockCorrection.d.ts +0 -14
- package/dist/blueprints/GLO_stockCorrection.js +0 -24
- package/dist/blueprints/GLO_stopSchedule.d.ts +0 -4
- package/dist/blueprints/GLO_stopSchedule.js +0 -4
- package/dist/blueprints/GLO_supplierArticle.d.ts +0 -8
- package/dist/blueprints/GLO_supplierArticle.js +0 -8
- package/dist/blueprints/GLO_tclSetting.d.ts +0 -6
- package/dist/blueprints/GLO_tclSetting.js +0 -6
- package/dist/blueprints/GLO_todo.d.ts +0 -10
- package/dist/blueprints/GLO_todo.js +0 -21
- package/dist/blueprints/GLO_todoSchedule.d.ts +0 -23
- package/dist/blueprints/GLO_todoSchedule.js +0 -79
- package/dist/blueprints/GLO_tractionDistance.d.ts +0 -6
- package/dist/blueprints/GLO_tractionDistance.js +0 -6
- package/dist/blueprints/GLO_transportOrder.d.ts +0 -4
- package/dist/blueprints/GLO_transportOrder.js +0 -4
- package/dist/blueprints/GLO_transportPrice.d.ts +0 -18
- package/dist/blueprints/GLO_transportPrice.js +0 -34
- package/dist/blueprints/GLO_transportRequirement.d.ts +0 -18
- package/dist/blueprints/GLO_transportRequirement.js +0 -32
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +0 -8
- package/dist/blueprints/GLO_transportRequirementContainer.js +0 -8
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +0 -33
- package/dist/blueprints/GLO_transportRequirementGoods.js +0 -51
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +0 -6
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +0 -6
- package/dist/blueprints/GLO_transportStock.d.ts +0 -4
- package/dist/blueprints/GLO_transportStock.js +0 -4
- package/dist/blueprints/GLO_visit.d.ts +0 -9
- package/dist/blueprints/GLO_visit.js +0 -10
- package/dist/blueprints/GLO_warehouseMove.d.ts +0 -9
- package/dist/blueprints/GLO_warehouseMove.js +0 -9
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +0 -6
- package/dist/blueprints/GLO_warehouseOrderSubline.js +0 -11
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +0 -20
- package/dist/blueprints/GLO_workflowLoggingTable.js +0 -20
- package/dist/blueprints/GLO_workflowVerification.d.ts +0 -10
- package/dist/blueprints/GLO_workflowVerification.js +0 -19
- package/dist/blueprints/GLO_zone.d.ts +0 -9
- package/dist/blueprints/GLO_zone.js +0 -9
- package/dist/blueprints/GLO_zone_postalcode.d.ts +0 -12
- package/dist/blueprints/GLO_zone_postalcode.js +0 -10
- package/dist/blueprints/GLO_zone_type.d.ts +0 -8
- package/dist/blueprints/GLO_zone_type.js +0 -7
- package/dist/blueprints/GLT_goods.d.ts +0 -2
- package/dist/blueprints/GLT_goods.js +0 -12
- package/dist/commands/FOB_commands.d.ts +0 -124
- package/dist/commands/FOB_commands.js +0 -211
- package/dist/commands/GLJ_commands.d.ts +0 -28
- package/dist/commands/GLJ_commands.js +0 -40
- package/dist/commands/GLO_commands.d.ts +0 -685
- package/dist/commands/GLO_commands.js +0 -2315
- package/dist/commands/GLS_commands.d.ts +0 -63
- package/dist/commands/GLS_commands.js +0 -103
- package/dist/commands/GLT_commands.d.ts +0 -78
- package/dist/commands/GLT_commands.js +0 -148
- package/dist/commands/POR_commands.d.ts +0 -85
- package/dist/commands/POR_commands.js +0 -122
- package/dist/config.d.ts +0 -9
- package/dist/config.js +0 -115
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -15
- package/dist/plugins/prometheusWriter.d.ts +0 -15
- package/dist/plugins/prometheusWriter.js +0 -111
- package/dist/register.d.ts +0 -8
- package/dist/register.js +0 -23
- package/dist/tsHelper.d.ts +0 -161
- package/dist/tsHelper.js +0 -294
- package/dist/types.d.ts +0 -363
- package/dist/types.js +0 -4
- package/dist/websocketDetector.d.ts +0 -71
- package/dist/websocketDetector.js +0 -1593
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Command to perform login using Okta authentication into a specific portal.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} [company] - Optional parameter representing the company name.
|
|
8
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
9
|
-
*/
|
|
10
|
-
FOB_login(company?: string, formBuilderStandalone?: boolean): void;
|
|
11
|
-
/**
|
|
12
|
-
* Command to perform a login using Servoy authentication.
|
|
13
|
-
*
|
|
14
|
-
* @param {string} [company] - Optional parameter representing the company name.
|
|
15
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
16
|
-
* If provided, the specified company will be selected during login.
|
|
17
|
-
*/
|
|
18
|
-
POR_servoyLogin(company?: string, formBuilderStandalone?: boolean): void;
|
|
19
|
-
/**
|
|
20
|
-
* Command to perform login using Okta authentication into a specific portal.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} [company] - Optional parameter representing the company name.
|
|
23
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
24
|
-
*/
|
|
25
|
-
FOB_defaultLogin(company?: string, formBuilderStandalone?: boolean): void;
|
|
26
|
-
/**
|
|
27
|
-
* Command to perform login using Okta authentication into a specific portal.
|
|
28
|
-
*
|
|
29
|
-
* @param {string} [company] - Optional parameter representing the company name.
|
|
30
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
31
|
-
*/
|
|
32
|
-
FOB_oktaLogin(company?: string, formBuilderStandalone?: boolean): void;
|
|
33
|
-
/**
|
|
34
|
-
* Command to add a new custom view.
|
|
35
|
-
*
|
|
36
|
-
* @param {customviewType} type - The type of the custom view (detail or list).
|
|
37
|
-
* @param {string} dataSource - The datasource of the custom view.
|
|
38
|
-
* @param {string} formName - The name of the form to be made a custom view of.
|
|
39
|
-
* @param {string} customViewName - The name of the newly added custom view.
|
|
40
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
41
|
-
*/
|
|
42
|
-
FOB_newCustomView(type: customviewType, dataSource: string, formName: string, customViewName: string, formBuilderStandalone?: boolean): void;
|
|
43
|
-
/**
|
|
44
|
-
* Command to click an item card.
|
|
45
|
-
*
|
|
46
|
-
* @param {string} formNameDescription - The name of the form containing description element of the card.
|
|
47
|
-
* @param {string} elementNameDiscription - The name of the description element of the card..
|
|
48
|
-
* @param {string} name - The description of the item card.
|
|
49
|
-
*/
|
|
50
|
-
FOB_clickMenuItem(formNameDescription: string, elementNameDiscription: string, name: string): void;
|
|
51
|
-
/**
|
|
52
|
-
* Command to fill in fields of the add component dialog.
|
|
53
|
-
*
|
|
54
|
-
* @param {string} parameterType - The parameter type consists of attribute, relation or dynamic attribute.
|
|
55
|
-
* @param {Array} relations - An array of all the relations leading to the attribute field.
|
|
56
|
-
* @param {string} attribute - The attribute of the component.
|
|
57
|
-
* @param {string} label - The label of the component.
|
|
58
|
-
*/
|
|
59
|
-
FOB_addFieldDialog(parameterType: string, relations: string | Array<string>, attribute: string, label?: string): void;
|
|
60
|
-
/**
|
|
61
|
-
* Command to delete an item in a custom view.
|
|
62
|
-
*
|
|
63
|
-
* @param {string} name - The name of the label in item.
|
|
64
|
-
*/
|
|
65
|
-
FOB_deleteCustomViewItem(name: string): void;
|
|
66
|
-
/**
|
|
67
|
-
* Command to drag and drop an item in the custom view.
|
|
68
|
-
*
|
|
69
|
-
* @param {string} dragLocation - The element that needs to be dragged.
|
|
70
|
-
* @param {string} dropLocation - The target location of the dragged element.
|
|
71
|
-
*/
|
|
72
|
-
FOB_dragComponentItem(dragLocation: string, dropLocation: string): void;
|
|
73
|
-
/**
|
|
74
|
-
* Command to add a column in a grid.
|
|
75
|
-
*
|
|
76
|
-
* @param {string} parameterType - The parameter type consists of attribute, relation or dynamic attribute.
|
|
77
|
-
* @param {Array} relations - An array of all the relations leading to the attribute field.
|
|
78
|
-
* @param {string} attribute - The attribute of the component.
|
|
79
|
-
*/
|
|
80
|
-
FOB_addGridColumn(parameterType: string, relations: string | Array<string>, attribute: string): void;
|
|
81
|
-
/**
|
|
82
|
-
* Command to delete a column in a grid.
|
|
83
|
-
*
|
|
84
|
-
* @param {string} name - The name of the placeholder label.
|
|
85
|
-
*/
|
|
86
|
-
FOB_deleteGridColumn(name: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Command to save a custom view.
|
|
89
|
-
*
|
|
90
|
-
* @param {boolean} [formBuilderStandalone] - Optional check if test uses standalone formbuilder or not.
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
93
|
-
FOB_saveCustomView(formBuilderStandalone?: boolean): void;
|
|
94
|
-
/**
|
|
95
|
-
* Command to close sidemenu.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
FOB_closeSidemenu(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Show hide grid columns
|
|
101
|
-
*
|
|
102
|
-
* @param {string | number} column - The column to be retrieved.
|
|
103
|
-
* @param {boolean} visible - State of the column true/false.
|
|
104
|
-
*/
|
|
105
|
-
FOB_showGridColumn(column: string | number, visible: boolean): void;
|
|
106
|
-
/**
|
|
107
|
-
* Command to Open sidemenu.
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
FOB_openSideMenu(): void;
|
|
111
|
-
/**
|
|
112
|
-
* Command to perform logout.
|
|
113
|
-
*/
|
|
114
|
-
FOB_logout(): void;
|
|
115
|
-
/**
|
|
116
|
-
* Command to search and select a custom view in the formbuilder.
|
|
117
|
-
* @param {string} customViewName - The name of the customview to search for.
|
|
118
|
-
* @param {boolean} [autoSelect=true] - Bolean to select the customview or not.
|
|
119
|
-
*/
|
|
120
|
-
FOB_searchCustomView(customViewName: string, autoSelect?: boolean): void;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
export {};
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { span } from '../tsHelper.js';
|
|
2
|
-
Cypress.Commands.add('FOB_login', (company, formBuilderStandalone) => {
|
|
3
|
-
const loginType = String(Cypress.expose('loginType'));
|
|
4
|
-
if (!Cypress.expose('globisUrl')) {
|
|
5
|
-
throw new Error('No environment parameters found');
|
|
6
|
-
}
|
|
7
|
-
switch (loginType.toLocaleLowerCase()) {
|
|
8
|
-
case 'servoy':
|
|
9
|
-
cy.POR_servoyLogin(company, formBuilderStandalone);
|
|
10
|
-
break;
|
|
11
|
-
case 'okta':
|
|
12
|
-
cy.FOB_oktaLogin(company, formBuilderStandalone);
|
|
13
|
-
break;
|
|
14
|
-
case 'default':
|
|
15
|
-
cy.FOB_defaultLogin(company, formBuilderStandalone);
|
|
16
|
-
break;
|
|
17
|
-
default:
|
|
18
|
-
throw new Error('Incorrect type');
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
Cypress.Commands.add('POR_servoyLogin', (company, formBuilderStandalone) => {
|
|
22
|
-
cy.visit(Cypress.expose('formBuilderUrl'));
|
|
23
|
-
cy.GLO_checkLoadingIndicator();
|
|
24
|
-
cy.GLO_getElement(['ng2$svy_nav_login', 'txtUser'])
|
|
25
|
-
.find('input')
|
|
26
|
-
.eq(0)
|
|
27
|
-
.clear()
|
|
28
|
-
.type(Cypress.expose('username'));
|
|
29
|
-
cy.env(['password']).then(({ password }) => {
|
|
30
|
-
cy.GLO_getElement(['ng2$svy_nav_login', 'txtPass'])
|
|
31
|
-
.find('input')
|
|
32
|
-
.eq(0)
|
|
33
|
-
.clear()
|
|
34
|
-
.type(password, { log: false });
|
|
35
|
-
});
|
|
36
|
-
cy.GLO_addInput(['ng2$svy_nav_login', 'owner'], Cypress.expose('ownerName'));
|
|
37
|
-
cy.GLO_clickButton(['ng2$svy_nav_login', 'btnLogin'], undefined);
|
|
38
|
-
cy.GLO_checkLoadingIndicator();
|
|
39
|
-
if (company) {
|
|
40
|
-
cy.GLO_selectCompany(company);
|
|
41
|
-
}
|
|
42
|
-
cy.get(`[data-cy="formbuilder${formBuilderStandalone ? '_standalone' : ''}.navbar_top"]`, { timeout: 120000 }).should('exist');
|
|
43
|
-
});
|
|
44
|
-
Cypress.Commands.add('FOB_defaultLogin', (company, formBuilderStandalone) => {
|
|
45
|
-
// Change the Url if necessary
|
|
46
|
-
const url = Cypress.expose('formBuilderUrl');
|
|
47
|
-
cy.GLO_log(url);
|
|
48
|
-
cy.visit(url);
|
|
49
|
-
cy.GLO_checkLoadingIndicator();
|
|
50
|
-
cy.GLO_getElement(['ng2$svy_nav_login', 'txtUser'])
|
|
51
|
-
.find('input')
|
|
52
|
-
.eq(0)
|
|
53
|
-
.clear()
|
|
54
|
-
.type(Cypress.expose('username'));
|
|
55
|
-
cy.env(['password']).then(({ password }) => {
|
|
56
|
-
cy.GLO_getElement(['ng2$svy_nav_login', 'txtPass'])
|
|
57
|
-
.find('input')
|
|
58
|
-
.eq(0)
|
|
59
|
-
.clear()
|
|
60
|
-
.type(password, { log: false });
|
|
61
|
-
});
|
|
62
|
-
cy.get('[data-cy="ng2$svy_nav_login.btnLogin"]').click();
|
|
63
|
-
cy.GLO_checkLoadingIndicator();
|
|
64
|
-
if (company) {
|
|
65
|
-
cy.GLO_selectCompany(company);
|
|
66
|
-
}
|
|
67
|
-
cy.get(`[data-cy="formbuilder${formBuilderStandalone ? '_standalone' : ''}.navbar_top"]`, { timeout: 120000 }).should('exist');
|
|
68
|
-
});
|
|
69
|
-
Cypress.Commands.add('FOB_oktaLogin', (company, formBuilderStandalone) => {
|
|
70
|
-
// Change the Url if necessary
|
|
71
|
-
const url = Cypress.expose('formBuilderUrl');
|
|
72
|
-
cy.visit(url);
|
|
73
|
-
// biome-ignore plugin: wait for okta redirect page load
|
|
74
|
-
cy.wait(2000);
|
|
75
|
-
cy.task('log', 'Redirect to okta url');
|
|
76
|
-
cy.origin(Cypress.expose('oktaUrl'), () => {
|
|
77
|
-
cy.get('.o-form-input')
|
|
78
|
-
.find('[autocomplete="username"]')
|
|
79
|
-
.type(Cypress.expose('username'));
|
|
80
|
-
cy.task('log', 'Filled in username');
|
|
81
|
-
cy.get('[type="submit"]').click();
|
|
82
|
-
cy.env(['password']).then(({ password }) => {
|
|
83
|
-
cy.get('.o-form-input')
|
|
84
|
-
.find('[type="password"]', { timeout: 20000 })
|
|
85
|
-
.type(password, { log: false });
|
|
86
|
-
});
|
|
87
|
-
cy.task('log', 'Filled in password');
|
|
88
|
-
cy.get('[type="submit"]').click();
|
|
89
|
-
});
|
|
90
|
-
if (company) {
|
|
91
|
-
cy.GLO_selectCompany(company);
|
|
92
|
-
}
|
|
93
|
-
cy.task('log', 'Start navbar check');
|
|
94
|
-
cy.get(`[data-cy="formbuilder${formBuilderStandalone ? '_standalone' : ''}.navbar_top"]`, { timeout: 120000 }).should('exist');
|
|
95
|
-
cy.task('log', 'End navbar check');
|
|
96
|
-
});
|
|
97
|
-
Cypress.Commands.add('FOB_newCustomView', (type, dataSource, formName, customViewName, formBuilderStandalone) => {
|
|
98
|
-
cy.GLO_clickButton([`formbuilder${formBuilderStandalone ? '_standalone' : ''}`, 'btn_new'], '');
|
|
99
|
-
cy.FOB_clickMenuItem('formbuilder_wizard', 'list_form_form_types$containedForm$description', type);
|
|
100
|
-
cy.GLO_addInput(['formbuilder_wizard', 'filter'], dataSource);
|
|
101
|
-
cy.FOB_clickMenuItem('formbuilder_wizard', 'list_form_programs$containedForm$programname', dataSource);
|
|
102
|
-
cy.GLO_getElement(['formbuilder_wizard', 'info_lbl'])
|
|
103
|
-
.find(span)
|
|
104
|
-
.invoke('text')
|
|
105
|
-
.then((title) => {
|
|
106
|
-
cy.GLO_log(title);
|
|
107
|
-
if (title === 'Do you want to start this view based on a Form or an existing Custom view?') {
|
|
108
|
-
cy.FOB_clickMenuItem('formbuilder_wizard', 'list_form_baseform_types$containedForm$description', 'Form');
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
cy.FOB_clickMenuItem('formbuilder_wizard', 'list_form_forms$containedForm$programname', formName);
|
|
112
|
-
cy.GLO_getElement(['formbuilder_wizard', 'custom_view_name_txt']).find('.dx-texteditor-input').type(customViewName);
|
|
113
|
-
cy.GLO_clickButton(['formbuilder_wizard', 'save_btn'], undefined);
|
|
114
|
-
});
|
|
115
|
-
Cypress.Commands.add('FOB_clickMenuItem', (formName, elementNameDiscription, name) => {
|
|
116
|
-
cy.get(`[data-cy="${formName}.${elementNameDiscription}"`, { timeout: 10000 }).find(span, { timeout: 10000 }).contains(name).click();
|
|
117
|
-
cy.GLO_checkLoadingIndicator();
|
|
118
|
-
});
|
|
119
|
-
Cypress.Commands.add('FOB_addFieldDialog', (parameterType, relations, attribute, label) => {
|
|
120
|
-
cy.GLO_addInput(['ng$dataprovider_selection', 'parameter_type'], parameterType);
|
|
121
|
-
const relationsArray = Array.isArray(relations) ? relations : [relations];
|
|
122
|
-
relationsArray.forEach((relation) => {
|
|
123
|
-
cy.GLO_addInput(['ng$dataprovider_selection', 'parameter_relation'], relation);
|
|
124
|
-
});
|
|
125
|
-
cy.GLO_addInput(['ng$dataprovider_selection', 'parameter_attribute'], attribute);
|
|
126
|
-
cy.GLO_addInput(['formbuilder_dataprovider_dlg', 'i18n_txt'], label);
|
|
127
|
-
cy.GLO_clickButton(['formbuilder_dataprovider_dlg', 'submit_btn']);
|
|
128
|
-
});
|
|
129
|
-
Cypress.Commands.add('FOB_deleteCustomViewItem', (name) => {
|
|
130
|
-
cy.get('.formbuilder_field').find(span).contains(name).click();
|
|
131
|
-
cy.FOB_closeSidemenu();
|
|
132
|
-
cy.get('.formbuilder_field').find(span).contains(name).parent().get('.delete-field').click();
|
|
133
|
-
});
|
|
134
|
-
Cypress.Commands.add('FOB_dragComponentItem', (dragLocation, dropLocation) => {
|
|
135
|
-
cy.get(`[title="${dragLocation}"]`).realMouseDown({ button: 'left', position: 'center' }).realMouseMove(0, 10, { position: 'center' });
|
|
136
|
-
// biome-ignore plugin: wait for drag animation to settle before drop
|
|
137
|
-
cy.wait(200);
|
|
138
|
-
cy.get(span).contains(dropLocation).realMouseMove(0, 0, { position: 'center' }).realMouseUp();
|
|
139
|
-
cy.GLO_checkLoadingIndicator();
|
|
140
|
-
});
|
|
141
|
-
Cypress.Commands.add('FOB_deleteGridColumn', (name) => {
|
|
142
|
-
cy.get('.sidebar-right').find(`[placeholder="i18n:globis.label.${name}"]`).parent().find('[title="Remove column"]').click({ force: true });
|
|
143
|
-
});
|
|
144
|
-
Cypress.Commands.add('FOB_addGridColumn', (parameterType, relations, attribute) => {
|
|
145
|
-
cy.get('.sidebar-right').find('[title="Add new column"]').click({ force: true });
|
|
146
|
-
cy.FOB_addFieldDialog(parameterType, relations, attribute);
|
|
147
|
-
});
|
|
148
|
-
Cypress.Commands.add('FOB_saveCustomView', (formBuilderStandalone) => {
|
|
149
|
-
const formName = Cypress.expose('formBuilderStandalone') ? 'formbuilder_standalone' : 'formbuilder';
|
|
150
|
-
cy.GLO_clickButton([formName, 'btn_save']);
|
|
151
|
-
cy.GLO_checkLoadingIndicator();
|
|
152
|
-
if (!formBuilderStandalone) {
|
|
153
|
-
cy.GLO_clickButton(['formbuilder', 'close_btn']);
|
|
154
|
-
}
|
|
155
|
-
cy.get('.toast-container').find('.toast-title').contains('Succes').should('exist');
|
|
156
|
-
cy.contains('.toast-container .toast-title', 'Succes', { timeout: 10000 }).should('not.exist');
|
|
157
|
-
});
|
|
158
|
-
Cypress.Commands.add('FOB_openSideMenu', () => {
|
|
159
|
-
cy.get('.ag-side-bar-right').contains('Columns').click();
|
|
160
|
-
});
|
|
161
|
-
Cypress.Commands.add('FOB_showGridColumn', (column, shouldShow) => {
|
|
162
|
-
cy.get('.ag-side-bar-right').then(($sidebar) => {
|
|
163
|
-
let $checkbox;
|
|
164
|
-
if (typeof column === 'number') {
|
|
165
|
-
$checkbox = $sidebar.find(`.ag-virtual-list-item[aria-posinset="${column}"]`).find('input.ag-checkbox-input');
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
$checkbox = $sidebar
|
|
169
|
-
.find('.ag-column-select-column-label')
|
|
170
|
-
.filter((_, el) => new RegExp(`^${column}$`, 'i').test(el.innerText))
|
|
171
|
-
.closest('.ag-column-select-column')
|
|
172
|
-
.find('input.ag-checkbox-input');
|
|
173
|
-
}
|
|
174
|
-
cy.wrap($checkbox)
|
|
175
|
-
.should('have.length', 1)
|
|
176
|
-
.then(($cb) => {
|
|
177
|
-
if (shouldShow !== $cb.is(':checked')) {
|
|
178
|
-
cy.wrap($cb).click({ force: true });
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
Cypress.Commands.add('FOB_closeSidemenu', () => {
|
|
184
|
-
cy.get('.sidebar-right').get('i').get('.fa-chevron-right.fa-stack-1x').click();
|
|
185
|
-
});
|
|
186
|
-
Cypress.Commands.add('FOB_logout', () => {
|
|
187
|
-
cy.GLO_getElement(['ep$main', 'sidemenu']).find('.footer').find('.clickable').click();
|
|
188
|
-
cy.get('.window-footer').then(($dialog) => {
|
|
189
|
-
if ($dialog.find('.svy-btn-primary:contains("Yes")').length > 0) {
|
|
190
|
-
cy.wrap($dialog).contains('Yes').click();
|
|
191
|
-
}
|
|
192
|
-
else if ($dialog.find('.svy-btn-primary:contains("Ja")').length > 0) {
|
|
193
|
-
cy.wrap($dialog).contains('Ja').click();
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
throw new Error('Neither "Yes" nor "Ja" options found in the dialog box.');
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
cy.GLO_checkLoadingIndicator();
|
|
200
|
-
});
|
|
201
|
-
Cypress.Commands.add('FOB_searchCustomView', (customViewName, autoSelect = true) => {
|
|
202
|
-
const formName = Cypress.expose('formBuilderStandalone') ? 'formbuilder_standalone' : 'formbuilder';
|
|
203
|
-
cy.GLO_getElement([formName, 'Search_Menu']).find('[selection-box]').click();
|
|
204
|
-
cy.GLO_getElement([formName, 'Search_Menu']).within(() => {
|
|
205
|
-
cy.get('[search]').clear().type(`${customViewName}{enter}`);
|
|
206
|
-
});
|
|
207
|
-
if (autoSelect) {
|
|
208
|
-
cy.GLO_getElement([formName, 'Search_Menu']).get('[item]').contains(customViewName).parent().find('.fa-file-lines').click();
|
|
209
|
-
cy.GLO_checkLoadingIndicator();
|
|
210
|
-
}
|
|
211
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Cypress {
|
|
3
|
-
interface Chainable {
|
|
4
|
-
/**
|
|
5
|
-
* Command to switch to globjob in test and login with specified username.
|
|
6
|
-
*
|
|
7
|
-
* @param {string} username - Defaults to PR998 if not provided.
|
|
8
|
-
*/
|
|
9
|
-
GLJ_login(username?: string): void;
|
|
10
|
-
/**
|
|
11
|
-
* Command to select a main navigation item in globjob.
|
|
12
|
-
* @param {string} value - The text visible on the button.
|
|
13
|
-
*/
|
|
14
|
-
GLJ_mainNavigation(value: string): void;
|
|
15
|
-
/**
|
|
16
|
-
* Command to search for a value using the globjob header search.
|
|
17
|
-
*
|
|
18
|
-
* @param {customValueType} searchValue - The value to search for.
|
|
19
|
-
*
|
|
20
|
-
* @example cy.GLJ_searchHeader('202600015')
|
|
21
|
-
*/
|
|
22
|
-
GLJ_searchHeader(searchValue: customValueType): void;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export type gljContainer = {
|
|
27
|
-
subtype: string;
|
|
28
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
Cypress.Commands.add('GLJ_login', (username = 'PR998') => {
|
|
2
|
-
const u = new URL(Cypress.expose('globisUrl'));
|
|
3
|
-
const ownerId = u.searchParams.get('o') ?? '';
|
|
4
|
-
if (!ownerId)
|
|
5
|
-
throw new Error('Owner ID (o) is missing in globisUrl, use complete url with solution and owner id.');
|
|
6
|
-
const path = u.pathname.replace(/\/$/, '');
|
|
7
|
-
if (path.includes('/solution/')) {
|
|
8
|
-
u.pathname = path.replace(/\/solution\/[^/?#]+/, '/solution/globjob');
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
u.pathname = `${path}/solution/globjob`;
|
|
12
|
-
}
|
|
13
|
-
u.searchParams.set('o', ownerId);
|
|
14
|
-
cy.visit(u.toString());
|
|
15
|
-
cy.GLO_getElement(['mobile$svy_nav_login', 'txt_login'], { timeout: 120000 });
|
|
16
|
-
cy.GLO_checkLoadingIndicator();
|
|
17
|
-
cy.GLO_getElement(['mobile$svy_nav_login', 'txt_login'], { timeout: 120000 }).find('input').eq(0).should('be.enabled').should('be.visible').clear().type(username);
|
|
18
|
-
cy.env(['password']).then(({ password }) => {
|
|
19
|
-
cy.GLO_getElement(['mobile$svy_nav_login', 'txt_password'])
|
|
20
|
-
.find('input')
|
|
21
|
-
.eq(0)
|
|
22
|
-
.clear()
|
|
23
|
-
.type(password, { log: false });
|
|
24
|
-
});
|
|
25
|
-
cy.get('[data-cy="mobile$svy_nav_login.btn_login"]').click();
|
|
26
|
-
cy.GLO_checkLoadingIndicator();
|
|
27
|
-
cy.GLO_getElement(['gj$sidebar', 'Logout_Button'], { timeout: 120000 }).should('exist');
|
|
28
|
-
});
|
|
29
|
-
Cypress.Commands.add('GLJ_mainNavigation', (value) => {
|
|
30
|
-
cy.GLO_getElement(['gj$main_menu', 'Main_Menu']).find('button').contains(value).click();
|
|
31
|
-
cy.GLO_checkLoadingIndicator();
|
|
32
|
-
});
|
|
33
|
-
Cypress.Commands.add('GLJ_searchHeader', (searchValue) => {
|
|
34
|
-
cy.get('.active-tab svy-form [name$="buttonbar"] [name="search_ean_code_txt"]')
|
|
35
|
-
.find('input.dx-texteditor-input')
|
|
36
|
-
.clear()
|
|
37
|
-
.type(`${searchValue}{enter}`);
|
|
38
|
-
cy.GLO_checkLoadingIndicator();
|
|
39
|
-
});
|
|
40
|
-
export {};
|