UNPKG

claude-playwright

Version:

Seamless integration between Claude Code and Playwright MCP for efficient browser automation and testing

25 lines 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const test_1 = require("@playwright/test"); const TestPage_1 = require("../pages/TestPage"); /** * TestPageTest Test Suite * Generated by claude-playwright scaffold */ test_1.test.describe('TestPageTest', () => { let testpage; test_1.test.beforeEach(async ({ page }) => { testpage = new TestPage_1.TestPage(page); await testpage.goto(); }); (0, test_1.test)('should load page successfully', async ({ page }) => { await testpage.waitForLoad(); await (0, test_1.expect)(page).toHaveTitle(/.+/); await (0, test_1.expect)(testpage.isLoaded()).resolves.toBeTruthy(); }); (0, test_1.test)('should display main content', async ({ page }) => { await testpage.waitForLoad(); // Add your content assertions here }); }); //# sourceMappingURL=test-page.spec.js.map