Skip to main content

Deprecated qa automation api part 1 standalone editor

0️⃣ Login API

Location: helpers/pre-steps.js

⚠️ Methods

  • standaloneLogin(accountType, appUrl)
    • description: Login + Navigate to App Url
  • goToStandalone(accountType, appUrl) -
    • description: Navigate to App Url (Without Login)

☣️ Params

  1. accountType: helpers/const/common.js - AccountType
  2. appUrl: helpers/const/url.js - APP_URL

1️⃣ Navigation API

Location: support/standalone/nav_commands.js

⚠️ Methods

  • selectTab(tabName)
  • selectTemplate(templateName)
  • selectDrilldown(drilldownName)
  • navigateTo(platformType, accountType, appUrl)
  • clickBackFromDrillDown()
  • clickBtnNext()
  • clickBtnBack()
  • clickBtnContinueWithTemplate()
  • clickBtnAddElement()
  • clickBtnUpgrade()
  • clickBtnAddToSite()
  • clickBtnSwitchViewMode()

☣️ Params

  1. tabName: helpers/const/standalone/tab_components.js - Tab
  2. templateName: helpers/const/standalone/drilldown_components.js - Drilldown
  3. drilldownName: helpers/const/standalone/tab_components.js - Drilldown
  4. platformType: helpers/const/common.js - PlatformType

2️⃣ Form Builder API

Location: helpers/standalone/form_builder/form_builder.js

⚠️ Methods

Payment Tab:

  • selectPaymentType(paymentType)
  • selectPurchaseType(purchaseType)
  • setProductCost(amount)
  • addShipping(shippingType, amount)
  • addTax(taxType,amount)
  • addDiscountCode(discountName, amount, discountType)
  • selectCurrency(currencyOptionName)
  • removeTax()
  • removeShippingPrice()
  • specifyProductDetails(defaultProductCost, defaultProductQuantity, choosePriceEnabled, chooseQuantityEnabled)

Settings Tab:

  • addEmailToAdmin(email)
  • enableAutoresponder()

Common:

  • saveAndGoToCheckout(accountType, appUrl)
  • getTestCaseName(testData)
    • description: Creates TestCaseName for flexible DDT test (discount_spec.js)

☣️ Params

  1. paymentType: ❗️ddt approach fixture PaymentType
  2. purchaseType: ❗️ddt approach fixture PurchaseType
  3. shippingType: ❗️ddt approach fixture ShippingType
  4. taxType: ❗️ddt approach fixture TaxType
  5. discountType: ❗️ddt approach fixture DiscountType

Location: helpers/const/fixtures.js - used for json data files in fixtures/{env}/{any}.json

  1. platformType: helpers/const/common.js - PlatformType
  2. amount: just variable (number)
  3. currencyOptionName: ❗️must be selector's name

3️⃣ Preview Checkout API

Location: support/view/checkout_commands.js

⚠️ Methods

☣️ Params

Location: support/view/preview_checkout.js

⚠️ Methods

☣️ Params