Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(examples): add example with DnD #1009

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/drag-and-drop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_store
.DS_Store

.testplane
testplane-report
42 changes: 42 additions & 0 deletions examples/drag-and-drop/.testplane.conf.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const SERVER_PORT = process.env.PORT || 3000;

export default {
gridUrl: "http://localhost:4444/wd/hub",
baseUrl: `http://localhost:${SERVER_PORT}`,
pageLoadTimeout: 0,
httpTimeout: 60000,
testTimeout: 90000,
resetCursor: false,
sets: {
desktop: {
files: [
"testplane-tests/**/*.testplane.(t|j)s"
],
browsers: [
"chrome"
]
}
},
browsers: {
chrome: {
automationProtocol: "devtools",
headless: true,
desiredCapabilities: {
browserName: "chrome"
}
}
},
plugins: {
"html-reporter/testplane": {
// https://github.com/gemini-testing/html-reporter
enabled: true,
path: "testplane-report",
defaultView: "all",
diffMode: "3-up-scaled"
}
},
devServer: {
command: "npm run server:dev",
env: { PORT: SERVER_PORT }
},
};
23 changes: 23 additions & 0 deletions examples/drag-and-drop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### Drag-and-drop example



#### Usage

1. Install dependencies

```
npm ci
```

2. Run GUI

```
npx testplane gui
```

After execiting this command, GUI-report will be opened in your default browser.

3. Click the `Run` button to run your test (the test will fail due to the lack of screenshots)
4. Click the `Accept opened` button to accepr all images or click the `Accept` button located next to each image
5. Click the `Run` button to rerun your test again (the test will be successful)
Loading
Loading