<commit_before>import {
  drawerToggle,
  drawerSidebar,
  drawerSidebarContentInnerElement,
} from '../../locators/drawer';
import { positionOfElement } from '../helper';

When('I click on {word} Drawers arrow {int} time(s)', (drawer, count) => {
  for (let i = 0; i < count; i++) {
    drawerToggle(drawer).first().click();
  }
});

Then('Drawers {word} sidebar should have class {word}', (drawer, className) => {
  drawerSidebar(drawer).should('have.class', className);
});

Then('Drawer {word} sidebar text is visible', (drawer) => {
  drawerSidebarContentInnerElement(drawer, positionOfElement('second')).should('have.text', 'link a')
    .and('be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('third')).should('have.text', 'link b')
    .and('be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('fourth')).should('have.text', 'link c')
    .and('be.visible');
});

Then('Drawer {word} sidebar text is not visible', (drawer) => {
  drawerSidebarContentInnerElement(drawer, positionOfElement('second')).should('have.text', 'link a')
    .and('not.be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('third')).should('have.text', 'link b')
    .and('not.be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('fourth')).should('have.text', 'link c')
    .and('not.be.visible');
});

Then('toggle {word} Drawers icon switched orientation to open', (drawer) => {
  drawerToggle(drawer).should('have.css', 'transform', 'matrix(-1, 0, 0, 1, 0, 0)');
});

Then('toggle {word} Drawers icon switched orientation to closed', (drawer) => {
  drawerToggle(drawer).should('have.css', 'transform', 'none');
});

Then('Drawer {string} expandedWidth is set to {string}', (drawer, width) => {
  drawerSidebar(drawer).should('have.css', 'width', width);
});

Then('Drawer {word} animationDuration is set to {string}', (drawer, animationDuration) => {
  drawerSidebar(drawer).should('have.css', 'animation-duration', animationDuration);
});

Then('Drawer {string} backgroundColor is set to {string}', (drawer, backgroundColor) => {
  drawerSidebar(drawer).should('have.css', 'background-color', backgroundColor);
});<commit_msg>test(drawer): remove not used methods<commit_after>import {
  drawerToggle,
  drawerSidebar,
  drawerSidebarContentInnerElement,
} from '../../locators/drawer';
import { positionOfElement } from '../helper';

When('I click on {word} Drawers arrow {int} time(s)', (drawer, count) => {
  for (let i = 0; i < count; i++) {
    drawerToggle(drawer).first().click();
  }
});

Then('Drawers {word} sidebar should have class {word}', (drawer, className) => {
  drawerSidebar(drawer).should('have.class', className);
});

Then('Drawer {word} sidebar text is visible', (drawer) => {
  drawerSidebarContentInnerElement(drawer, positionOfElement('second')).should('have.text', 'link a')
    .and('be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('third')).should('have.text', 'link b')
    .and('be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('fourth')).should('have.text', 'link c')
    .and('be.visible');
});

Then('Drawer {word} sidebar text is not visible', (drawer) => {
  drawerSidebarContentInnerElement(drawer, positionOfElement('second')).should('have.text', 'link a')
    .and('not.be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('third')).should('have.text', 'link b')
    .and('not.be.visible');
  drawerSidebarContentInnerElement(drawer, positionOfElement('fourth')).should('have.text', 'link c')
    .and('not.be.visible');
});

Then('toggle {word} Drawers icon switched orientation to open', (drawer) => {
  drawerToggle(drawer).should('have.css', 'transform', 'matrix(-1, 0, 0, 1, 0, 0)');
});

Then('toggle {word} Drawers icon switched orientation to closed', (drawer) => {
  drawerToggle(drawer).should('have.css', 'transform', 'none');
});

Then('Drawer {word} animationDuration is set to {string}', (drawer, animationDuration) => {
  drawerSidebar(drawer).should('have.css', 'animation-duration', animationDuration);
});
{'fraction_non_alphanumeric': 0.18897255282973038, 'fraction_numerical': 0.003400534369686665, 'mean_word_length': 6.1, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5028534', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1316, 'n_words': 278}