@globisnv/cypress-core 0.0.1
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 +255 -0
- package/bin/create-customer-repo.mjs +89 -0
- package/biome.json +49 -0
- package/dist/apiMethods/IGS_request.d.ts +98 -0
- package/dist/apiMethods/IGS_request.js +161 -0
- package/dist/apiMethods/IGS_response.d.ts +47 -0
- package/dist/apiMethods/IGS_response.js +1 -0
- package/dist/blueprints/GLO_addressPopup.d.ts +45 -0
- package/dist/blueprints/GLO_addressPopup.js +96 -0
- package/dist/blueprints/GLO_article.d.ts +45 -0
- package/dist/blueprints/GLO_article.js +110 -0
- package/dist/blueprints/GLO_articleLot.d.ts +12 -0
- package/dist/blueprints/GLO_articleLot.js +23 -0
- package/dist/blueprints/GLO_articleVersion.d.ts +4 -0
- package/dist/blueprints/GLO_articleVersion.js +4 -0
- package/dist/blueprints/GLO_attachmentPopup.d.ts +9 -0
- package/dist/blueprints/GLO_attachmentPopup.js +10 -0
- package/dist/blueprints/GLO_bankAccount.d.ts +7 -0
- package/dist/blueprints/GLO_bankAccount.js +7 -0
- package/dist/blueprints/GLO_billingProcess.d.ts +4 -0
- package/dist/blueprints/GLO_billingProcess.js +4 -0
- package/dist/blueprints/GLO_billingProposal.d.ts +9 -0
- package/dist/blueprints/GLO_billingProposal.js +9 -0
- package/dist/blueprints/GLO_cancel.d.ts +7 -0
- package/dist/blueprints/GLO_cancel.js +7 -0
- package/dist/blueprints/GLO_commandlist.d.ts +10 -0
- package/dist/blueprints/GLO_commandlist.js +10 -0
- package/dist/blueprints/GLO_complaint.d.ts +27 -0
- package/dist/blueprints/GLO_complaint.js +51 -0
- package/dist/blueprints/GLO_composition.d.ts +14 -0
- package/dist/blueprints/GLO_composition.js +20 -0
- package/dist/blueprints/GLO_consignment.d.ts +61 -0
- package/dist/blueprints/GLO_consignment.js +104 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentContainerGroup.js +6 -0
- package/dist/blueprints/GLO_consignmentGoods.d.ts +40 -0
- package/dist/blueprints/GLO_consignmentGoods.js +62 -0
- package/dist/blueprints/GLO_consignmentHandling.d.ts +4 -0
- package/dist/blueprints/GLO_consignmentHandling.js +4 -0
- package/dist/blueprints/GLO_consignmentOrder.d.ts +31 -0
- package/dist/blueprints/GLO_consignmentOrder.js +37 -0
- package/dist/blueprints/GLO_consignmentPart.d.ts +13 -0
- package/dist/blueprints/GLO_consignmentPart.js +13 -0
- package/dist/blueprints/GLO_consignmentParts.d.ts +5 -0
- package/dist/blueprints/GLO_consignmentParts.js +12 -0
- package/dist/blueprints/GLO_consignmentPrice.d.ts +11 -0
- package/dist/blueprints/GLO_consignmentPrice.js +19 -0
- package/dist/blueprints/GLO_consignmentSupplier.d.ts +6 -0
- package/dist/blueprints/GLO_consignmentSupplier.js +11 -0
- package/dist/blueprints/GLO_contacts.d.ts +10 -0
- package/dist/blueprints/GLO_contacts.js +14 -0
- package/dist/blueprints/GLO_container.d.ts +6 -0
- package/dist/blueprints/GLO_container.js +4 -0
- package/dist/blueprints/GLO_contract.d.ts +22 -0
- package/dist/blueprints/GLO_contract.js +30 -0
- package/dist/blueprints/GLO_contractArticle.d.ts +17 -0
- package/dist/blueprints/GLO_contractArticle.js +35 -0
- package/dist/blueprints/GLO_contractArticleCost.d.ts +5 -0
- package/dist/blueprints/GLO_contractArticleCost.js +8 -0
- package/dist/blueprints/GLO_countryVatZone.d.ts +8 -0
- package/dist/blueprints/GLO_countryVatZone.js +9 -0
- package/dist/blueprints/GLO_currencyDeviation.d.ts +14 -0
- package/dist/blueprints/GLO_currencyDeviation.js +15 -0
- package/dist/blueprints/GLO_customerArticle.d.ts +12 -0
- package/dist/blueprints/GLO_customerArticle.js +15 -0
- package/dist/blueprints/GLO_customsFlow.d.ts +8 -0
- package/dist/blueprints/GLO_customsFlow.js +19 -0
- package/dist/blueprints/GLO_customsFlowDefinition.d.ts +15 -0
- package/dist/blueprints/GLO_customsFlowDefinition.js +14 -0
- package/dist/blueprints/GLO_customsUnion.d.ts +4 -0
- package/dist/blueprints/GLO_customsUnion.js +4 -0
- package/dist/blueprints/GLO_deliveryReceipt.d.ts +10 -0
- package/dist/blueprints/GLO_deliveryReceipt.js +22 -0
- package/dist/blueprints/GLO_departureSchedule.d.ts +27 -0
- package/dist/blueprints/GLO_departureSchedule.js +57 -0
- package/dist/blueprints/GLO_departureScheduleTimes.d.ts +49 -0
- package/dist/blueprints/GLO_departureScheduleTimes.js +61 -0
- package/dist/blueprints/GLO_document.d.ts +7 -0
- package/dist/blueprints/GLO_document.js +7 -0
- package/dist/blueprints/GLO_documentAttachment.d.ts +4 -0
- package/dist/blueprints/GLO_documentAttachment.js +4 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.d.ts +5 -0
- package/dist/blueprints/GLO_documentDefinitionEntity.js +5 -0
- package/dist/blueprints/GLO_documentGroup.d.ts +4 -0
- package/dist/blueprints/GLO_documentGroup.js +4 -0
- package/dist/blueprints/GLO_documentType.d.ts +12 -0
- package/dist/blueprints/GLO_documentType.js +11 -0
- package/dist/blueprints/GLO_enterCountry.d.ts +21 -0
- package/dist/blueprints/GLO_enterCountry.js +47 -0
- package/dist/blueprints/GLO_enterDiscount.d.ts +8 -0
- package/dist/blueprints/GLO_enterDiscount.js +9 -0
- package/dist/blueprints/GLO_equipment.d.ts +34 -0
- package/dist/blueprints/GLO_equipment.js +55 -0
- package/dist/blueprints/GLO_equipmentCategory.d.ts +15 -0
- package/dist/blueprints/GLO_equipmentCategory.js +14 -0
- package/dist/blueprints/GLO_equipmentEntity.d.ts +5 -0
- package/dist/blueprints/GLO_equipmentEntity.js +5 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentServiceCategory.js +13 -0
- package/dist/blueprints/GLO_equipmentType.d.ts +21 -0
- package/dist/blueprints/GLO_equipmentType.js +20 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.d.ts +13 -0
- package/dist/blueprints/GLO_equipmentTypeServiceCategory.js +12 -0
- package/dist/blueprints/GLO_fieldInputValidation.d.ts +46 -0
- package/dist/blueprints/GLO_fieldInputValidation.js +73 -0
- package/dist/blueprints/GLO_formula.d.ts +9 -0
- package/dist/blueprints/GLO_formula.js +9 -0
- package/dist/blueprints/GLO_gang.d.ts +12 -0
- package/dist/blueprints/GLO_gang.js +12 -0
- package/dist/blueprints/GLO_holiday.d.ts +7 -0
- package/dist/blueprints/GLO_holiday.js +8 -0
- package/dist/blueprints/GLO_journey.d.ts +18 -0
- package/dist/blueprints/GLO_journey.js +24 -0
- package/dist/blueprints/GLO_journeyStop.d.ts +32 -0
- package/dist/blueprints/GLO_journeyStop.js +44 -0
- package/dist/blueprints/GLO_layout.d.ts +6 -0
- package/dist/blueprints/GLO_layout.js +6 -0
- package/dist/blueprints/GLO_logging.d.ts +9 -0
- package/dist/blueprints/GLO_logging.js +12 -0
- package/dist/blueprints/GLO_logisticConnection.d.ts +10 -0
- package/dist/blueprints/GLO_logisticConnection.js +11 -0
- package/dist/blueprints/GLO_logisticConnectionType.d.ts +5 -0
- package/dist/blueprints/GLO_logisticConnectionType.js +5 -0
- package/dist/blueprints/GLO_logisticContract.d.ts +28 -0
- package/dist/blueprints/GLO_logisticContract.js +80 -0
- package/dist/blueprints/GLO_logisticContractDetail.d.ts +42 -0
- package/dist/blueprints/GLO_logisticContractDetail.js +122 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.d.ts +11 -0
- package/dist/blueprints/GLO_logisticContractDetailHandling.js +14 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.d.ts +5 -0
- package/dist/blueprints/GLO_logisticContractDetailItem.js +8 -0
- package/dist/blueprints/GLO_logisticContractItem.d.ts +14 -0
- package/dist/blueprints/GLO_logisticContractItem.js +40 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemActivity.js +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.d.ts +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurcharge.js +7 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractItemSurchargeItem.js +4 -0
- package/dist/blueprints/GLO_logisticContractReference.d.ts +4 -0
- package/dist/blueprints/GLO_logisticContractReference.js +4 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.d.ts +9 -0
- package/dist/blueprints/GLO_logisticContractVolumeConstraint.js +8 -0
- package/dist/blueprints/GLO_logisticLocation.d.ts +7 -0
- package/dist/blueprints/GLO_logisticLocation.js +7 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.d.ts +19 -0
- package/dist/blueprints/GLO_logisticPriceRequestDetailExternalPrice.js +30 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.d.ts +4 -0
- package/dist/blueprints/GLO_logisticPurchaseOrder.js +4 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.d.ts +6 -0
- package/dist/blueprints/GLO_logistic_waiting_hours.js +6 -0
- package/dist/blueprints/GLO_operationalDefault.d.ts +23 -0
- package/dist/blueprints/GLO_operationalDefault.js +25 -0
- package/dist/blueprints/GLO_outputDetailMail.d.ts +14 -0
- package/dist/blueprints/GLO_outputDetailMail.js +13 -0
- package/dist/blueprints/GLO_postalcode.d.ts +6 -0
- package/dist/blueprints/GLO_postalcode.js +6 -0
- package/dist/blueprints/GLO_priceDependency.d.ts +5 -0
- package/dist/blueprints/GLO_priceDependency.js +4 -0
- package/dist/blueprints/GLO_priceEntry.d.ts +17 -0
- package/dist/blueprints/GLO_priceEntry.js +17 -0
- package/dist/blueprints/GLO_priceRequest.d.ts +8 -0
- package/dist/blueprints/GLO_priceRequest.js +20 -0
- package/dist/blueprints/GLO_priceRequestLine.d.ts +12 -0
- package/dist/blueprints/GLO_priceRequestLine.js +17 -0
- package/dist/blueprints/GLO_principal.d.ts +9 -0
- package/dist/blueprints/GLO_principal.js +13 -0
- package/dist/blueprints/GLO_printPopup.d.ts +10 -0
- package/dist/blueprints/GLO_printPopup.js +62 -0
- package/dist/blueprints/GLO_production.d.ts +9 -0
- package/dist/blueprints/GLO_production.js +9 -0
- package/dist/blueprints/GLO_productionLineMaterial.d.ts +8 -0
- package/dist/blueprints/GLO_productionLineMaterial.js +13 -0
- package/dist/blueprints/GLO_productionMaterial.d.ts +5 -0
- package/dist/blueprints/GLO_productionMaterial.js +5 -0
- package/dist/blueprints/GLO_purchaseCosts.d.ts +6 -0
- package/dist/blueprints/GLO_purchaseCosts.js +9 -0
- package/dist/blueprints/GLO_purchaseInvoice.d.ts +12 -0
- package/dist/blueprints/GLO_purchaseInvoice.js +25 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.d.ts +8 -0
- package/dist/blueprints/GLO_purchaseInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_purchaseOrder.d.ts +14 -0
- package/dist/blueprints/GLO_purchaseOrder.js +25 -0
- package/dist/blueprints/GLO_purchaseOrderLine.d.ts +10 -0
- package/dist/blueprints/GLO_purchaseOrderLine.js +24 -0
- package/dist/blueprints/GLO_purchasePrices.d.ts +10 -0
- package/dist/blueprints/GLO_purchasePrices.js +10 -0
- package/dist/blueprints/GLO_quotation.d.ts +12 -0
- package/dist/blueprints/GLO_quotation.js +32 -0
- package/dist/blueprints/GLO_quotationLine.d.ts +12 -0
- package/dist/blueprints/GLO_quotationLine.js +28 -0
- package/dist/blueprints/GLO_receipt.d.ts +13 -0
- package/dist/blueprints/GLO_receipt.js +17 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.d.ts +8 -0
- package/dist/blueprints/GLO_receiptFromTempReceipt.js +8 -0
- package/dist/blueprints/GLO_receiptLine.d.ts +22 -0
- package/dist/blueprints/GLO_receiptLine.js +28 -0
- package/dist/blueprints/GLO_relationAddress.d.ts +26 -0
- package/dist/blueprints/GLO_relationAddress.js +58 -0
- package/dist/blueprints/GLO_relationBankAccount.d.ts +9 -0
- package/dist/blueprints/GLO_relationBankAccount.js +9 -0
- package/dist/blueprints/GLO_relationContact.d.ts +23 -0
- package/dist/blueprints/GLO_relationContact.js +45 -0
- package/dist/blueprints/GLO_relationGroupType.d.ts +7 -0
- package/dist/blueprints/GLO_relationGroupType.js +6 -0
- package/dist/blueprints/GLO_relations.d.ts +67 -0
- package/dist/blueprints/GLO_relations.js +186 -0
- package/dist/blueprints/GLO_relationtype.d.ts +15 -0
- package/dist/blueprints/GLO_relationtype.js +31 -0
- package/dist/blueprints/GLO_remarkType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkType.js +9 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.d.ts +4 -0
- package/dist/blueprints/GLO_remarkTypeDefaultValue.js +14 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.d.ts +10 -0
- package/dist/blueprints/GLO_remarkTypeEntityType.js +9 -0
- package/dist/blueprints/GLO_representative.d.ts +7 -0
- package/dist/blueprints/GLO_representative.js +6 -0
- package/dist/blueprints/GLO_salesInvoice.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoice.js +15 -0
- package/dist/blueprints/GLO_salesInvoiceLine.d.ts +9 -0
- package/dist/blueprints/GLO_salesInvoiceLine.js +13 -0
- package/dist/blueprints/GLO_salesOrder.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrder.js +25 -0
- package/dist/blueprints/GLO_salesOrderLine.d.ts +13 -0
- package/dist/blueprints/GLO_salesOrderLine.js +34 -0
- package/dist/blueprints/GLO_stockCorrection.d.ts +14 -0
- package/dist/blueprints/GLO_stockCorrection.js +24 -0
- package/dist/blueprints/GLO_stopSchedule.d.ts +4 -0
- package/dist/blueprints/GLO_stopSchedule.js +4 -0
- package/dist/blueprints/GLO_supplierArticle.d.ts +8 -0
- package/dist/blueprints/GLO_supplierArticle.js +8 -0
- package/dist/blueprints/GLO_tclSetting.d.ts +6 -0
- package/dist/blueprints/GLO_tclSetting.js +6 -0
- package/dist/blueprints/GLO_todo.d.ts +10 -0
- package/dist/blueprints/GLO_todo.js +21 -0
- package/dist/blueprints/GLO_todoSchedule.d.ts +23 -0
- package/dist/blueprints/GLO_todoSchedule.js +79 -0
- package/dist/blueprints/GLO_tractionDistance.d.ts +6 -0
- package/dist/blueprints/GLO_tractionDistance.js +6 -0
- package/dist/blueprints/GLO_transportOrder.d.ts +4 -0
- package/dist/blueprints/GLO_transportOrder.js +4 -0
- package/dist/blueprints/GLO_transportPrice.d.ts +18 -0
- package/dist/blueprints/GLO_transportPrice.js +34 -0
- package/dist/blueprints/GLO_transportRequirement.d.ts +18 -0
- package/dist/blueprints/GLO_transportRequirement.js +32 -0
- package/dist/blueprints/GLO_transportRequirementContainer.d.ts +8 -0
- package/dist/blueprints/GLO_transportRequirementContainer.js +8 -0
- package/dist/blueprints/GLO_transportRequirementGoods.d.ts +33 -0
- package/dist/blueprints/GLO_transportRequirementGoods.js +51 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.d.ts +6 -0
- package/dist/blueprints/GLO_transportScenarioExecutionLeg.js +6 -0
- package/dist/blueprints/GLO_transportStock.d.ts +4 -0
- package/dist/blueprints/GLO_transportStock.js +4 -0
- package/dist/blueprints/GLO_visit.d.ts +9 -0
- package/dist/blueprints/GLO_visit.js +10 -0
- package/dist/blueprints/GLO_warehouseMove.d.ts +9 -0
- package/dist/blueprints/GLO_warehouseMove.js +9 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.d.ts +6 -0
- package/dist/blueprints/GLO_warehouseOrderSubline.js +11 -0
- package/dist/blueprints/GLO_workflowLoggingTable.d.ts +20 -0
- package/dist/blueprints/GLO_workflowLoggingTable.js +20 -0
- package/dist/blueprints/GLO_workflowVerification.d.ts +10 -0
- package/dist/blueprints/GLO_workflowVerification.js +19 -0
- package/dist/blueprints/GLO_zone.d.ts +9 -0
- package/dist/blueprints/GLO_zone.js +9 -0
- package/dist/blueprints/GLO_zone_postalcode.d.ts +12 -0
- package/dist/blueprints/GLO_zone_postalcode.js +10 -0
- package/dist/blueprints/GLO_zone_type.d.ts +8 -0
- package/dist/blueprints/GLO_zone_type.js +7 -0
- package/dist/blueprints/GLT_goods.d.ts +2 -0
- package/dist/blueprints/GLT_goods.js +12 -0
- package/dist/commands/FOB_commands.d.ts +124 -0
- package/dist/commands/FOB_commands.js +211 -0
- package/dist/commands/GLJ_commands.d.ts +28 -0
- package/dist/commands/GLJ_commands.js +40 -0
- package/dist/commands/GLO_commands.d.ts +685 -0
- package/dist/commands/GLO_commands.js +2315 -0
- package/dist/commands/GLS_commands.d.ts +63 -0
- package/dist/commands/GLS_commands.js +103 -0
- package/dist/commands/GLT_commands.d.ts +78 -0
- package/dist/commands/GLT_commands.js +148 -0
- package/dist/commands/POR_commands.d.ts +85 -0
- package/dist/commands/POR_commands.js +122 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.js +115 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15 -0
- package/dist/plugins/prometheusWriter.d.ts +15 -0
- package/dist/plugins/prometheusWriter.js +111 -0
- package/dist/register.d.ts +8 -0
- package/dist/register.js +23 -0
- package/dist/tsHelper.d.ts +161 -0
- package/dist/tsHelper.js +294 -0
- package/dist/types.d.ts +363 -0
- package/dist/types.js +4 -0
- package/dist/websocketDetector.d.ts +71 -0
- package/dist/websocketDetector.js +1593 -0
- package/package.json +58 -0
- package/scripts/check-unnecessary-waiting.mjs +119 -0
- package/template/CODEOWNERS +20 -0
- package/template/biome.json +7 -0
- package/template/cypress/e2e/__CUSTOMER__/template.cy.ts.example +18 -0
- package/template/cypress/support/e2e.ts +21 -0
- package/template/cypress/support/record.mjs +46 -0
- package/template/cypress.config.ts +3 -0
- package/template/cypress.env.json.example +24 -0
- package/template/package.json +20 -0
- package/template/tsconfig.json +11 -0
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
import { type CheckState, type disabledFlag, type exactMatchFlag, type OpenClose, type searchTypeFlag, type showInCommandLogFlag, type skipCheckFlag, type usernameFlag, type validityFlag } from '../tsHelper.js';
|
|
2
|
+
type GetOptions = NonNullable<Parameters<typeof cy.get>[1]> & Partial<Cypress.TypeOptions> & {
|
|
3
|
+
selectAllDelete?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare global {
|
|
6
|
+
namespace Cypress {
|
|
7
|
+
interface Chainable {
|
|
8
|
+
/**
|
|
9
|
+
* Command to clear data by executing a formula.
|
|
10
|
+
* This formula needs to be added to the desired Globis environment.
|
|
11
|
+
*
|
|
12
|
+
* @param {deleteRecordsType} formulaName - The name of the formula should be 'DELETE_CYPRESS_RECORDS' or 'DELETE_LEAPWORK_RECORDS'
|
|
13
|
+
*/
|
|
14
|
+
GLO_clearData(formulaName: deleteRecordsType): void;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated - use GLO_getElement instead. This command has been disabled.
|
|
17
|
+
*/
|
|
18
|
+
GLO_getByCData(formName: string, elementName: string, disableFilterVisible?: string, timeOut?: number): Chainable<JQuery>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated - use GLO_getElement instead. This command has been disabled.
|
|
21
|
+
*/
|
|
22
|
+
GLO_getByName(elementName: string, disableFilterVisible?: string, timeOut?: number): Chainable<JQuery>;
|
|
23
|
+
/**
|
|
24
|
+
* Locate an element by selector array.
|
|
25
|
+
* Scoped to the active crumb; falls back to global if no match.
|
|
26
|
+
*
|
|
27
|
+
* @param {selectorType} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup. Optional trailing number selects the Nth matching element (row-index aware).
|
|
28
|
+
* @param {GetOptions} [options] - Optional Cypress get options (e.g. timeout).
|
|
29
|
+
*/
|
|
30
|
+
GLO_getElement(selector: selectorType, options?: GetOptions): Chainable<JQuery>;
|
|
31
|
+
/**
|
|
32
|
+
* Command to locate an element by using get and adding a filter(':visible')
|
|
33
|
+
*
|
|
34
|
+
* @param {string} selector - The selector of the element.
|
|
35
|
+
* @param {number} timeOut - how long it should wait for the element to be found, default set in tsHelper.ts
|
|
36
|
+
* @returns {Chainable<JQuery<HTMLElement>>} Yields the element matching the specified name attribute, filtered for visibility.
|
|
37
|
+
*/
|
|
38
|
+
GLO_getVisible(selector: string, timeOut?: number): Chainable<JQuery>;
|
|
39
|
+
/**
|
|
40
|
+
* Command to perform login based on the login type specified in environment variables.
|
|
41
|
+
*
|
|
42
|
+
* If provided, it will be used in specific login methods.
|
|
43
|
+
* @param {string} [company] - Optional parameter representing the company name.
|
|
44
|
+
* @param {urlTypeType} [urlType] - This optional parameter is used for change the url from online to something else ex. pos.
|
|
45
|
+
*/
|
|
46
|
+
GLO_login(company?: string, urlType?: urlTypeType): void;
|
|
47
|
+
/**
|
|
48
|
+
* Command to perform a Globis default login, using a Globis username and password.
|
|
49
|
+
*
|
|
50
|
+
* @param {string} [company] - Optional parameter representing the company name.
|
|
51
|
+
* If provided, it selects the specified company after login.
|
|
52
|
+
* @param {string} [usernameENV] - Optional parameter to use a different env username
|
|
53
|
+
* @param {string} [passwordENV] - Optional parameter to use a different env password
|
|
54
|
+
* @param {urlTypeType} [urlType] - This optional parameter is used to change the url solution parameter from 'online' to something else, e.g. 'pos'.
|
|
55
|
+
*/
|
|
56
|
+
GLO_defaultlogin(company?: string, usernameENV?: string, passwordENV?: string, urlType?: urlTypeType): void;
|
|
57
|
+
/**
|
|
58
|
+
* Command to perform default login. username and password with a second user.
|
|
59
|
+
* We assume that the login screen is already visible. This command can only be executed after a logout,
|
|
60
|
+
* as there is a difference in HTML code between the default landing page and the secondary (this) one.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} usernameENV - Name of the env variable for the username ex. 'username2'.
|
|
63
|
+
* @param {string} passwordENV - Name of the env variable for the password ex. 'password2'.
|
|
64
|
+
* @param {string} [company] - Optional parameter representing a company name.
|
|
65
|
+
* If provided, the specified company will be selected during login.
|
|
66
|
+
*/
|
|
67
|
+
GLO_defaultloginExtraUser(usernameENV: string, passwordENV: string, company?: string): void;
|
|
68
|
+
/**
|
|
69
|
+
* Command to perform a login using Okta authentication.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} [company] - Optional parameter representing the company name.
|
|
72
|
+
* If provided, it selects the specified company after login.
|
|
73
|
+
* @param {urlTypeType} [urlType] - This optional parameter is used to change the url solution parameter from 'online' to something else, e.g. 'pos'.
|
|
74
|
+
* @param {skipCheckFlag} [skipNavCheck] - This optional parameter is used to skip the navbar validation. Only use this in rare cases
|
|
75
|
+
*/
|
|
76
|
+
GLO_oktaLogin(company?: string, urlType?: urlTypeType, skipNavCheck?: skipCheckFlag): void;
|
|
77
|
+
/**
|
|
78
|
+
* Command to perform a logout.
|
|
79
|
+
*/
|
|
80
|
+
GLO_logout(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Command to check the user and end a test whenever the provided username is globisadmin.
|
|
83
|
+
*/
|
|
84
|
+
GLO_checkUser(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Command to perform a login using Servoy authentication.
|
|
87
|
+
*
|
|
88
|
+
* @param {string} [company] - Optional parameter representing the company name.
|
|
89
|
+
* If provided, the specified company will be selected during login.
|
|
90
|
+
*/
|
|
91
|
+
GLO_servoyLogin(company?: string): void;
|
|
92
|
+
/**
|
|
93
|
+
* Click a button element located via selector. Always scrolls into view before clicking.
|
|
94
|
+
*
|
|
95
|
+
* @param {selectorType} selector - `[name]`, `[form, element]`, or with optional trailing index: `[name, idx]` / `[form, element, idx]`.
|
|
96
|
+
* @param {string} [buttonType] - Optional icon class within the element (e.g. 'fa-search', 'fa-plus').
|
|
97
|
+
*/
|
|
98
|
+
GLO_clickButton(selector: selectorType, buttonType?: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Command to search for a program using the header.
|
|
101
|
+
*
|
|
102
|
+
* @param {string} solutionName - The name of the solution.
|
|
103
|
+
* @param {string} moduleName - The name of the module.
|
|
104
|
+
* @param {string} programName - The name of the program to search for.
|
|
105
|
+
*
|
|
106
|
+
* @example - cy.GLO_searchHeader('Relations', 'Relations', 'Suppliers')
|
|
107
|
+
*/
|
|
108
|
+
GLO_searchHeader(solutionName: string, moduleName: string, programName: string): void;
|
|
109
|
+
/**
|
|
110
|
+
* Command to search for a specific value within a datacontrol section.
|
|
111
|
+
* This command will do a search inside data for a specific program, using the righternmost search box.
|
|
112
|
+
*
|
|
113
|
+
* @param {customValueTypeUndefined} elementName - The name of the element to search for within the data control.
|
|
114
|
+
*
|
|
115
|
+
* @example - Search for a Sales order number inside the Sales orders program
|
|
116
|
+
*/
|
|
117
|
+
GLO_searchDataControl(elementName: customValueTypeUndefined): void;
|
|
118
|
+
/**
|
|
119
|
+
* Check the value of a field.
|
|
120
|
+
*
|
|
121
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
122
|
+
* @param {customValueTypeUndefined} value - Expected value.
|
|
123
|
+
* @param {checkOperatorType} [operator='equal'] - Comparison operator.
|
|
124
|
+
* @param {number} [timeOut=10000] - How long it should wait for the field to update, default: 10s
|
|
125
|
+
*/
|
|
126
|
+
GLO_checkField(selector: selectorType, value: customValueTypeUndefined, operator?: checkOperatorType, timeOut?: number): void;
|
|
127
|
+
/**
|
|
128
|
+
* Command to check the absence of the loading indicator.
|
|
129
|
+
* Waits for 1 second, and then waits for the loading indicator to disappear within 20 minutes.
|
|
130
|
+
*/
|
|
131
|
+
GLO_checkLoadingIndicator(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Command to click a button within the main program datacontrol bar, based on a provided button name.
|
|
134
|
+
*
|
|
135
|
+
* For the view buttons `btnList` and `btnDetail` the click is skipped (without failing) when the button is disabled or absent,
|
|
136
|
+
* because that means the requested view is already the active one, or the program has no list/detail toggle at all.
|
|
137
|
+
* This makes them safe to call unconditionally, e.g. right after `GLO_selectProgram` when you do not know in which view the program was left.
|
|
138
|
+
*
|
|
139
|
+
* @param {string} buttonName - The identifier of the button within the data control browser tab.
|
|
140
|
+
* @param {skipCheckFlag} [skipCheck = noSkipCheck] - This will disable the check after a button save.
|
|
141
|
+
*/
|
|
142
|
+
GLO_clickDatacontrolBrowserButton(buttonName: datacontrolbuttonType, skipCheck?: skipCheckFlag): void;
|
|
143
|
+
/**
|
|
144
|
+
* Command to click a button within the datacontrol bar in the viewer section, based on the provided page name and button name.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} pageName - The name of the page containing the datacontrol bar in the viewer section.
|
|
147
|
+
* @param {string} buttonName - The identifier of the button within the datacontrol bar in the viewer section.
|
|
148
|
+
* @param {skipCheckFlag} [skipCheck = noSkipCheck] - This will disable the check after a button save.
|
|
149
|
+
*
|
|
150
|
+
* @example - cy.GLO_clickDatacontrolViewerButton('salesorder', 'btnAdd');
|
|
151
|
+
*/
|
|
152
|
+
GLO_clickDatacontrolViewerButton(pageName: string, buttonName: baseDatacontrolViewerButtonType, skipCheck?: skipCheckFlag): void;
|
|
153
|
+
/**
|
|
154
|
+
* Command to click a button based on its displayed text.
|
|
155
|
+
*
|
|
156
|
+
* @param {string} textButton - The text displayed on the button to be clicked.
|
|
157
|
+
*/
|
|
158
|
+
GLO_clickButtonText(textButton: string): void;
|
|
159
|
+
/**
|
|
160
|
+
* Command to select a company on the login screen.
|
|
161
|
+
*
|
|
162
|
+
* @param {string} companyName - The name of the company to be selected.
|
|
163
|
+
*/
|
|
164
|
+
GLO_selectCompany(companyName: string): void;
|
|
165
|
+
/**
|
|
166
|
+
* Check or uncheck a checkbox element.
|
|
167
|
+
*
|
|
168
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
169
|
+
* @param {CheckState} bool - check to check, unCheck to uncheck.
|
|
170
|
+
*/
|
|
171
|
+
GLO_checkbox(selector: string[], bool: CheckState): void;
|
|
172
|
+
/**
|
|
173
|
+
* Toggle a switch element on or off.
|
|
174
|
+
*
|
|
175
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
176
|
+
* @param {CheckState} bool - check to enable, unCheck to disable.
|
|
177
|
+
*/
|
|
178
|
+
GLO_switch(selector: string[], bool: CheckState): void;
|
|
179
|
+
/**
|
|
180
|
+
* Command to close all programs.
|
|
181
|
+
*/
|
|
182
|
+
GLO_closeDashboard(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Command to select a tab using its data-cy attribute, which is composed of formName.elementName
|
|
185
|
+
*
|
|
186
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
187
|
+
* @param {string} tabName - The name of the tab to be selected.
|
|
188
|
+
* @param {OpenClose} openOrClose - Indicates whether to open (true) or close (false) the tab.
|
|
189
|
+
*/
|
|
190
|
+
GLO_selectTab(selector: string[], tabName: string, openOrClose: OpenClose): void;
|
|
191
|
+
/**
|
|
192
|
+
* Command to open the workflow menu and to click a desired workflow in the main program datacontrol section.
|
|
193
|
+
*
|
|
194
|
+
* @param {string} buttonName - The workflow entry to be selected.
|
|
195
|
+
* @param {exactMatchFlag} [exactMatch] - Indicates whether to search for an exact match (equalBool) or not. Default is disabled.
|
|
196
|
+
*/
|
|
197
|
+
GLO_selectMenuButton(buttonName: string, exactMatch?: exactMatchFlag): void;
|
|
198
|
+
/**
|
|
199
|
+
* Command to open the workflow menu and to click a desired workflow in the datacontrol viewer section.
|
|
200
|
+
*
|
|
201
|
+
* @param {string} tabName - The name of the tab containing the datacontrol viewer section.
|
|
202
|
+
* @param {string} buttonName - The workflow entry to be selected.
|
|
203
|
+
* @param {exactMatchFlag} [exactMatch] - Indicates whether to search for an exact match (equalBool) or not). Default: is disabled.
|
|
204
|
+
*
|
|
205
|
+
* @example - cy.GLO_selectMenuButtonControlView('salesorder', 'Confirm');
|
|
206
|
+
*/
|
|
207
|
+
GLO_selectMenuButtonControlView(tabName: string, buttonName: string, exactMatch?: exactMatchFlag): void;
|
|
208
|
+
/**
|
|
209
|
+
* Close a program based on its position.
|
|
210
|
+
*
|
|
211
|
+
* @param {topBottomType} topBottom - The position of the program ('top' or 'bottom') row.
|
|
212
|
+
* @param {string} programName - The name of the program to be closed.
|
|
213
|
+
* @param {number} [tabNumber] - Optional: If multiple programs with the same name are open, the tab number of the program to be closed should be defined.
|
|
214
|
+
* The tabNumber index starts at 0 for the leftmost program.
|
|
215
|
+
*
|
|
216
|
+
*/
|
|
217
|
+
GLO_closeProgram(topBottom: topBottomType, programName: string, tabNumber?: number): void;
|
|
218
|
+
/**
|
|
219
|
+
* Command to make a choice in a popup dialog.
|
|
220
|
+
* Test will continue if no dialog pops up.
|
|
221
|
+
*
|
|
222
|
+
* @param {string} confirmation - The button, based on its text contents, to be clicked in the popup dialog.
|
|
223
|
+
*/
|
|
224
|
+
GLO_dialogChoice(confirmation: string): void;
|
|
225
|
+
/**
|
|
226
|
+
* Command to add input to a dialog with an input field.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} text - The option to be selected in the popup dialog.
|
|
229
|
+
*/
|
|
230
|
+
GLO_addInputDialog(text: string): void;
|
|
231
|
+
/**
|
|
232
|
+
* Command to interact with an input field, dropdown, textarea or monaco editor.
|
|
233
|
+
* Element type is auto-detected from the DOM.
|
|
234
|
+
*
|
|
235
|
+
* @param {selectorType} selector - `[name]`, `[form, element]`, or with optional trailing index: `[name, idx]` / `[form, element, idx]`.
|
|
236
|
+
* @param {customValueTypeUndefined} value - The value to be entered/selected.
|
|
237
|
+
* @param {GetOptions} [options] - Optional Cypress get options (e.g. timeout).
|
|
238
|
+
*/
|
|
239
|
+
GLO_addInput(selector: selectorType, value: customValueTypeUndefined, options?: GetOptions): void;
|
|
240
|
+
/**
|
|
241
|
+
* Command to interact with different types of date input fields based on the type specified.
|
|
242
|
+
*
|
|
243
|
+
* @param {addDateType} type - The type of date field to interact with (input, inputName, select, selectName).
|
|
244
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
245
|
+
* @param {string} value - The date value to be entered or selected in the date field.
|
|
246
|
+
*/
|
|
247
|
+
GLO_addDate(type: addDateType, selector: string[], value: string | undefined): void;
|
|
248
|
+
/**
|
|
249
|
+
* Command to upload a file using its data-cy attribute, which is composed of formName.elementName
|
|
250
|
+
*
|
|
251
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
252
|
+
* @param {string} relativePath - The relative path of the file to be uploaded.
|
|
253
|
+
*
|
|
254
|
+
* @remark - Assuming that 'cypress' is the main folder, the path will usually be 'cypress/YYY/ZZZ/'.
|
|
255
|
+
*/
|
|
256
|
+
GLO_uploadFile(selector: string[], relativePath: string | string[]): void;
|
|
257
|
+
/**
|
|
258
|
+
* Command to upload a file inside the file upload dialog
|
|
259
|
+
*
|
|
260
|
+
* @param {string} relativePath - The relative path of the file to be uploaded.
|
|
261
|
+
*
|
|
262
|
+
* @remark - Assuming that 'cypress' is the main folder, the path will usually be 'cypress/YYY/ZZZ/'.
|
|
263
|
+
*/
|
|
264
|
+
GLO_uploadFileDialog(relativePath: string): void;
|
|
265
|
+
/**
|
|
266
|
+
* Command to filter a grid based on a specified column ID.
|
|
267
|
+
*
|
|
268
|
+
* @param {string} colId - The column ID (attribute col-id) of the element to be filtered.
|
|
269
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
270
|
+
* @param {customValueTypeUndefined} text - The text to filter in the grid.
|
|
271
|
+
* @param {exactMatchFlag} [exactMatch] - Select exact match (only for dropdown variant of filter) 'equalBool' to enable. Default: disabled.
|
|
272
|
+
* @param {filterGridTypes} [filterType] - The type of filter to be selected.
|
|
273
|
+
*/
|
|
274
|
+
GLO_filterGrid(colId: string, selector: string[], text: customValueTypeUndefined, exactMatch?: exactMatchFlag, filterType?: filterGridTypes): void;
|
|
275
|
+
/**
|
|
276
|
+
* Command to switch the company from within the application.
|
|
277
|
+
*
|
|
278
|
+
* @param {string} companyName - The name of the company to switch to.
|
|
279
|
+
*/
|
|
280
|
+
GLO_switchCompany(companyName: string): void;
|
|
281
|
+
/**
|
|
282
|
+
* Command to switch the role from within the application.
|
|
283
|
+
*
|
|
284
|
+
* @param {string} aliasName - The name of the alias to use to save to.
|
|
285
|
+
*/
|
|
286
|
+
GLO_getRole(aliasName: string): void;
|
|
287
|
+
/**
|
|
288
|
+
* Command to validate a value in a grid, based on span values only.
|
|
289
|
+
*
|
|
290
|
+
* @param {checkValueInGridType} value - The value to be validated in the grid.
|
|
291
|
+
* @param {string | number} [rowFilter] - Optional: The row number or span value the row has to have that you want to check a value in.
|
|
292
|
+
* @param {string} [columnId] - Optional: The culumnId you want to check a value in.
|
|
293
|
+
* @param {number} [timeOut] - how long it should wait for the field to update, default: 10s
|
|
294
|
+
* @param {number} [interval] - use this TOGETHER with timeOut for slow-running updates (e.g. batch process) (default: 50ms)
|
|
295
|
+
* @param {checkOperatorType} [operator='contains'] - Operator used by the function to check the value.
|
|
296
|
+
*/
|
|
297
|
+
GLO_checkValueGrid(value: checkValueInGridType, rowFilter?: string | number, columnId?: string, timeOut?: number, interval?: number, operator?: checkOperatorType): void;
|
|
298
|
+
/**
|
|
299
|
+
* Selects a program based on its name. If multiple programs share the same name,
|
|
300
|
+
* it selects the last occurrence.
|
|
301
|
+
*
|
|
302
|
+
* @param {topBottomType} topBottom - The position of the tab element ('top' for main programs, 'bottom' for subprograms underneath a main program).
|
|
303
|
+
* @param {String} programName - Name of the program to be selected.
|
|
304
|
+
* @param {number} [tabNumber] - Optional: if there are multiple visible programs with the same name, the desired tab occurrence can be decided with this parameter.
|
|
305
|
+
* Sidenote: the tabNumber index starts at zero (0) for the first one.
|
|
306
|
+
* the tab number of the program to be closed should be defined.
|
|
307
|
+
* @example - cy.GLO_selectProgram('top', 'ProgramName');
|
|
308
|
+
*/
|
|
309
|
+
GLO_selectProgram(topBottom: topBottomType, programName: string, tabNumber?: number): void;
|
|
310
|
+
/**
|
|
311
|
+
* Get a specific row in a grid based on its row number or span value.
|
|
312
|
+
*
|
|
313
|
+
* @param {string | number} rowFilter - The row number to retrieve.
|
|
314
|
+
* @returns {Chainable<Element>} Yields the Cypress chainable DOM element representing the row.
|
|
315
|
+
*/
|
|
316
|
+
GLO_getRowInGrid(rowFilter: string | number): Chainable<JQuery>;
|
|
317
|
+
/**
|
|
318
|
+
* Selects a specific row in a grid based on its row number or span value(s).
|
|
319
|
+
* This command will look for its corresponding checkbox and select it.
|
|
320
|
+
*
|
|
321
|
+
* @param {string | string[] | number} rowFilter - The row number to be selected.
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
GLO_selectRowInGrid(rowFilter: string | string[] | number): void;
|
|
325
|
+
/**
|
|
326
|
+
* Double-clicks on a specific row or span value in a grid, based on the provided type and value.
|
|
327
|
+
*
|
|
328
|
+
* @param {clickRowType} type - The type of element to select ('row' for row, 'span' for a span value).
|
|
329
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
330
|
+
* @param {customValueTypeUndefined | Array<string>} value - The value or index of the row or the span content to be double-clicked.
|
|
331
|
+
* @remark In case span is used as a type, an array of spans to dblClick a row that has multiple specific spans in the row can be provided.
|
|
332
|
+
* @param {string} [columnId] - The columnId identifier to be double-clicked. Required when the middle point of the row is outside the screen. Optional when type is 'row'.
|
|
333
|
+
* @remark - In other words, if the actual width of a grid (row) is at least 2*visible + 1 pixel, the middle point will be out of bounds.
|
|
334
|
+
* @param {skipCheckFlag} [skipCheck=false] - Optional: Whether to check for a page change or not after clicking the row.
|
|
335
|
+
* @param {exactMatchFlag} [equals=false] - Optional: Whether the result needs to contain the search value (false) or be equal to the search value (true).
|
|
336
|
+
*/
|
|
337
|
+
GLO_dblClickRowInGrid(type: clickRowType, selector: string[], value: customValueTypeUndefined | Array<string>, columnId?: string, skipCheck?: skipCheckFlag, equals?: exactMatchFlag): void;
|
|
338
|
+
/**
|
|
339
|
+
* Clicks on a specific row or span value in a grid, based on the provided value.
|
|
340
|
+
*
|
|
341
|
+
* @param {string | number} value - The value or index of the row or the span content to be clicked.
|
|
342
|
+
* @param {string} [columnId] - The columnId identifier to be double-clicked. Required when the middle point of the row is outside the screen.
|
|
343
|
+
* @remark - In other words, if the actual width of a grid (row) is at least 2*visible + 1 pixel, the middle point will be out of bounds.
|
|
344
|
+
*/
|
|
345
|
+
GLO_clickRowInGrid(value?: string | number, columnId?: string): void;
|
|
346
|
+
/**
|
|
347
|
+
* Opens a popup window by clicking the search glass, performs a search based on provided criteria, and selects a value from the grid.
|
|
348
|
+
*
|
|
349
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
350
|
+
* @param {customValueTypeUndefined} value - The value to search for within the popup window.
|
|
351
|
+
* @param {string} [columnId] - The column ID used to filter within the grid.
|
|
352
|
+
* @param {exactMatchFlag} [equals=false] - Whether the result needs to contain (false) or equal (true) the search value.
|
|
353
|
+
* @param {searchTypeFlag} [useMagnifierFlag =true] - Whether to type the search value in the input field (false) or use the magnifier (true).
|
|
354
|
+
*/
|
|
355
|
+
GLO_popupWindow(selector: selectorType, value: customValueTypeUndefined, columnId?: string, equals?: exactMatchFlag, useMagnifierFlag?: searchTypeFlag): void;
|
|
356
|
+
/**
|
|
357
|
+
* Command to select a button in the lefternmost Globis navigation bar.
|
|
358
|
+
*
|
|
359
|
+
* @param {String} buttonName - Name of the button to click ('home', 'settings', 'excel', 'info', 'refresh', 'users').
|
|
360
|
+
*/
|
|
361
|
+
GLO_selectMenuButtonLeft(buttonName: selectMenuButtonLeftType): void;
|
|
362
|
+
/**
|
|
363
|
+
* Changes the user which is currently logged in by opening the user change dialog,
|
|
364
|
+
* enters the specified username, and confirms the user change.
|
|
365
|
+
*
|
|
366
|
+
* @param {string} username - The username of the user to switch to.
|
|
367
|
+
*/
|
|
368
|
+
GLO_changeUser(username: string): void;
|
|
369
|
+
/**
|
|
370
|
+
* Selects a custom view by clicking the 'Custom views' button in the main program datacontrol bar,
|
|
371
|
+
* then chooses the specified custom view from the dropdown menu.
|
|
372
|
+
*
|
|
373
|
+
* @param {string | string[]} customViewName - The name of the custom view to select.
|
|
374
|
+
* @param {string} [subMenuName] - Optional: name of the submenu to select.
|
|
375
|
+
*/
|
|
376
|
+
GLO_selectCustomView(customViewName: string | string[], subMenuName?: string): void;
|
|
377
|
+
/**
|
|
378
|
+
* Double clicks a label to open a hyperlink.
|
|
379
|
+
*
|
|
380
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
381
|
+
* @param {string} labelValue - The value displayed on the label.
|
|
382
|
+
*/
|
|
383
|
+
GLO_dblClickLabel(selector: string[], labelValue: string): void;
|
|
384
|
+
/**
|
|
385
|
+
* Assert the aria-checked state of a checkbox element.
|
|
386
|
+
*
|
|
387
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
388
|
+
* @param {CheckState} value - Expected state: check for checked, unCheck for unchecked.
|
|
389
|
+
*/
|
|
390
|
+
GLO_validateCheckbox(selector: string[], value: CheckState): void;
|
|
391
|
+
/**
|
|
392
|
+
* Command to check the presence of the AG Grid loader and to wait for it to disappear, ensuring the AG Grid has finished loading.
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
395
|
+
GLO_checkAGLoader(): void;
|
|
396
|
+
/**
|
|
397
|
+
* Command to log a message into the VSCode terminal and also into the Cypress Test report (Jenkins).
|
|
398
|
+
*
|
|
399
|
+
* @param {string} logValue - The value to be logged and added to test context.
|
|
400
|
+
*/
|
|
401
|
+
GLO_log(logValue: string): void;
|
|
402
|
+
/**
|
|
403
|
+
* Command to store the value of an input field.
|
|
404
|
+
*
|
|
405
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
406
|
+
* @param {string} asValue - Value will be stored as name asValue.
|
|
407
|
+
* @param {showInCommandLogFlag} [log] - Optional: If true the value will be logged. Default the value will not be logged
|
|
408
|
+
*/
|
|
409
|
+
GLO_storeValue(selector: string[], asValue: string, log?: showInCommandLogFlag): void;
|
|
410
|
+
/**
|
|
411
|
+
* Command to store the value of a grid field.
|
|
412
|
+
*
|
|
413
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
414
|
+
* @param {number | string} rowFilter - Index or filterValue of the row (eg: if you know one of the cells in the row contains this value, and you want to store a different column value).
|
|
415
|
+
* @param {number} columnId - ColumnId of the row.
|
|
416
|
+
* @param {string} asValue - Value will be stored as name asValue.
|
|
417
|
+
* @param {showInCommandLogFlag} [log] - Optional: If true the value will be logged. Default the value will not be logged
|
|
418
|
+
*/
|
|
419
|
+
GLO_storeValueGrid(selector: string[], rowFilter: number | string, columnId: string, asValue: string, log?: showInCommandLogFlag): void;
|
|
420
|
+
/**
|
|
421
|
+
* Command to validate the number of entries within a specific element.
|
|
422
|
+
*
|
|
423
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
424
|
+
* @param {number} numberToValidate - The expected number of entries to validate.
|
|
425
|
+
* @param {string} [lengthCondition] - Optional: Sets whether there is a specific condition for a certain numberToValidate by assertion. Must use 'length' chai assertions.
|
|
426
|
+
* @param {number} [timeOut] - how long it should wait for the rowcount to update
|
|
427
|
+
*
|
|
428
|
+
* Available assertions for lengthCondition:
|
|
429
|
+
* 'have.length.of.at.most' - Maximum amount of rows for numberToValidate to be allowed
|
|
430
|
+
* 'have.length.greaterThan' - Amount of rows at minimum to be contained in a grid
|
|
431
|
+
*/
|
|
432
|
+
GLO_checkNumberOfRowsInGrid(selector: string[], numberToValidate: number, lengthCondition?: string, timeOut?: number): void;
|
|
433
|
+
/**
|
|
434
|
+
* Returns the current number of rows in a grid.
|
|
435
|
+
*
|
|
436
|
+
* @param {string[]} selector - The selector array [formName, elementName] identifying the grid.
|
|
437
|
+
* @param {number} [timeOut] - Optional timeout override.
|
|
438
|
+
*/
|
|
439
|
+
GLO_getNumberOfRowsInGrid(selector: string[], timeOut?: number): Cypress.Chainable<number>;
|
|
440
|
+
/**
|
|
441
|
+
* Command to filter a grid based on a specified header name.
|
|
442
|
+
*
|
|
443
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
444
|
+
* @param {string} headerName - The column header of the element to be filtered.
|
|
445
|
+
* @param {customValueTypeUndefined} text - The text to filter in the grid.
|
|
446
|
+
*/
|
|
447
|
+
GLO_filterGridCustomView(selector: string[], headerName: string, text: customValueTypeUndefined): void;
|
|
448
|
+
/**
|
|
449
|
+
* Clears the value of a field in a form.
|
|
450
|
+
*
|
|
451
|
+
* @param {selectorType} selector - `[name]`, `[form, element]`, or with optional trailing index: `[name, idx]` / `[form, element, idx]`. Trailing number selects the Nth matching element.
|
|
452
|
+
*/
|
|
453
|
+
GLO_clearField(selector: selectorType): void;
|
|
454
|
+
/**
|
|
455
|
+
* Custom Cypress command to read the contents of a file located in the Cypress downloads folder.
|
|
456
|
+
* The command constructs the file path using the specified file type and file name, then uses the built-in
|
|
457
|
+
* Cypress `readFile` method to read the file contents.
|
|
458
|
+
*
|
|
459
|
+
* @param {FileType} fileType - The type of the file (extension) to read. This should match one of the predefined
|
|
460
|
+
* file types in the `FileType` enumerator, such as 'xlsx', 'pdf', or 'docx'.
|
|
461
|
+
* @param {string} fileName - The name of the file, without its extension, to read from the downloads folder.
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
GLO_readFile(fileName: string, fileType: fileType): void;
|
|
465
|
+
/**
|
|
466
|
+
* Command to choose a button in an info/warning/error popup dialog window.
|
|
467
|
+
* Test will fail when no dialog pops up.
|
|
468
|
+
*
|
|
469
|
+
* @param {string} confirmation - The button, based on its text contents, to be clicked in the popup dialog.
|
|
470
|
+
* @param {string} [title] - Title of the popup.
|
|
471
|
+
* @param {string} [content] - Content of the popup body to verify.
|
|
472
|
+
* @param {string} [contentMatchType] - Type of the content match (exact, partial), default: exact.
|
|
473
|
+
*/
|
|
474
|
+
GLO_dialogRequiredCheck(confirmation: string, title?: string, content?: string, contentMatchType?: matchType): void;
|
|
475
|
+
/**
|
|
476
|
+
* Custom Cypress command to select a radio button within a form.
|
|
477
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
478
|
+
* @param {string | undefined} selectorName - The name of the radio button option to be selected.
|
|
479
|
+
* If undefined, no action is taken.
|
|
480
|
+
*/
|
|
481
|
+
GLO_radioButton(selector: string[], selectorName: string | undefined): void;
|
|
482
|
+
/**
|
|
483
|
+
* Command to interact with a checklist based on the provided form name, element name and the radiobutton name.
|
|
484
|
+
*
|
|
485
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
486
|
+
* @param {string} radioButtonName - The name of the radiobutton.
|
|
487
|
+
*/
|
|
488
|
+
GLO_radioListCData(selector: string[], radioButtonName: string | JQuery | undefined): void;
|
|
489
|
+
/**
|
|
490
|
+
* Command to validate if a radio button is selected or not based on the presence of the dx-radiobutton-icon-dot class.
|
|
491
|
+
*
|
|
492
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
493
|
+
* @param {string} radioButtonName - The label text of the radio button to validate.
|
|
494
|
+
* @param {CheckState} expectedState - True if the radio button should be selected, false if not.
|
|
495
|
+
*/
|
|
496
|
+
GLO_validateRadioListCData(selector: string[], radioButtonName: string, expectedState: CheckState): void;
|
|
497
|
+
/**
|
|
498
|
+
* This function will change the current user role to the disred one.
|
|
499
|
+
* @param {string} userRole - The name of the user role to be selected.
|
|
500
|
+
*/
|
|
501
|
+
GLO_changeUserRole(userRole: string): void;
|
|
502
|
+
/**
|
|
503
|
+
* This command selects rows in a grid based on the provided form name, element name,
|
|
504
|
+
* and optionally a specific number of rows.
|
|
505
|
+
*
|
|
506
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
507
|
+
* @param {number} [rowNumber] - Optional: The number of rows to select. If not provided, all rows will be selected.
|
|
508
|
+
*/
|
|
509
|
+
GLO_selectRows(selector: string[], rowNumber?: number): void;
|
|
510
|
+
/**
|
|
511
|
+
* This command clicks on the header span to sort the rows.
|
|
512
|
+
*
|
|
513
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
514
|
+
* @param {string} headerText - The text of the header span you want to click on.
|
|
515
|
+
*/
|
|
516
|
+
GLO_sortGrid(selector: string[], headerText: string): void;
|
|
517
|
+
/**
|
|
518
|
+
* This command dblclicks on the correct column and row in the grid and fills in the field.
|
|
519
|
+
*
|
|
520
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
521
|
+
* @param {number | string} rowFilter - Index or filterValue of the row to be filled in.
|
|
522
|
+
* @param {number} columnId - ColumnId of the row to be filled in.
|
|
523
|
+
* @param {customValueTypeUndefined} value - Value to be filled in the field
|
|
524
|
+
* @param {gridInputType} gridInputType - Type of the element that gets exposed, default: gridInput
|
|
525
|
+
*/
|
|
526
|
+
GLO_fillInfieldInGrid(selector: string[], rowFilter: number | string, columnId: string, value: customValueTypeUndefined, gridInputType?: gridInputType): void;
|
|
527
|
+
/**
|
|
528
|
+
* Command to select the FIRST option from a dropdown using its data-cy attribute, which is composed of formName.elementName.
|
|
529
|
+
*
|
|
530
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
531
|
+
*/
|
|
532
|
+
GLO_dropdownSelectFirstvalue(selector: string[]): void;
|
|
533
|
+
/**
|
|
534
|
+
* Command to store the current record id.
|
|
535
|
+
*
|
|
536
|
+
* @param {string} storeValueName - The stored variable name you want to cy.get(@storeValueName) from
|
|
537
|
+
*/
|
|
538
|
+
GLO_storeCurrentRecordId(storeValueName: string): void;
|
|
539
|
+
/**
|
|
540
|
+
* Command to check, in a Globis environment, which company is active, then switches to another requested company if different.
|
|
541
|
+
*
|
|
542
|
+
* @param {string} requestedCompanyCode - The company to switch to.
|
|
543
|
+
*/
|
|
544
|
+
GLO_checkAndSelectCompany(requestedCompanyCode: string): void;
|
|
545
|
+
/**
|
|
546
|
+
* This command right clicks in the grid and clicks the 'Select all' option
|
|
547
|
+
*
|
|
548
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
549
|
+
*/
|
|
550
|
+
GLO_selectAllGrid(selector: string[]): void;
|
|
551
|
+
/**
|
|
552
|
+
* Command to click a ::before icon button in a grid.
|
|
553
|
+
* Can be chained off a command that already contains the correct row,
|
|
554
|
+
* or can be used with the rowFilter parameter to find the correct row.
|
|
555
|
+
*
|
|
556
|
+
* @param {string} buttonColumn - The columnId of the button to click.
|
|
557
|
+
* @param {string | number} rowFilter - Index or span inside of the row.
|
|
558
|
+
* @param {string} [validationColumn] - Optional, the columnId where a value will change after the button is clicked.
|
|
559
|
+
* @param {number} [x] - Optional: The x-coordinate of the button to click in %. 0 = leftmost, 100 = rightmost. Default: 10%.
|
|
560
|
+
* @param {number} [y] - Optional: The y-coordinate of the button to click in %. 0 = topmost, 100 = bottommost. Default: 50%.
|
|
561
|
+
* @param {Cypress.Chainable<JQuery<HTMLElement>>} [subject] - Optional: When chained, this refers to the previously selected row.
|
|
562
|
+
|
|
563
|
+
*/
|
|
564
|
+
GLO_clickButtonInGrid(buttonColumn: string, rowFilter?: string | number, validationColumn?: string, x?: number, y?: number): Chainable<JQuery>;
|
|
565
|
+
/**
|
|
566
|
+
* Command to login using Okta, like GLO_oktaLogin, but with the simple addition of a boolean parameter to switch between 2 different accounts.
|
|
567
|
+
*
|
|
568
|
+
* This landing page is not the same as the initial portal. It can only be used when switching users after logging out from a Globis environment.
|
|
569
|
+
*
|
|
570
|
+
* @param {usernameFlag} [altUser] - Switch to decide whether a secondary (alternateUsername) account has to be logged into or (defaultUsername) the primary account.
|
|
571
|
+
* @param {string} [company] - Name of a company to switch to after successfully logging in.
|
|
572
|
+
*/
|
|
573
|
+
GLO_oktaAlternativeLogin(altUser: usernameFlag, company?: string): void;
|
|
574
|
+
/**
|
|
575
|
+
* Command to get all rows of a(ll) grids.
|
|
576
|
+
*
|
|
577
|
+
* @param {string[]} [selector] - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup. If omitted, returns all visible grid rows.
|
|
578
|
+
* @param {number} timeOut - how long it should wait for the element to be found, default set in tsHelper.ts
|
|
579
|
+
* @returns {Chainable<JQuery<HTMLElement>>} - Yields all rows (in a grid or from all grids on screen)
|
|
580
|
+
*/
|
|
581
|
+
GLO_getAllRowsInGrid(selector?: string[], timeOut?: number): Chainable<JQuery>;
|
|
582
|
+
/**
|
|
583
|
+
* Get the current and total record counts from #txtCount.
|
|
584
|
+
*
|
|
585
|
+
* @returns {Chainable<{ currentRecord: number; totalRecords: number }>}
|
|
586
|
+
*
|
|
587
|
+
* @example
|
|
588
|
+
* cy.GLO_getCurrentRecordCount().its('currentRecord').should('eq', 1)
|
|
589
|
+
* cy.GLO_getCurrentRecordCount().should(({ currentRecord, totalRecords }) => { ... })
|
|
590
|
+
*/
|
|
591
|
+
GLO_getCurrentRecordCount(timeOut?: number): Chainable<{
|
|
592
|
+
currentRecord: number;
|
|
593
|
+
totalRecords: number;
|
|
594
|
+
}>;
|
|
595
|
+
/**
|
|
596
|
+
* Command to validate a value in a grid, based on span values only.
|
|
597
|
+
*
|
|
598
|
+
* @param {string} waitValue - The value to be validated in the grid. Will wait for this value
|
|
599
|
+
* @param {string} failValue - The value that will stop the waiting and fail instantly.
|
|
600
|
+
* @param {number} [rowNumber] - Optional: The number of the row you want to check a value in.
|
|
601
|
+
* @param {string} [columnId] - Optional: The culumnId you want to check a value in.
|
|
602
|
+
* @param {number} [timeOut] - how long it should wait for the field to update, default: 10m
|
|
603
|
+
* @param {number} [interval] - use this TOGETHER with timeOut for slow-running updates (e.g. batch process) (default: 15s)
|
|
604
|
+
*/
|
|
605
|
+
GLO_validateGridOrFail(waitValue: string, failValue: string, rowNumber?: number, columnId?: string, timeOut?: number, interval?: number): void;
|
|
606
|
+
/**
|
|
607
|
+
* Store the value(s) of one or more fields into the nested '@saveData' alias:
|
|
608
|
+
* saveData[formName][elementName] = value
|
|
609
|
+
*
|
|
610
|
+
* In your test you must provide a generic type containing the keys
|
|
611
|
+
* (element names) you want to store. This enables IntelliSense/autocomplete.
|
|
612
|
+
*
|
|
613
|
+
* Usage:
|
|
614
|
+
* cy.GLO_storeObject<MyType>('formName', 'myKey')
|
|
615
|
+
* cy.GLO_storeObject<MyType>('formName', ['key1', 'key2'])
|
|
616
|
+
*
|
|
617
|
+
* @example
|
|
618
|
+
* type ConsignmentData = {
|
|
619
|
+
* local_consignment_order_nr: string;
|
|
620
|
+
* load_start_booked: string;
|
|
621
|
+
* };
|
|
622
|
+
*
|
|
623
|
+
* cy.GLO_storeObject<ConsignmentData>('ng$consignmentFormName','local_consignment_order_nr');
|
|
624
|
+
* cy.GLO_storeObject<ConsignmentData>('ng$consignmentFormName',['local_consignment_order_nr', 'load_start_booked']);
|
|
625
|
+
*
|
|
626
|
+
* and retrieve later with:
|
|
627
|
+
* cy.get<SaveData<ConsignmentData>>('@saveData').then((saveData) => {
|
|
628
|
+
* const orderNr = saveData['ng$consignmentFormName'].local_consignment_order_nr;
|
|
629
|
+
*
|
|
630
|
+
* @param formName - formname
|
|
631
|
+
* @param elementNames - Key(s) of the provided generic type (for IntelliSense)
|
|
632
|
+
* @param {number} [index] - Optional index when saving the same field multiple times in a test
|
|
633
|
+
* @param {showInCommandLogFlag} [log] - Show value in cypress command log
|
|
634
|
+
*/
|
|
635
|
+
GLO_storeObject<T extends Record<string, string>>(formName: string, elementName: keyof T | ReadonlyArray<keyof T>, index?: number, log?: showInCommandLogFlag): void;
|
|
636
|
+
/**
|
|
637
|
+
* Checks if a field is in an invalid state (has dx-invalid class).
|
|
638
|
+
*
|
|
639
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
640
|
+
* @param {validityFlag} [shouldBeInvalid=true] - Whether the field should be invalid (true) or valid (false).
|
|
641
|
+
*/
|
|
642
|
+
GLO_checkFieldInvalid(selector: string[], shouldBeInvalid?: validityFlag): void;
|
|
643
|
+
/**
|
|
644
|
+
* Checks if a field is enabled or disabled.
|
|
645
|
+
*
|
|
646
|
+
* @param {string[]} selector - One element: `[name=]` lookup. Two elements: `[data-cy$="form.element"]` lookup.
|
|
647
|
+
* @param {disabledFlag} [shouldBeEnabled=true] - Whether the field should be enabled (true) or disabled (false).
|
|
648
|
+
*/
|
|
649
|
+
GLO_checkFieldEnabled(selector: string[], shouldBeEnabled?: disabledFlag): void;
|
|
650
|
+
/**
|
|
651
|
+
* Checks if a field has the given background color class applied to its input element.
|
|
652
|
+
*
|
|
653
|
+
* @param {[string, string | string[]]} selector - `[formName, elementName]` or `[formName, [f1, f2, ...]]` to check multiple fields.
|
|
654
|
+
* @param {'red' | 'orange' | 'yellow' | 'green'} color - The background color class to check (default: 'red').
|
|
655
|
+
*/
|
|
656
|
+
GLO_checkFieldBgColor(selector: [string, string | string[]], color?: 'red' | 'orange' | 'yellow' | 'green'): void;
|
|
657
|
+
/**
|
|
658
|
+
* Builds and executes an Extended Filter query through the Extended Filter Builder UI.
|
|
659
|
+
* *
|
|
660
|
+
* Notes:
|
|
661
|
+
* - Filter structure is provided as a tree of nodes (`Leaf`, `Group`, `Nested group`) via `filterParams.filter`.
|
|
662
|
+
* - Fully typed so when building the filter object in the test, IntelliSense will guide you with accepted properties and value types.
|
|
663
|
+
*
|
|
664
|
+
* This command is expected to evolve: it should already cover most use cases for filter building,
|
|
665
|
+
* but in case you need a specific filter configuration that is not yet supported, feel free to contribute or reach out to the team to get it implemented.
|
|
666
|
+
*
|
|
667
|
+
* @param {extendedFilterType} filter - Settings describing the filter tree to apply.
|
|
668
|
+
* @param {Flag<'clearExistingFilters'>} [clearExistingFilters] - If provided, existing filter clauses are cleared before applying the new filter and running the query.
|
|
669
|
+
*/
|
|
670
|
+
GLO_extendedFilter(filter: extendedFilterType, clearExistingFilters?: Flag<'clearExistingFilters'>): void;
|
|
671
|
+
/**
|
|
672
|
+
* Command to apply a named/saved search from the datacontrol extended-search dropdown.
|
|
673
|
+
* These are the saved filter definitions shown when clicking the extended search button in a program's list.
|
|
674
|
+
* (e.g. 'MUs available for load' on the consignment parts list). Not to be confused with dashboard filters.
|
|
675
|
+
*
|
|
676
|
+
* @param {string} searchName - The exact (case-sensitive) name of the named search to apply.
|
|
677
|
+
*
|
|
678
|
+
* @example - cy.GLO_selectNamedSearch('MUs available for load');
|
|
679
|
+
*/
|
|
680
|
+
GLO_selectNamedSearch(searchName: string): void;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
export declare const clickButtonTextHelper: (textButton: string, buttonContainer: string) => void;
|
|
685
|
+
export {};
|