How to test visibility rules

Written By Floris de Vries

Last updated 16 days ago

Overview

Testing visibility rules ensures that the bulk order form is shown only to the intended customers.

Because visibility depends on customer type and login status, testing must be done carefully.


Step 1: Identify the visibility rule

Start by checking which visibility rule is active on the bulk order form:

  • All customers

  • Logged-in customers

  • Customers with specific tags

  • Specific customers

You need this to know how to test correctly.

Step 2: Use the correct customer state

All customers

  • Log out

  • Visit the storefront

  • The form should be visible

Logged-in customers

  • Log out โ†’ form should not be visible

  • Log in โ†’ form should be visible

Customers with specific tags

  1. Log in as a customer with the correct tag

  2. Verify the form is visible

  3. Log in as a customer without the tag

  4. Verify the form is not visible

Specific customers

  1. Log in as a selected customer

  2. Verify the form is visible

  3. Log in as a different customer

  4. Verify the form is not visible

Step 3: Test edge cases

Also test:

  • A customer with multiple tags

  • A customer assigned to another bulk form

  • A newly tagged customer

This helps catch conflicts early.

Step 4: Use a private window

Always test visibility in:

  • A private/incognito browser window

This avoids cached sessions and incorrect results.

Step 5: Test after changes

After updating visibility rules:

  • Save the bulk order form

  • Refresh the storefront

  • Re-test all scenarios


Common mistakes

Testing while logged in as admin

Admin accounts do not reflect real customer visibility.

Always test with a customer account.

Forgetting login requirements

Tag-based and customer-based visibility always require login.


Final checklist

Before going live:

  • โœ… Correct visibility rule is active

  • โœ… Correct customers can see the form

  • โœ… Other customers cannot see the form

  • โœ… No overlapping bulk forms


Related articles