mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* chore(cypress): upgrade to v15.13 and to [email protected] * fix comments and update exposing cypress env
27 lines
946 B
TypeScript
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/);
|
|
}
|