generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from TarCV/optional-java
Make Java plugin an optional dependency
- Loading branch information
Showing
24 changed files
with
453 additions
and
204 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
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
51 changes: 51 additions & 0 deletions
51
plugin-test/src/test/kotlin/com/github/tarcv/testingteam/surveyoridea/gui/NoticeTests.kt
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,51 @@ | ||
package com.github.tarcv.testingteam.surveyoridea.gui | ||
|
||
import com.github.tarcv.testingteam.surveyoridea.gui.fixtures.idea | ||
import com.github.tarcv.testingteam.surveyoridea.gui.fixtures.locateElementToolWindow | ||
import com.github.tarcv.testingteam.surveyoridea.gui.fixtures.noticeFrame | ||
import com.github.tarcv.testingteam.surveyoridea.waitingAssertion | ||
import org.junit.jupiter.api.Test | ||
import java.lang.Thread.sleep | ||
|
||
class NoticeTests : BaseTestProjectTests() { | ||
@Test | ||
fun testLocatingFromToolButton() = with(remoteRobot) { | ||
idea { | ||
openFileInTestProject(droidAutomatorSnapshotFile, "editorWithSnapshot") | ||
|
||
selectInMenuBar( | ||
"View", | ||
"Tool Windows", | ||
"Locate Element" | ||
) | ||
|
||
// Opening 'Locate Element' tool window sometimes causes reindexing | ||
sleep(2_000) | ||
commonSteps.waitForSmartMode(1) | ||
|
||
locateElementToolWindow { | ||
noticeButton.click() | ||
} | ||
} | ||
noticeFrame { | ||
val overallIntroFragment = "depends on libraries which are covered by" | ||
|
||
waitingAssertion("Correct text is present in the overall intro area", { overallIntro.text }) { | ||
it.contains(overallIntroFragment) | ||
} | ||
|
||
jList { | ||
clickItem("UIAutomator library - Apache License") | ||
} | ||
waitingAssertion("Correct text is present in the overall intro area", { overallIntro.text }) { | ||
it.contains(overallIntroFragment) | ||
} | ||
waitingAssertion("Correct text is present in the notice intro area", { noticeIntro.text }) { | ||
it.contains("library which is covered by") | ||
} | ||
waitingAssertion("Correct text is present in the notice area", { noticeText.text }) { | ||
it.contains("Licensed under the Apache License") | ||
} | ||
} | ||
} | ||
} |
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.