Skip to content

Commit

Permalink
Changes with respect to WV-421 First Pass of How it works Page Automa…
Browse files Browse the repository at this point in the history
…tion Test Cases: Web
  • Loading branch information
charanyachinnasamy committed Feb 13, 2025
1 parent 9cc0e55 commit 83d1331
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 164 deletions.
2 changes: 2 additions & 0 deletions src/js/pages/Values/OneValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class OneValue extends Component {
<FilterChoices>
<Chip
key="forThisElectionKey"
id = "forThisElection"
label={<span style={showEndorsersForThisElection ? { fontWeight: 600 } : {}}>For This Election</span>}
className={showEndorsersForThisElection ? classes.selectedChip : classes.notSelectedChip}
component="div"
Expand All @@ -272,6 +273,7 @@ class OneValue extends Component {
/>
<Chip
key="allOrganizationsKey"
id = "allEndorsers"
label={<span style={showAllEndorsers ? { fontWeight: 600 } : {}}>All Endorsers</span>}
className={showAllEndorsers ? classes.selectedChip : classes.notSelectedChip}
component="div"
Expand Down
16 changes: 11 additions & 5 deletions tests/browserstack_automation/page_objects/topics.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TopicsPage extends Page {
}
get getDemocraticClubsDropdownButtonElement() {
return $('#toggleFollowMenuButton-wv02issue25')
}
}
get getDemocraticClubsUnfollowElement() {
return $('#issueUnfollowButton-wv02issue25-democratic-clubs')
}
Expand All @@ -60,7 +60,7 @@ class TopicsPage extends Page {
}
get getProLifeUnfollowElement() {
return $('#issueUnfollowButton-wv02issue64-pro-life')
}
}
get getRepublicanClubsFollowElement() {
return $('#issueFollowButton-wv02issue68-republican-clubs')
}
Expand Down Expand Up @@ -96,7 +96,7 @@ class TopicsPage extends Page {
}
get getDemocraticPartyPoliticiansUnfollowElement() {
return $('#issueUnfollowButton-wv02issue94-democratic-party-politicians')
}
}
get getRepublicanPartyPoliticiansFollowElement() {
return $('#issueFollowButton-wv02issue95-republican-party-politicians')
}
Expand Down Expand Up @@ -144,7 +144,7 @@ class TopicsPage extends Page {
}
get getCommonSenseGunReformUnfollowElement() {
return $('#issueUnfollowButton-wv02issue37-common-sense-gun-reform')
}
}
get getGun2ndAmendmentRightsFollowElement() {
return $('#issueFollowButton-wv02issue36-gun-\\/-2nd-amendment-rights')
}
Expand Down Expand Up @@ -445,7 +445,13 @@ class TopicsPage extends Page {
get getMakeAmericaGreatAgainUnfollowElement() {
return $('#issueUnfollowButton-wv87issue100-make-america-great-again-\\(maga\\)')
}
get forThisElectionFilter(){
return $('#forThisElection')
}
get forAllEndorsersFilter(){
return $('#allEndorsers')
}

}

export default new TopicsPage();
export default new TopicsPage();
Loading

0 comments on commit 83d1331

Please sign in to comment.