This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We've had two recent bugs (2389 & 2400) where the user' utterance shows up differently in the Entity Detection panel. While this does eventually cause the test to fail, it usually happens a few steps further down in the test. This change proactively verifies the user turn shows up correctly in the Entity Detection Panel and gives a better more direct error message when that does happen. Also created a new folder for tests that test the test framework helper functions and move such existing tests into it.
- Loading branch information
1 parent
ef7264c
commit ddc2ce6
Showing
11 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
cypress/integration/zTestTheTestFramework/VerifyUserTurnInEntityDetection.spec.js
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,40 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. | ||
*/ | ||
|
||
import * as models from '../../support/Models' | ||
import * as modelPage from '../../support/components/ModelPage' | ||
import * as trainDialogsGrid from '../../support/components/TrainDialogsGrid' | ||
import * as train from '../../support/train' | ||
import * as helpers from '../../support/Helpers' | ||
|
||
describe('Verify User Turn in Entity Detection', () => { | ||
//afterEach(helpers.SkipRemainingTestsOfSuiteIfFailed) | ||
|
||
context('Setup', () => { | ||
it('Should import a model to test against', () => { | ||
models.CreateNewModel('z-verifyUserTurn') | ||
modelPage.NavigateToTrainDialogs() | ||
}) | ||
}) | ||
|
||
context('Tests', () => { | ||
it('Simple', () => { | ||
trainDialogsGrid.TdGrid.CreateNewTrainDialog() | ||
train.TypeYourMessage('This can be an entityError') | ||
}) | ||
|
||
it('Quotes', () => { | ||
train.AbandonDialog() | ||
trainDialogsGrid.TdGrid.CreateNewTrainDialog() | ||
train.TypeYourMessage(`"This" contains 'both' types of quotes`) | ||
}) | ||
|
||
it('Spaces and Periods', () => { | ||
train.AbandonDialog() | ||
trainDialogsGrid.TdGrid.CreateNewTrainDialog() | ||
train.TypeYourMessage('This is a test - two spaces. Period before and after. Last sentence after 3 spaces. ') | ||
}) | ||
}) | ||
}) |
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