Assert what an open panel of the debug toolbar shows, or does not show: a text of the panel (a route, a view, the name of the signed-in account), white space collapsed. Open the panel first.
Examples
Then the "Routes" panel of the debug toolbar should show "TestFixtures::account"
Then the "Auth" panel of the debug toolbar should show "user@example.com"
And the "Timeline" panel of the debug toolbar should show "welcome_message"
Then the "Routes" panel of the debug toolbar should not show "admin/settings"
And the "Config" panel of the debug toolbar should show "Environment: development"
Pattern
Then(/^the "([^"]*)" panel of the debug toolbar should( not)* show "([^"]*)"$/, …)
Part of @webship-js/codeigniter-steps (github.com/webship/codeigniter-steps), a step pack for Webship-js 2.0.x.