{"id":18179324,"url":"https://github.com/pgaria/aerokube-moon-playwright-typescript-example","last_synced_at":"2026-05-16T08:04:36.260Z","repository":{"id":260693976,"uuid":"882077004","full_name":"pgaria/aerokube-moon-playwright-typescript-example","owner":"pgaria","description":"This sample project demonstrates how to connect Playwright with Typescript using Aerokube Moon Cloud.","archived":false,"fork":false,"pushed_at":"2024-11-01T21:23:49.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T11:21:24.711Z","etag":null,"topics":["aerokube","moon","playwright","test-automation","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgaria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-01T20:44:00.000Z","updated_at":"2024-11-01T21:24:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5c60396-1a7e-4a7e-9ceb-2f389bc8b782","html_url":"https://github.com/pgaria/aerokube-moon-playwright-typescript-example","commit_stats":null,"previous_names":["pgaria/aerokube-moon-playwright-typescript-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pgaria/aerokube-moon-playwright-typescript-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaria%2Faerokube-moon-playwright-typescript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaria%2Faerokube-moon-playwright-typescript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaria%2Faerokube-moon-playwright-typescript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaria%2Faerokube-moon-playwright-typescript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaria","download_url":"https://codeload.github.com/pgaria/aerokube-moon-playwright-typescript-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaria%2Faerokube-moon-playwright-typescript-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274112114,"owners_count":25224324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aerokube","moon","playwright","test-automation","typescript"],"created_at":"2024-11-02T18:09:02.845Z","updated_at":"2026-05-16T08:04:36.194Z","avatar_url":"https://github.com/pgaria.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aerokube-moon-playwright-typescript-example\n\n## Description\n\nThis project demonstrates how to connect to an [Aerokube Moon](https://aerokube.com/moon/) instance using Playwright and Typescript for end-to-end testing. It includes basic sample example where you can create and extend script and can connect to your local instance.\n\nThis project was inspired by the lack of good and easily explained examples when I started using Moon with Playwright. :)\n\n## Installation\n\n1. Clone the repository.\n2. Navigate to the project directory:\n    ```bash\n    cd your-repository\n    ```\n3. Install the dependencies:\n    ```bash\n    npm i\n    ```\n\n## Usage\n\n1. Update the `playwright.config.js` file with your Aerokube Moon instance URL:\n    ```javascript\n    // Set Moon Host here\n    const moonHost = 'moon.dataout.in.example.com';\n    ```\n    And configure projects for major browsers, currently the chromium is set with the complete URL. The Playwright version is extracted from the package.json file and appended in the URL as playwright browser image works with the version dependency.\n\n    ```javascript\n    // playwright.config.js\n    const { defineConfig } = require('@playwright/test');\n\n    module.exports = defineConfig({\n      projects: [\n        {\n          name: 'chromium',\n          use: {\n            browserName: 'chromium',\n            connectOptions: {\n              wsEndpoint: `wss://${moonHost}/playwright/chromium/playwright-${playwrightVersion()}?headless=false\u0026arg=--ignore-certificate-errors`,\n            },\n              },\n        },\n      ],\n    });\n    ```\n\n2. Update the `environment.config.js` file with your aplication URL,Currenly its pointing to saucedemo website for example.:\n    ```javascript\n    export const environmentConfig = {\n    baseUrl: 'https://www.saucedemo.com/',\n    };\n    ```\n\n3. Demo Test Example is present in `tests` directory and Run your tests:\n    ```bash\n    npx playwright test\n    ```\n\nTo show Playwright traffic add an environment variable:\n\n```\n$ DEBUG=\"pw:*\" npm test\n```    \n\n## Contact\n\nYour Name - pawangaria@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaria%2Faerokube-moon-playwright-typescript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaria%2Faerokube-moon-playwright-typescript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaria%2Faerokube-moon-playwright-typescript-example/lists"}