Fix assert vs assert.equal

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-27 13:39:00 +01:00
parent faaca43a75
commit 841ce74ac2
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const assert = require('assert');
async function assertDialog(session, expectedTitle) {
const titleElement = await session.query(".mx_Dialog .mx_Dialog_title");
const dialogHeader = await session.innerText(titleElement);
assert(dialogHeader, expectedTitle);
assert.equal(dialogHeader, expectedTitle);
}
async function acceptDialog(session, expectedTitle) {

View File

@ -24,7 +24,7 @@ async function assertNoToasts(session) {
async function assertToast(session, expectedTitle) {
const h2Element = await session.query('.mx_Toast_title h2');
const toastTitle = await session.innerText(h2Element);
assert(toastTitle, expectedTitle);
assert.equal(toastTitle, expectedTitle);
}
async function acceptToast(session, expectedTitle) {