Fix assert vs assert.equal
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
faaca43a75
commit
841ce74ac2
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue