[web] validate WebDriver responses (#96884)

Validate WebDriver responses
This commit is contained in:
Yegor
2022-01-20 17:18:40 -08:00
committed by GitHub
parent 5775100d00
commit 99a09be203
3 changed files with 183 additions and 9 deletions

View File

@@ -745,8 +745,8 @@ void main() {
const String waitForCommandLog = '>>> {command: waitFor, timeout: 1234, finderType: ByTooltipMessage, text: logCommunicationToFile test}';
const String responseLog = '<<< {isError: false, response: {status: ok}, type: Response}';
expect(commandLog.contains(waitForCommandLog), true, reason: '$commandLog not contains $waitForCommandLog');
expect(commandLog.contains(responseLog), true, reason: '$commandLog not contains $responseLog');
expect(commandLog, contains(waitForCommandLog), reason: '$commandLog not contains $waitForCommandLog');
expect(commandLog, contains(responseLog), reason: '$commandLog not contains $responseLog');
});
test('logCommunicationToFile = false', () async {