write-tests

Write Biloba browser test specs using Ginkgo/Gomega patterns.

25|7|Updated Mar 3, 2023
One-click install
npx skills add https://github.com/onsi/biloba --skill write-tests-onsi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/onsi/biloba/tree/main/plugins/biloba/skills/write-tests
Command: npx skills add https://github.com/onsi/biloba --skill write-tests-onsi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing Biloba specs can be verbose and error-prone; this skill guides engineers to author clean, robust browser tests using the Biloba patterns (dual immediate/matcher, readiness anchors, stable locators, and multi-tab flows) within Ginkgo/Gomega.

Core Features & Use Cases

  • Clear guidance on using dual immediate/matcher forms to strike a balance between immediacy and polling readiness.
  • Comprehensive locator strategies (semantic locators, CSS fast selectors, and XPath) to craft resilient tests across web apps.
  • Supports multi-tab flows, realistic vs fast interactions, and test organization for review and maintenance.

Quick Start

Write a simple Biloba spec using a Describe block and biloba APIs to declare interactions and expectations in your test suite.

Frequently Asked Questions about write-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write browser tests using Ginkgo and Gomega?

Browser tests using Ginkgo and Gomega are written by declaring interactions and expectations within Describe blocks. You utilize Biloba APIs to craft specs applying dual immediate and matcher patterns to balance test immediacy with polling readiness.

What are locator strategies for writing resilient browser tests?

Resilient browser tests use stable locator strategies including semantic locators, CSS fast selectors, and XPath. These strategies help craft robust tests that withstand UI changes and maintain reliability across web applications during execution.

How do I handle multi-tab flows in Gomega browser testing?

Multi-tab flows in Gomega browser testing are handled using Biloba patterns within your specs. The framework supports navigating across multiple tabs, allowing you to maintain test state and verify interactions across different browser contexts reliably.

When should I use immediate vs matcher forms in Biloba specs?

Use immediate forms for direct assertions and matcher forms for polling readiness in Biloba specs. Balancing these dual patterns ensures your browser tests strike the right balance between immediacy and waiting for elements to reach a ready state.

Do I need prior knowledge of Biloba APIs to write browser tests?

Yes, writing browser tests requires familiarity with biloba overview and API documentation. You must also configure proper frontmatter metadata in SKILL.md to successfully author and review robust browser test specs.

Can I use realistic and fast interaction modes for browser testing?

Yes, browser testing supports both realistic and fast interaction modes. Realistic interactions simulate actual user behavior for thorough validation, while fast interactions accelerate test execution by streamlining non-critical UI interactions.