<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Greeshma Gopi on Medium]]></title>
        <description><![CDATA[Stories by Greeshma Gopi on Medium]]></description>
        <link>https://medium.com/@greesh552?source=rss-11eb5944854e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EvRjWtNrKwoMtZNgdau86Q.jpeg</url>
            <title>Stories by Greeshma Gopi on Medium</title>
            <link>https://medium.com/@greesh552?source=rss-11eb5944854e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:24:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@greesh552/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Making UI Automation Reliable: Why We Chose Playwright for IBM watsonx.data Intelligence]]></title>
            <link>https://medium.com/@greesh552/making-ui-automation-reliable-why-we-chose-playwright-for-ibm-watsonx-data-intelligence-53912c2ad2de?source=rss-11eb5944854e------2</link>
            <guid isPermaLink="false">https://medium.com/p/53912c2ad2de</guid>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[playwright-automation]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Greeshma Gopi]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 04:53:59 GMT</pubDate>
            <atom:updated>2026-11-18T04:53:59.764Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjAqjOj8fEGeAZvivgqjsQ.jpeg" /></figure><p><em>How Playwright helps us build reliable end-to-end tests for Governance Insights, handle authentication across environments, validate complex UI behaviour and debug failures.</em></p><h3>Introduction</h3><p>UI automation plays an important role in ensuring application quality, especially when an application has multiple workflows, user roles and deployment environments.</p><p>For IBM watsonx.data Intelligence, we needed an automation framework that could handle complex UI interactions, asynchronous data loading, multiple authentication flows and reliable test execution across environments.</p><p>We evaluated browser automation options, including Puppeteer and Playwright. While both are capable tools, Playwright offered a more integrated approach to building and maintaining our end-to-end automation suite.</p><h3>1. Playwright vs. Puppeteer</h3><p>Both Playwright and Puppeteer are browser automation tools that support browser interactions, navigation, element selection and automated testing.However, they differ in their approach to test execution, browser support and built-in testing capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhwSP6_5_mDkBLKi9ijyUw.png" /><figcaption>Playwright vs Puppeteer Comparison Table</figcaption></figure><p>Both tools can support comprehensive UI automation. The key difference for our use case was how much testing infrastructure Playwright provides out of the box.</p><h3>2. How We Structured Our Playwright Setup</h3><p>Beyond choosing the framework, we needed a setup that could support multiple environments, user roles and authentication flows without duplicating configuration or test logic.</p><h4>Authentication and Session Reuse</h4><p>Our application supports multiple user roles and authentication flows across different environments.Instead of logging in before every test, we use authentication setup scripts to log in and save the authenticated browser state. The saved state is then reused by the relevant test projects.</p><p>We maintain separate authentication states for different roles and environments. This allows tests to run with the appropriate permissions without repeating the login process unnecessarily.</p><h4>Environment and Project Configuration</h4><p>We run automation across multiple environments, including IBM Cloud, AWS, GovCloud and on-premises ICP4D.</p><p>We use Playwright projects to organize environment-specific configurations and associate tests with the appropriate authentication state and browser settings.This approach keeps environment-specific details separate from test logic and makes the suite easier to maintain as our environment and role requirements evolve.</p><h3>3. Automating Governance Insights</h3><p>Governance Insights is part of IBM watsonx.data Intelligence and provides users with visibility into governance, privacy and data curation activities.</p><p>Automating this area involves more than validating whether a page loads. The interface contains multiple widgets, filters, tabs, charts and user-specific views.</p><p>Our automation covers workflows such as:</p><ul><li>Validating governance, privacy and data quality widgets.</li><li>Switching between My Workspaces and All Workspaces.</li><li>Applying filters based on catalog, date, category, project and score.</li><li>Validating tab switching, sorting and trend information.</li><li>Creating, editing and deleting custom views.</li><li>Sharing views with users and groups with different access levels.</li><li>Validating custom widgets and saved queries.</li></ul><h4>Multi-Role Validation</h4><p>Some workflows require validation across multiple user roles.</p><p>For example, when testing view sharing, an administrator creates and shares a view with another user. We then open a separate browser context for the data consumer to verify whether the shared view is accessible with the expected permissions.</p><p>Using separate browser contexts allows us to simulate multiple users while keeping their authentication sessions isolated.</p><p>We also use polling-based assertions to handle cases where shared views take time to become visible.</p><h3>4. Handling Asynchronous Dashboard Widgets</h3><p>One of the more challenging aspects of automating Governance Insights is its asynchronous behaviour.Each widget fetches data independently and maintains its own loading state. Some charts are also rendered lazily when they become visible in the viewport.A simple page-load check is therefore not sufficient to confirm that the dashboard is ready.</p><p>To handle this, we use shared helper functions to wait for loading indicators and ensure that the relevant widgets have finished fetching data.For example, our waitForInlineLoading helper handles the Carbon loading indicator that appears while data is being fetched.</p><p>We also use Playwright’s scrollIntoViewIfNeeded functionality to bring lazy-loaded charts into view before validating them.</p><p>These strategies help us synchronize test execution with the actual state of the application rather than relying on arbitrary timeouts.</p><h3>5. Debugging UI Automation Failures</h3><p>Debugging is an important part of maintaining a reliable automation suite.</p><p>Playwright provides several tools that make it easier to investigate failures:</p><ul><li><strong>Trace Viewer:</strong> Provides a step-by-step timeline with DOM snapshots, network activity, console logs and screenshots.</li><li><strong>Playwright Inspector:</strong> Helps inspect page elements and debug test execution.</li><li><strong>UI Mode:</strong> Allows tests to be explored and debugged interactively.</li><li><strong>HTML Reports:</strong> Provide a summary of test execution and failure details.</li></ul><p>We have tracing enabled to help investigate failures, and we generate HTML reports for reviewing test results.</p><p>These tools are particularly useful when a test behaves differently across environments or when an issue is caused by asynchronous UI behaviour.</p><h3>6. Integrating Automation with Jenkins</h3><p>To make automation part of our regular testing process, we integrated the Playwright suite with Jenkins.</p><p>The pipeline supports scheduled and on-demand execution across multiple environments. Tests are organized into independent stages based on application modules, allowing failures in one stage to be isolated from others.</p><p>Execution reports and relevant artifacts are retained to help with failure analysis.This setup makes it easier to run functional verification and sanity tests consistently without depending entirely on manual execution.</p><h3>7. <strong>Practices That Improved Our Automation</strong></h3><p>A few practices have helped us improve the reliability and maintainability of our automation suite:</p><ul><li><strong>Reuse authentication state:</strong> Avoid unnecessary login operations by saving and reusing authenticated sessions.</li><li><strong>Use role-based locators:</strong> Prefer accessible locators such as getByRole, getByLabel and getByText wherever possible.</li><li><strong>Avoid fixed waits:</strong> Synchronize tests with actual application behaviour using auto-waiting, assertions and appropriate loading-state checks.</li><li><strong>Build reusable helpers:</strong> Keep common interactions and validation logic in shared helper functions.</li><li><strong>Isolate user sessions:</strong> Use separate browser contexts when validating workflows involving multiple users.</li><li><strong>Capture traces and reports:</strong> Preserve debugging information to make failures easier to investigate.</li><li><strong>Separate test stages:</strong> Organize execution by module and environment to isolate failures and simplify troubleshooting.</li></ul><h3>Conclusion</h3><p>Choosing an automation framework is not just about automating browser interactions. It is also about how easily the framework supports test organization, authentication, synchronization, debugging and execution at scale.</p><p>Both Puppeteer and Playwright are capable browser automation tools. For our requirements, Playwright’s integrated test runner, auto-waiting, authentication support, browser coverage and debugging capabilities made it a practical choice.</p><p>As our automation suite evolves, these capabilities help us build more reliable tests and integrate UI validation into our development and release workflows.</p><h4>References</h4><ul><li><a href="https://playwright.dev/docs/intro">Playwright Documentation</a></li><li><a href="https://playwright.dev/docs/test-intro">Playwright Test Runner</a></li><li><a href="https://playwright.dev/docs/actionability">Auto-waiting</a></li><li><a href="https://playwright.dev/docs/auth">Authentication</a></li><li><a href="https://playwright.dev/docs/test-parallel">Parallelism</a></li><li><a href="https://playwright.dev/docs/trace-viewer">Trace Viewer</a></li><li><a href="https://pptr.dev/">Puppeteer Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53912c2ad2de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>