Skip to content

Commit

Permalink
Merge pull request #117 from nowsprinting/release/0.11.0
Browse files Browse the repository at this point in the history
Release v0.11.0
  • Loading branch information
nowsprinting authored Apr 9, 2024
2 parents 95d8ad8 + a306689 commit d954152
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Samples~/uGUI Demo/Tests/Runtime/MonkeyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace TestHelper.Monkey.Samples.UGUIDemo
public class MonkeyTest
{
[Test]
[LoadScene("Assets/Samples/Monkey Test Helper/0.10.0/uGUI Demo/Scenes/uGUIDemo.unity")]
[LoadScene("Assets/Samples/Monkey Test Helper/0.11.0/uGUI Demo/Scenes/uGUIDemo.unity")]
public async Task Run()
{
var config = new MonkeyConfig
Expand Down
5 changes: 4 additions & 1 deletion Samples~/uGUI Demo/Tests/Runtime/ScenarioTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ScenarioTest
[TestCase("Difficulty")]
[TestCase("Help")]
[TestCase("Credit")]
[LoadScene("Assets/Samples/Monkey Test Helper/0.10.0/uGUI Demo/Scenes/uGUIDemo.unity")]
[LoadScene("Assets/Samples/Monkey Test Helper/0.11.0/uGUI Demo/Scenes/uGUIDemo.unity")]
[TakeScreenshot]
public async Task OpenSubScreens(string target)
{
Expand All @@ -33,20 +33,23 @@ public async Task OpenSubScreens(string target)
var startComponent = CreateInteractableComponent(startButton.GetComponent<Button>());
var startClickOperator = startComponent.GetOperatorsByType(OperatorType.Click).First();
startClickOperator.OperateAsync(startComponent.component);

await _finder.FindByNameAsync("Home");

// When click target button, then open target screen.
var targetButton = await _finder.FindByNameAsync($"{target}Button", interactable: true);
var targetComponent = CreateInteractableComponent(targetButton.GetComponent<Button>());
var targetClickOperator = targetComponent.GetOperatorsByType(OperatorType.Click).First();
targetClickOperator.OperateAsync(targetComponent.component);

await _finder.FindByNameAsync(target);

// When click Back button, then return Home screen.
var backButton = await _finder.FindByPathAsync($"**/{target}/BackButton", interactable: true);
var backComponent = CreateInteractableComponent(backButton.GetComponent<Button>());
var backClickOperator = backComponent.GetOperatorsByType(OperatorType.Click).First();
backClickOperator.OperateAsync(backComponent.component);

await _finder.FindByNameAsync("Home");
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.nowsprinting.test-helper.monkey",
"description": "Reference implementation that performs object-based Unity UI (uGUI) monkey tests and API for custom implementation.",
"version": "0.10.0",
"version": "0.11.0",
"author": "Koji Hasegawa <[email protected]> (https://github.com/nowsprinting)",
"category": "Unity Test Framework",
"changelogUrl": "https://github.com/nowsprinting/test-helper.monkey/releases",
Expand Down

0 comments on commit d954152

Please sign in to comment.