Files
sabrilandGitHub 23af2531fa SEC-10098 E2E/Cypress chore(cypress): upgrade to v15.13 and to [email protected] (#36091)
* chore(cypress): upgrade to v15.13 and to [email protected]

* fix comments and update exposing cypress env
2026-04-16 13:35:26 +08:00

27 lines
946 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// Asserts that an item in the channel sidebar is not unread.
export function beRead(items: JQuery<HTMLElement>) {
expect(items).to.have.length(1);
expect(items[0].className).to.not.match(/unread-title/);
}
// Asserts that an item in the channel sidebar is read.
export function beUnread(items: JQuery<HTMLElement>) {
expect(items).to.have.length(1);
expect(items[0].className).to.match(/unread-title/);
}
// Asserts that an item in the channel sidebar is muted.
export function beMuted(items: JQuery<HTMLElement>) {
expect(items).to.have.length(1);
expect(items[0].className).to.match(/muted/);
}
// Asserts that an item in the channel sidebar is unmuted.
export function beUnmuted(items: JQuery<HTMLElement>) {
expect(items).to.have.length(1);
expect(items[0].className).to.not.match(/muted/);
}