idea-at
Version:
Automated Testing suite for IDEA projects
24 lines (23 loc) • 889 B
TypeScript
import { Page } from '@playwright/test';
/**
* Navigates to a specified URL and verifies the navigation
* @param page - The Playwright Page object
* @param url - The URL to navigate to
* @returns Promise that resolves when navigation is complete and verified
*/
export declare const goToPage: (page: Page, url: string) => Promise<void>;
/**
* Mocks an API JSON response for a specific route
* @param page - The Playwright Page object
* @param path - The API path/route to mock
* @param status - The HTTP status code to return
* @param data - The response data to return (object or array)
* @returns Promise that resolves when the mock is set up
*/
export declare const mockJSONResponse: (page: Page, path: string, status: number, data: any | any[]) => Promise<void>;
/**
* Enum representing common HTTP API status codes
*/
export declare enum ApiStatus {
SUCCESS = 200
}