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

test: add a JS unit test to verify filterSubVerticals #4561

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

Ali-D-Akbar
Copy link
Contributor

@Ali-D-Akbar Ali-D-Akbar commented Feb 3, 2025

PROD-4296

Adds selenium-based unit tests to verify JS script added to load subverticals on the course tagging detail page.

@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-4296 branch 3 times, most recently from 87dd832 to e4f966c Compare February 4, 2025 03:37
@Ali-D-Akbar Ali-D-Akbar marked this pull request as ready for review February 4, 2025 04:58
@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-4296 branch 5 times, most recently from 71d27e9 to 0249489 Compare February 4, 2025 07:41
Copy link
Contributor

@AfaqShuaib09 AfaqShuaib09 left a comment

Choose a reason for hiding this comment

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

Just a couple of comments; otherwise, LGTM

course_discovery/apps/tagging/tests/test_views.py Outdated Show resolved Hide resolved
course_discovery/apps/tagging/tests/test_views.py Outdated Show resolved Hide resolved
@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-4296 branch 2 times, most recently from a3d2d8b to 5a11233 Compare February 4, 2025 13:34
course_discovery/apps/tagging/tests/test_views.py Outdated Show resolved Hide resolved
super().setUpClass()
firefox_options = Options()
firefox_options.headless = True
cls.driver = webdriver.Firefox(options=firefox_options)
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] cls.browser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Isn't it the same?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just saying that cls.browser seems like a better name than cls.driver

course_discovery/apps/tagging/tests/test_views.py Outdated Show resolved Hide resolved
@Ali-D-Akbar Ali-D-Akbar force-pushed the aakbar/PROD-4296 branch 6 times, most recently from 4dd8e07 to 1b164dc Compare February 10, 2025 13:32
@Ali-D-Akbar Ali-D-Akbar merged commit 44d5402 into master Feb 11, 2025
14 checks passed
@Ali-D-Akbar Ali-D-Akbar deleted the aakbar/PROD-4296 branch February 11, 2025 10:09
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.

3 participants