Skip to content

Commit

Permalink
Add - Initial Playwright Setup
Browse files Browse the repository at this point in the history
Installed Playwright, dotenv & added configuration, which is still a WIP.
  • Loading branch information
MarkTheTestStrategist committed Feb 27, 2025
1 parent 5bb8992 commit 2698a18
Show file tree
Hide file tree
Showing 24 changed files with 1,945 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/PlaywrightDemo/v17/.wsuo
Binary file not shown.
71 changes: 71 additions & 0 deletions .vs/PlaywrightDemo/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Dev\\PlaywrightDemo\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:tests\\example.spec.js||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\package.json||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:package.json||{3B902123-F8A7-4915-9F01-361F908088D0}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\playwright.config.js||{3B902123-F8A7-4915-9F01-361F908088D0}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:playwright.config.js||{3B902123-F8A7-4915-9F01-361F908088D0}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 2,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "package.json",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\package.json",
"RelativeDocumentMoniker": "package.json",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\package.json*",
"RelativeToolTip": "package.json*",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABoAAAABAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
"WhenOpened": "2025-02-26T15:11:31.906Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "playwright.config.js",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\playwright.config.js",
"RelativeDocumentMoniker": "playwright.config.js",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\playwright.config.js",
"RelativeToolTip": "playwright.config.js",
"ViewState": "AgIAAAAAAAAAAAAAAAAAACgAAAAGAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2025-02-26T13:34:09.445Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "example.spec.js",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js",
"RelativeDocumentMoniker": "tests\\example.spec.js",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js",
"RelativeToolTip": "tests\\example.spec.js",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAAGAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2025-02-26T11:46:59.54Z",
"EditorCaption": ""
}
]
}
]
}
]
}
71 changes: 71 additions & 0 deletions .vs/PlaywrightDemo/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Dev\\PlaywrightDemo\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\tests\\testOne.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:tests\\testOne.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:tests\\example.spec.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Dev\\PlaywrightDemo\\playwright.config.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:playwright.config.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "example.spec.js",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js",
"RelativeDocumentMoniker": "tests\\example.spec.js",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\tests\\example.spec.js",
"RelativeToolTip": "tests\\example.spec.js",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAoAAAAEAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2025-02-27T09:46:20.205Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "testOne.js",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\tests\\testOne.js",
"RelativeDocumentMoniker": "tests\\testOne.js",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\tests\\testOne.js",
"RelativeToolTip": "tests\\testOne.js",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAAIAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2025-02-27T10:26:18.913Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "playwright.config.js",
"DocumentMoniker": "C:\\Dev\\PlaywrightDemo\\playwright.config.js",
"RelativeDocumentMoniker": "playwright.config.js",
"ToolTip": "C:\\Dev\\PlaywrightDemo\\playwright.config.js",
"RelativeToolTip": "playwright.config.js",
"ViewState": "AgIAADYAAAAAAAAAAAAAAFIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
"WhenOpened": "2025-02-27T09:40:54.975Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file added .vs/PlaywrightDemo/v17/TestStore/0/000.testlog
Binary file not shown.
Binary file added .vs/PlaywrightDemo/v17/TestStore/0/testlog.manifest
Binary file not shown.
10 changes: 10 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ExpandedNodes": [
"",
"\\global-setup",
"\\test-results",
"\\tests"
],
"SelectedNode": "\\tests\\example.spec.js",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Empty file added index.js
Empty file.
Loading

0 comments on commit 2698a18

Please sign in to comment.