test(GODT-3162): Add step definition for checking KB article suggestions

* Add a step definition that takes input from a possible problem report description, and gets the suggested knowledge base articles
* Also, has input of what those knowledge base articles should be, just their title and url, and compares these two values.
* A sample integration test is added
This commit is contained in:
Gjorgji Slamkov
2023-12-15 09:53:49 +00:00
parent 8f5bd37aee
commit 3ac59d6943
3 changed files with 49 additions and 0 deletions

View File

@ -76,6 +76,7 @@ func (s *scenario) steps(ctx *godog.ScenarioContext) {
ctx.Step(`^the user reports a bug$`, s.theUserReportsABug)
ctx.Step(`^the user reports a bug with field "([^"]*)" set to "([^"]*)"$`, s.theUserReportsABugWithSingleHeaderChange)
ctx.Step(`^the user reports a bug with details:$`, s.theUserReportsABugWithDetails)
ctx.Step(`^the description "([^"]*)" provides the following KB suggestions:$`, s.theDescriptionInputProvidesKnowledgeBaseArticles)
ctx.Step(`^the user hides All Mail$`, s.theUserHidesAllMail)
ctx.Step(`^the user shows All Mail$`, s.theUserShowsAllMail)
ctx.Step(`^the user disables telemetry in bridge settings$`, s.theUserDisablesTelemetryInBridgeSettings)