1 declare namespace Cypress {
3 genericFormSubmitForm: typeof genericFormSubmitForm
4 selelctPlatformValue: typeof selelctPlatformValue
11 function selelctPlatformValue(isDropdown: boolean, selectOption: string){
13 cy.selectDropdownOptionByText('platform', selectOption);
15 cy.getElementByDataTestsId("multi-selectPlatform").get('.c-btn').click({force: true})
16 .getElementByDataTestsId(`multi-selectPlatform-${selectOption}`).click()
17 .getElementByDataTestsId("multi-selectPlatform").get('.c-btn').click({force: true});
23 function genericFormSubmitForm(): Chainable<any> {
24 return cy.getElementByDataTestsId('form-set').click({force: true});
28 Cypress.Commands.add('genericFormSubmitForm', genericFormSubmitForm);
29 Cypress.Commands.add('selelctPlatformValue', selelctPlatformValue);