-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user home command constants and update menu item factories (#7100)
* Add user home command constants and update menu item factories * Refactor UserViews constructor to private and remove ambiguous comment from PageCommandGovernmentBodyRankingConstants; add integration tests for government body and committee ranking pages. * Refactor PageCommandCommitteeRankingConstants to remove ambiguous comment; update UserParliamentTest for consistency in command usage * Add integration tests for committees, government bodies, parliament, and parties; verify page links and visit history * Refactor view content verification in admin tests; replace calls to deprecated method with direct pageVisit verification * Add content verification for government body ranking pages in integration tests * Refactor government body ranking tests; rename methods for clarity and add content verification for income, expenditure, and visit history pages. * Add content verification for party and committee ranking pages in integration tests * Add content verification for politician ranking pages in integration tests * Add content verification for ministry ranking pages in integration tests
- Loading branch information
Showing
22 changed files
with
485 additions
and
94 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
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
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
29 changes: 29 additions & 0 deletions
29
...i/application/views/common/menufactory/api/pagecommands/PageCommandUserHomeConstants.java
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,29 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api.pagecommands; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserHomePageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
/** | ||
* The Interface PageCommandUserHomeConstants. | ||
*/ | ||
public interface PageCommandUserHomeConstants { | ||
|
||
/** The command userhome overview. */ | ||
PageModeMenuCommand COMMAND_USERHOME_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.USERHOME_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
/** The command userhome security settings. */ | ||
PageModeMenuCommand COMMAND_USERHOME_SECURITY_SETTINGS = new PageModeMenuCommand( | ||
UserViews.USERHOME_VIEW_NAME, UserHomePageMode.SECURITY_SETTINGS.toString()); | ||
|
||
/** The command userhome user visits. */ | ||
PageModeMenuCommand COMMAND_USERHOME_USER_VISITS = new PageModeMenuCommand( | ||
UserViews.USERHOME_VIEW_NAME, UserHomePageMode.USER_VISITS.toString()); | ||
|
||
/** The command userhome user events. */ | ||
PageModeMenuCommand COMMAND_USERHOME_USER_EVENTS = new PageModeMenuCommand( | ||
UserViews.USERHOME_VIEW_NAME, UserHomePageMode.USER_EVENTS.toString()); | ||
|
||
} |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.