Initial setup #1
Merged
Merged
Conversation
…vironment support, and example test
There was a problem hiding this comment.
Pull request overview
Initial Playwright test-runner setup for a JavaScript repository, including a sample smoke test, reporting configuration, and CI workflow.
Changes:
- Added a hello-world Playwright spec and a Playwright configuration with HTML + JUnit reporting.
- Introduced npm project scaffolding (
package.json/lockfile) plus.envand.gitignoreconventions for local runs. - Added a GitHub Actions workflow to run Playwright in CI and publish artifacts.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/hello-world.spec.js | Adds a basic smoke test for the configured base URL. |
| README.md | Documents local setup, scripts, reporting outputs, and CI behavior. |
| playwright.config.js | Configures Playwright runner defaults, baseURL, artifacts, and reporters. |
| package.json | Defines scripts and devDependencies for Playwright + dotenv. |
| package-lock.json | Locks dependency versions for reproducible installs. |
| .gitignore | Ignores node modules, reports, artifacts, and local env files. |
| .github/workflows/ci.yml | Runs tests on GitHub Actions and uploads reports/artifacts. |
| .env.example | Provides an example BASE_URL configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+3
to
+7
| test('hello world smoke test', async ({ page, baseURL }) => { | ||
| await page.goto(baseURL); | ||
| await page.waitForTimeout(5000); | ||
| await expect(page).toHaveTitle(/Example Domain/); | ||
| await expect(page.getByRole('heading', { name: 'Example Domain' })).toBeVisible(); |
Comment on lines
+4
to
+7
| push: | ||
| branches: | ||
| - main | ||
| pull_request: |
Comment on lines
+7
to
+8
| pull_request: | ||
| workflow_dispatch: |
Comment on lines
+33
to
+37
| - name: Setup Testspace client | ||
| uses: testspace-com/setup-testspace@v1 | ||
| with: | ||
| domain: samples.stridespace.com | ||
|
|
Comment on lines
+38
to
+39
| - name: Publish results to Testspace | ||
| run: testspace test-results/junit/results.xml |
Comment on lines
+36
to
+41
| - name: Setup Testspace client | ||
| uses: testspace-com/setup-testspace@v1 | ||
| with: | ||
| domain: samples.stridespace.com | ||
| # Optional for public repositories; required for private repositories. | ||
| token: ${{ secrets.TESTSPACE_TOKEN }} |
Comment on lines
+43
to
+47
| - name: Publish results to Testspace | ||
| env: | ||
| # Optional for public repositories; required for private repositories. | ||
| TESTSPACE_TOKEN: ${{ secrets.TESTSPACE_TOKEN }} | ||
| run: testspace test-results/junit/results.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initial Playwright setup