Test the custom Blocks

Steps performed to test the blocks

Overview

You can quickly test how your Custom Blocks look and behave directly from the Superfans dashboard by setting sample values for their parameters and using the live preview.

This removes the need to repeatedly open your mobile app or Shopify admin just to verify small changes.

There are certain actions that cannot be tested in preview for which we would need to test on the real device.

Why this is helpful

Testing Custom Blocks in the dashboard lets you:

  1. See how different parameter values change the block
  2. Validate the block’s logic and layout before publishing
  3. Avoid switching back and forth between the dashboard and the admin app
  4. Speed up your design and development workflow

Variables configuration for testing

There are 3 major variables which can be tested on the preview for namely:

  1. Customer Variables
  2. Device Variables
  3. Shopify Helpers

Steps to test Customer Variables

  1. Navigate to the desired custom block you would like to test on the preview dashboard.

  2. Click on the 3 dots and select the "Set Customer Variables" options from the dropdown.

  3. Provide the inputs for necessary variables, save the changes.

  4. Have a look on the preview of the dashboard.

Steps to test Device Variables

  1. Navigate to the desired custom block you would like to test on the preview dashboard.

  2. Click on the 3 dots and select the "Set Device Variables" options from the dropdown.

  3. Provide the inputs for necessary variables, save the changes.

  4. Have a look on the preview of the dashboard.

Steps to test Shopify Helpers

  1. Navigate to the desired custom block you would like to test on the preview dashboard.

  2. Click on the 3 dots and select the "Set Helper Params" options from the dropdown.

  3. Provide the inputs for necessary variables , save the changes.

  4. Have a look on the preview of the dashboard.


Testing on Mobile device

To test the custom blocks on the real mobile app, you would need to follow these steps.

  1. Please download the Superfans Preview app from Appstore / Playstore.
    [Appstore link][Playstore link].

  2. Enter your mail id and login to the app.

  3. Enter the name of store and theme you would like to test.

  4. Tadaa! Your preview is up and you can start testing!