Hero Background

Power Your Software Testing with AI Agents and Cloud

The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.

Kane CLIMarketing

Test an outbound message and the audience rule behind it

The message should appear for one page and one plan, and stay hidden for every other combination.

Published on:

A targeted in-app message is an interruption aimed at a specific audience. Shown to the right people it converts; shown to everyone it is spam your own product is sending.

This use case checks the targeting rule on the Intercomm clone from every direction.

The flow under test

The rule has two conditions, and the test checks each one failing as well as both passing.

PagePlanMessages shown
PricingPro1, the intended audience
HomePro0, wrong page
PricingFree0, wrong plan
PricingProCTA click recorded

Testing both negative combinations is what proves the rule rather than the message. A message shown on every page would satisfy a positive-only check completely, and nobody files a bug about seeing a message they were not meant to see.

Note

Note: Checking a targeting rule from both sides costs two steps and is the only way to prove an audience is actually being filtered. Start on TestMu AI. Start for free

The test file

Each combination is asserted by the count of messages shown rather than by the presence of text, which makes a hidden message and an absent one the same verifiable thing.

---
mode: testing
url: https://my-testing-repo-main.vercel.app/intercom-clone-app/outbound?reset=true
max_steps: 40
tags: [intercom, support, marketing]
---

# Intercomm 31.4: Outbound message display

Catalog objective: verify a targeted outbound message shows on the matching page.
Key assertion: the message displays with a working call to action.

## Verify the message shows on the matching page
With "Pricing page" selected and the plan on "Pro", verify "Messages shown on this page" reads 1 and the visitor view shows "Not sure which plan fits?" with the body "Book 15 minutes with us and we will size it with you."

## Verify it does not show on a non-matching page
Select "Home page" in "Page they are on" and verify "Messages shown on this page" reads 0 with the note that no outbound message targets this page and plan.

## Verify the audience rule is respected
Select "Pricing page" again, then select "Free" in "Their plan", and verify "Messages shown on this page" reads 0.

## Verify the call to action works
Select "Pro" in "Their plan", click the "Book a call" button, and verify a green banner reads ""Book a call" clicked - the click is recorded against Not sure which plan fits?" and the CTA clicks card shows "Clicks" of 1.

The final step clicks the call to action and asserts the click is attributed to the right message, since an unattributed click is a conversion nobody can report on.

Step by step coverage

A match, two misses, and a conversion.

StepWhat it proves
Verify the message shows on the matching pageThe intended audience sees the message and its body
Verify it does not show on a non-matching pageThe page condition is enforced
Verify the audience rule is respectedThe plan condition is enforced independently
Verify the call to action worksThe CTA fires and the click is attributed

Changing one condition at a time across steps two and three is what makes each half of the rule independently verifiable.

Next-generation test execution with TestMu AI

Running it

kane-cli testmd run tests/intercom/outbound-message_test.md

Add a repeat visit, since a message that reappears after being dismissed is the fastest way to make a helpful prompt feel like spam.

Targeting rules are configured by marketers and rarely regression tested. Running Kane CLI in CI covers catching a rule change, and the Kane CLI introduction covers getting started.

Author

...

Bhawana

Blogs: 75

  • Twitter
  • Linkedin

Bhawana is a Community Evangelist at TestMu AI with over 3 years of experience creating technically accurate, strategy-driven content in software testing. She has authored 50+ blogs on test automation, cross-browser testing, mobile testing, and real device testing. She also serves as Product Marketing Manager for Kane CLI, the command-line tool that runs browser automation from the terminal using natural-language flows in a real Chrome browser. Bhawana is certified in KaneAI, Selenium, Appium, Playwright, and Cypress, reflecting her hands-on knowledge of modern automation practices. On LinkedIn, she is followed by 6000+ QA engineers, testers, AI automation testers, and tech leaders.

Add to Google preferred sources

Summarise with AI

Copied to Clipboard!
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free

Outbound Message FAQs

Did you find this page helpful?

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests