{"id":23072353,"url":"https://github.com/sanogotech/codeceptjs-e2e","last_synced_at":"2025-07-22T00:33:44.155Z","repository":{"id":91003710,"uuid":"400442224","full_name":"sanogotech/codeceptjs-e2e","owner":"sanogotech","description":"Codeceptjs  End to End Test","archived":false,"fork":false,"pushed_at":"2021-08-27T08:34:02.000Z","size":628,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T10:44:26.942Z","etag":null,"topics":["codeceptjs","e2e","e2e-tests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sanogotech.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":"2021-08-27T08:31:29.000Z","updated_at":"2021-08-27T08:48:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1d50010-42ac-412a-a215-e99958e6cc61","html_url":"https://github.com/sanogotech/codeceptjs-e2e","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sanogotech/codeceptjs-e2e","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanogotech%2Fcodeceptjs-e2e","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanogotech%2Fcodeceptjs-e2e/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanogotech%2Fcodeceptjs-e2e/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanogotech%2Fcodeceptjs-e2e/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanogotech","download_url":"https://codeload.github.com/sanogotech/codeceptjs-e2e/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanogotech%2Fcodeceptjs-e2e/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266404942,"owners_count":23923498,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["codeceptjs","e2e","e2e-tests"],"created_at":"2024-12-16T07:19:35.636Z","updated_at":"2025-07-22T00:33:44.127Z","avatar_url":"https://github.com/sanogotech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeceptjs\n\nUse CodeceptJS all-in-one installer (opens new window)to get CodeceptJS, a demo project, and Playwright.\n\n## Install  codeceptjs\n* Use CodeceptJS all-in-one installer (opens new window)to get CodeceptJS, a demo project, and Playwright.\n```\nmkdir myproject\ncd myproject\nnpx create-codeceptjs .\n```\n\n* To start a new project initialize CodeceptJS to create main config file: codecept.conf.js.\n\n```\nnpx codeceptjs init\n\n```\n? What helpers do you want to use?\n❯◉ Playwright\n ◯ WebDriver\n ◯ Protractor\n ◯ Puppeteer\n ◯ Appium\n ◯ Nightmare\n ◯ FileSystem\n \n \n** Write a simple test scenario:\n```\nFeature('My First Test');\n\nScenario('test something', ({ I }) =\u003e {\n  I.amOnPage('https://github.com');\n  I.see('GitHub');\n});\n\n```\n\n** Run a test:\n```\nnpm run codeceptjs\n```\n\nTo see the step-by-step output of running tests, add the --steps flag:\n```\nnpx codeceptjs run --steps\nnpx codeceptjs run --debug\n```\n\nTo run all tests with the slow word in it:\n```\nnpx codeceptjs run --grep \"slow\"\n```\nThe output should be similar to this:\n\nMy First Test --\n  test something\n     I am on page \"https://github.com\"\n     I see \"GitHub\"\n ✓ OK\n\n## What's next  codeceptjs? \n\n* Try CodeceptJS now with a demo project:\n➕ npm run codeceptjs:demo - executes codeceptjs tests for a demo project\n➕ npm run codeceptjs:demo:headless - executes codeceptjs tests headlessly (no window shown)\n➕ npm run codeceptjs:demo:ui - starts codeceptjs UI application for a demo project\n\n* Initialize CodeceptJS for your project:\n🔨 npx codeceptjs init - initialize codeceptjs for current project (required)\n➕ npm run codeceptjs - runs codeceptjs tests for current project\n➕ npm run codeceptjs:headless - executes codeceptjs tests headlessly (no window shown)\n➕ npm run codeceptjs:ui - starts codeceptjs UI application for current project\n\n## Videos codeceptjs\n\nhttps://www.youtube.com/watch?v=7P99P5aNnz8\n\n## Playwright ****\n\nInstallation#\nPlaywright has its own test runner for end-to-end tests, we call it Playwright Test.\n\n```\nmkdir myproject\ncd myproject\nnpm i -D @playwright/test\n ** install supported browsers\nnpx playwright install\n```\n\n# First test#\nCreate tests/foo.spec.js (or tests/foo.spec.ts for TypeScript) to define your test.\n\n* foo.spec.ts\n```\nconst { test, expect } = require('@playwright/test');\n\ntest('basic test', async ({ page }) =\u003e {\n  await page.goto('https://playwright.dev/');\n  const title = page.locator('.navbar__inner .navbar__title');\n  await expect(title).toHaveText('Playwright');\n});\n```\n\n## Run Test \n* Run a single test file\n```\nnpx playwright test tests/foo.spec.ts\n```\n* Run all file tests/*\n```\nnpx playwright test --browser=firefox\n```\n\n# Generate code#\n```\nnpx playwright codegen wikipedia.org\n```\n\n## Creating a configuration file:  playwright.config.js\n\n```\n// playwright.config.js\n// @ts-check\nconst { devices } = require('@playwright/test');\n\n/** @type {import('@playwright/test').PlaywrightTestConfig} */\nconst config = {\n  projects: [\n    {\n      name: 'Desktop Chromium',\n      use: {\n        browserName: 'chromium',\n        // Test against Chrome Beta channel.\n        channel: 'chrome-beta',\n      },\n    },\n    {\n      name: 'Desktop Safari',\n      use: {\n        browserName: 'webkit',\n        viewport: { width: 1200, height: 750 },\n      }\n    },\n    // Test against mobile viewports.\n    {\n      name: 'Mobile Chrome',\n      use: devices['Pixel 5'],\n    },\n    {\n      name: 'Mobile Safari',\n      use: devices['iPhone 12'],\n    },\n    {\n      name: 'Desktop Firefox',\n      use: {\n        browserName: 'firefox',\n        viewport: { width: 800, height: 600 },\n      }\n    },\n  ],\n};\n\nmodule.exports = config;\n```\n\n##  Docs\n- https://playwright.dev/docs/cli\n- https://playwright.dev/docs/debug\n- https://playwright.dev/docs/test-reporters\n- https://playwright.dev/docs/input","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanogotech%2Fcodeceptjs-e2e","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanogotech%2Fcodeceptjs-e2e","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanogotech%2Fcodeceptjs-e2e/lists"}