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

feat: support GUI test #964

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 24, 2024

  1. feat: support GUI unit test

    - refacotr main gui classes to allow GUI test
        - MainWindowMenuHandler class inherited from BaseMenuHanlder
          abstract class
        - Tester should implement MenuHandler class for test inherited
          from BaseMenuHandler class
    - Add testGui configuration on gradle
    - Set gui test source under test/gui
    - Introduce TestCoreGUI class
    - Add BasicMenuItemTest
    - test new project creation
    - refactor: ProjectPropertiesDialog
    	- Split looong-method into smaller one
    	- Give component name
    - refactor: extend IMainMenu interface
    - refactor: MainWindowUI class
    - refactor: MainWindow class
    - refactor: MainWindowStatusBar class as 1st citizen class in o.o.gui.main package
    - fix: do not assume MainWindow class as JFrame object but always use MainWindow#getApplicationFrame
    - refactor: deprecate MainWindowUI class functions
    - refactor: add IMainWindow#resetDesktopLayout interface
    - chore: add task testAcceptance in gradle
    - chore: testAcceptance task on java17
    - chore: testAcceptance task with xvfb-run
    - refactor: testAcceptance
    	- Update core can be called from acceptance test class
    	- Update TestCoreInitializer to call a part of core
    	- Initialize main window docking style
    
    feat: test with sample project
    
    - refactor: Introduce IProjectFilesList
    	- Move projWin object in Core
    	- Initialize projWin in Core#initializeGUI
    	- MainWindowMenuHandler handle projWin through IProjectFilesList
    - feat: test glossary creation operation
    	- fix: fix modules initialization
    	- These modules initialize Swing GUI parts in static context. It can be error on non-GUI environment and test environment.
    	- This fix changes these are initialized in application start event handler.
    	- feat: load all plugins
    	- test: check glossary search expectation
    	- test: explain expected behavior in comment
    - refactor: update TestMainWindowMenuHandler
    	- Add more actions
    	- Extend IMainWindow#addSearchWindow and IMainWindow#getSearchWindows
    	- Move internal TestMainWindow class as regular class
    	- refactor ProjectUICommands.doRecycleTrans and ProjectUICommands.doInsertTrans
    - refactor: give ProjectPropertiesDialog UI names
    
    Signed-off-by: Hiroshi Miura <miurahr@linux.com>
    miurahr committed May 24, 2024
    Configuration menu
    Copy the full SHA
    f5abb6a View commit details
    Browse the repository at this point in the history
  2. style: unused imports

    Signed-off-by: Hiroshi Miura <miurahr@linux.com>
    miurahr committed May 24, 2024
    Configuration menu
    Copy the full SHA
    6f64c3a View commit details
    Browse the repository at this point in the history