-
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 #311 from alyssaruth/workflow-dispatch
Pull out abstract E2E test
- Loading branch information
Showing
11 changed files
with
46 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package dartzee.e2e | ||
|
||
import dartzee.helper.AbstractRegistryTest | ||
import dartzee.utils.PREFERENCES_BOOLEAN_AI_AUTO_CONTINUE | ||
import dartzee.utils.PREFERENCES_BOOLEAN_SHOW_ANIMATIONS | ||
import dartzee.utils.PREFERENCES_INT_AI_SPEED | ||
import dartzee.utils.PreferenceUtil | ||
import org.junit.jupiter.api.BeforeEach | ||
import org.junit.jupiter.api.Tag | ||
|
||
@Tag("e2e") | ||
open class AbstractE2ETest : AbstractRegistryTest() { | ||
override fun getPreferencesAffected() = | ||
listOf( | ||
PREFERENCES_INT_AI_SPEED, | ||
PREFERENCES_BOOLEAN_AI_AUTO_CONTINUE, | ||
PREFERENCES_BOOLEAN_SHOW_ANIMATIONS | ||
) | ||
|
||
@BeforeEach | ||
open fun beforeEach() { | ||
PreferenceUtil.saveInt(PREFERENCES_INT_AI_SPEED, 0) | ||
PreferenceUtil.saveBoolean(PREFERENCES_BOOLEAN_AI_AUTO_CONTINUE, true) | ||
PreferenceUtil.saveBoolean(PREFERENCES_BOOLEAN_SHOW_ANIMATIONS, false) | ||
} | ||
} |
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.