Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export const Labels = {
  get root() {
    return cy.get(".lsf-labels");
  },
  get labels() {
    return this.root;
  },
  get label() {
    return this.labels.get(".lsf-label");
  },
  get selectedLabel() {
    return this.label.filter(".lsf-label_selected");
  },
  select(labelName: string) {
    this.label.contains(labelName).click();
    this.selectedLabel.should("be.visible").should("have.length.gt", 0);
  },
  selectWithHotkey(hotkey: string) {
    cy.get("body").type(`${hotkey}`);
    this.selectedLabel.contains(`${hotkey}`).should("be.visible").should("have.length.gt", 0);
  },
};