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

Add selenium tests for alert pages #34 #116

Merged
merged 7 commits into from
Nov 23, 2023

Conversation

shyam2520
Copy link
Contributor

@shyam2520 shyam2520 commented Nov 21, 2023

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.

  • I have self-reviewed this PR.
  • I have removed all print-debugging and commented-out code that should not be merged.
  • I have added sufficient comments in my code, particularly in hard-to-understand areas.
  • I have formatted the code, if applicable. For Go, I have run goimports -w ..

Shyam Sundar Mylai and others added 3 commits November 21, 2023 17:56
- 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
@nkunal
Copy link
Collaborator

nkunal commented Nov 21, 2023

@sonamgupta21 please review

let driver;
const chromeOptions = new chrome.Options()

// chromeOptions.addArguments('--headless');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please uncomment this line.

Copy link
Contributor Author

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

@@ -0,0 +1,189 @@
// const {Builder, By, Key, until} = require('selenium-webdriver');

// (async function example() {
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@sonamgupta21
Copy link
Collaborator

Looks good!
@shyam2520 Please update your branch.

@shyam2520
Copy link
Contributor Author

I have updated the branch

@sonamgupta21 sonamgupta21 self-requested a review November 23, 2023 17:37
@sonamgupta21 sonamgupta21 merged commit c018bd8 into siglens:develop Nov 23, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add selenium tests for alert pages
3 participants