-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1009 from gemini-testing/sp.dnd-example
chore(examples): add example with DnD
- Loading branch information
Showing
10 changed files
with
10,033 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_store | ||
.DS_Store | ||
|
||
.testplane | ||
testplane-report |
This file contains 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
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 } | ||
}, | ||
}; |
This file contains 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
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) |
Oops, something went wrong.