Skip to content

Commit

Permalink
chore: add simple EditorTextAreaTest
Browse files Browse the repository at this point in the history
- Check first steps pane existed, and scrollbar is visible.

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Nov 7, 2024
1 parent baec813 commit ede7ded
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test-acceptance/src/org/omegat/gui/editor/EditorTextAreaTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.omegat.gui.editor;

import org.junit.Test;

import org.omegat.gui.main.TestCoreGUI;
import org.omegat.util.OStrings;

public class EditorTextAreaTest extends TestCoreGUI {

@Test
public void testIntroPaneExist() {
window.panel(OStrings.getString("DOCKING_FIRST_STEPS_TITLE")).requireEnabled();
window.panel(OStrings.getString("DOCKING_FIRST_STEPS_TITLE")).scrollPane("EditorScrollPane").requireEnabled();
window.panel(OStrings.getString("DOCKING_FIRST_STEPS_TITLE")).scrollPane("EditorScrollPane")
.verticalScrollBar().requireVisible();
window.panel(OStrings.getString("DOCKING_FIRST_STEPS_TITLE")).scrollPane("EditorScrollPane")
.horizontalScrollBar().requireNotVisible();
}

}

0 comments on commit ede7ded

Please sign in to comment.