{"id":23843872,"url":"https://github.com/oppodelldog/chromedp-test","last_synced_at":"2025-06-15T13:34:26.007Z","repository":{"id":57614336,"uuid":"295013736","full_name":"Oppodelldog/chromedp-test","owner":"Oppodelldog","description":"a small testrunner lib for chromedp","archived":false,"fork":false,"pushed_at":"2023-04-01T12:23:36.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T19:52:46.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oppodelldog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-12T19:38:48.000Z","updated_at":"2021-11-16T19:29:14.000Z","dependencies_parsed_at":"2024-06-20T07:01:11.232Z","dependency_job_id":"cd743695-dada-4b5d-9787-3b4aa0257f4b","html_url":"https://github.com/Oppodelldog/chromedp-test","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oppodelldog%2Fchromedp-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oppodelldog%2Fchromedp-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oppodelldog%2Fchromedp-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oppodelldog%2Fchromedp-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oppodelldog","download_url":"https://codeload.github.com/Oppodelldog/chromedp-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240131746,"owners_count":19752727,"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","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":[],"created_at":"2025-01-02T19:51:27.462Z","updated_at":"2025-02-22T06:13:03.178Z","avatar_url":"https://github.com/Oppodelldog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chromedp-test\na small testrunner lib for chromedp\n\nOrganize ChromeDP action as Functional Web-TestCases in TestSuites and run them.\n\n## Sample\n### Organize and run Tests in TestSuites\n```go\nfunc RunTests(url string) {\n\trunner.Suites(url,\n\t\trunner.TestSuites{\n\t\t\t\"1 Login Test\": runner.TestSuite{\n\t\t\t\t\"01-Login\":        Case01Login,\n\t\t\t},\n\t\t},\n\t\trunner.Options{\n\t\t\tSortSuites: true,\n\t\t\tSortTests:  true,\n\t\t},\n\t)\n}\n```\n\n### Implement a test\n```go\nfunc Case01Login(ctx context.Context, url string) error {\n\treturn Run(ctx,\n\t\tgroup.New(\"preparations\",\n            NavigateToWebsite(url),\n\t\t\tgroup.New(\"regular login\",\n\t\t\t\tLogin(),\n\t\t\t\tWaitVisible(idEntryList, ByTestId),\n\t\t\t),\n\t\t\tgroup.New(\"logout to get to back logout page\",\n\t\t\t\tLogout(),\n\t\t\t),\n\t\t),\n\t\tgroup.New(\"login from logout page\",\n\t\t\tWaitVisible(idActionLogin, ByTestId),\n\t\t\tClick(idActionLogin, ByTestId),\n\t\t\tLogin(),\n\t\t),\n\t\tgroup.New(\"expect to be logged in\",\n\t\t\tWaitVisible(idEntryList, ByTestId),\n\t\t\tLogout(),\n\t\t),\n\t)\n}\n```\n\n### Scope\nThis library provides runner to organize and run the tests, grouping for better logging.  \nWriting ChromeDp Actions like *NavigateToWebsite* or *Login* is of course up to you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foppodelldog%2Fchromedp-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foppodelldog%2Fchromedp-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foppodelldog%2Fchromedp-test/lists"}