-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add selenium tests for alert pages #34 #116
Conversation
- Added Test for check any elements visibility , editability and response - Induced bugs in alerts htmls to check if the test gets picked or not
Add selenium tests for alert pages siglens#34
@sonamgupta21 please review |
selenium-tests/tests/alerts-test.js
Outdated
let driver; | ||
const chromeOptions = new chrome.Options() | ||
|
||
// chromeOptions.addArguments('--headless'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please uncomment this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the changes for the same
selenium-tests/tests/alerts-test.js
Outdated
@@ -0,0 +1,189 @@ | |||
// const {Builder, By, Key, until} = require('selenium-webdriver'); | |||
|
|||
// (async function example() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the commented code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made the changes for the same
Looks good! |
I have updated the branch |
Description
Wrote test cases for alerts.html page to check if the elements in the page exist and if so are they editable and clickable.
Fixes #34(#34)
Testing
Induced bugs in alerts.html to check if the selenium script runs catches those, reviewers can comment on any element in the page to check if the script catches or not.
Checklist:
Before marking your pull request as ready for review, complete the following.
goimports -w .
.