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
- accountType: helpers/const/common.js - AccountType
- 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
- tabName: helpers/const/standalone/tab_components.js - Tab
- templateName: helpers/const/standalone/drilldown_components.js - Drilldown
- drilldownName: helpers/const/standalone/tab_components.js - Drilldown
- platformType: helpers/const/common.js - PlatformType
⚠️ 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
- paymentType: ❗️ddt approach fixture PaymentType
- purchaseType: ❗️ddt approach fixture PurchaseType
- shippingType: ❗️ddt approach fixture ShippingType
- taxType: ❗️ddt approach fixture TaxType
- discountType: ❗️ddt approach fixture DiscountType
Location: helpers/const/fixtures.js - used for json data files in fixtures/{env}/{any}.json
- platformType: helpers/const/common.js - PlatformType
- amount: just variable (number)
- 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