E2e automator
Skill AtulPurohit/Antigravity-Awesome-Skills/skills/e2e-automator
Installable GitHub library of 300+ professional agentic skills for Claude Code, Antigravity IDE, Gemini CLI, Cursor, and Copilot. Features a custom NPX installer, 9 stack-specific bundles, validation schemas, security auditing, and an interactive catalog explorer app.
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill e2e-automatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 26 days oldThe repository was created 26 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Build robust end-to-end test suites with Playwright or Cypress. Covers page objects, fixtures, visual testing, and CI integration.
SKILL.md
4.1 KB, as published. Nobody here has run it
E2E Test Automator
Purpose
Create reliable, maintainable end-to-end test suites that simulate real user behavior across the full application stack.
Playwright Setup (Recommended)
1️⃣ Page Object Model
// tests/pages/LoginPage.ts
import { Page, Locator } from "@playwright/test";
export class LoginPage {
private readonly emailInput: Locator;
private readonly passwordInput: Locator;
private readonly submitButton: Locator;
private readonly errorMessage: Locator;
constructor(private page: Page) {
this.emailInput = page.getByLabel("Email");
this.passwordInput = page.getByLabel("Password");
this.submitButton = page.getByRole("button", { name: "Sign in" });
this.errorMessage = page.getByRole("alert");
}
async navigate(): Promise<void> {
await this.page.goto("/login");
}
async login(email: string, password: string): Promise<void> {
await this.emailInput.fill(email);
await this.passwordInput.fill(password);
await this.submitButton.click();
}
async getErrorMessage(): Promise<string> {
return await this.errorMessage.textContent() ?? "";
}
}
2️⃣ Test Structure with Fixtures
// tests/fixtures.ts
import { test as base } from "@playwright/test";
import { LoginPage } from "./pages/LoginPage";
import { DashboardPage } from "./pages/DashboardPage";
type TestFixtures = {
loginPage: LoginPage;
dashboardPage: DashboardPage;
authenticatedPage: Page;
};
export const test = base.extend<TestFixtures>({
loginPage: async ({ page }, use) => {
await use(new LoginPage(page));
},
authenticatedPage: async ({ page }, use) => {
// Login once via API for speed
const response = await page.request.post("/api/auth/login", {
data: { email: "[email protected]", password: "password123" },
});
const { token } = await response.json();
await page.context().addCookies([{ name: "auth-token", value: token, url: "http://localhost:3000" }]);
await use(page);
},
});
export { expect } from "@playwright/test";
3️⃣ Tests
// tests/e2e/auth.spec.ts
import { test, expect } from "../fixtures";
test.describe("Authentication", () => {
test("user can login with valid credentials", async ({ loginPage, page }) => {
await loginPage.navigate();
await loginPage.login("[email protected]", "password123");
await expect(page).toHaveURL("/dashboard");
await expect(page.getByText("Welcome back")).toBeVisible();
});
test("shows error with invalid credentials", async ({ loginPage }) => {
await loginPage.navigate();
await loginPage.login("[email protected]", "wrongpassword");
const error = await loginPage.getErrorMessage();
expect(error).toContain("Invalid credentials");
});
});
4️⃣ Playwright Config for CI
// playwright.config.ts
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: true,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: [["html"], ["junit", { outputFile: "results.xml" }]],
use: {
baseURL: "http://localhost:3000",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
projects: [
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "mobile", use: { ...devices["iPhone 15 Pro"] } },
],
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},
});
Outputs
- Page Object Models for all major pages
- Test fixtures and helper utilities
- Test suite for critical user journeys
- Visual regression test setup
- CI/CD integration configuration
- Test reporting setup