Skip to content

BotTest: ProcessResult.goesToState ignores visited states, if there were reactions.go #71

@nikvoloshin

Description

@nikvoloshin

Let's assume the following scenario:

state("main") {
	state("first") {
		activators {
			regex("first")
        }

		action {
			reactions.go("../second")
		}
	}

	state("second") {
	
	}
}

And the following test case:

withCurrentContext("/main")
query("first") goesToState "/main/first" endsWithState "/main/second"

Expected behavior:
The test succeeds

Actual behavior:
The test fails because of goesToState

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions