1 declare namespace Cypress {
3 genericFormSubmitForm: typeof genericFormSubmitForm
4 selectPlatformValue: typeof selectPlatformValue
5 checkPlatformValue: typeof checkPlatformValue
10 function selectPlatformValue(selectOption: string) {
11 cy.getElementByDataTestsId("multi-selectPlatform").get('.c-btn').click({force: true});
12 cy.getElementByDataTestsId(`multi-selectPlatform-${selectOption}`).click();
13 cy.getElementByDataTestsId("multi-selectPlatform").get('.c-btn').click({force: true});
16 function checkPlatformValue(value: string){
17 return cy.getElementByDataTestsId("multi-selectPlatform").should("contain", value)
20 function genericFormSubmitForm(): Chainable<any> {
21 return cy.getElementByDataTestsId('form-set').click({force: true});
25 Cypress.Commands.add('genericFormSubmitForm', genericFormSubmitForm);
26 Cypress.Commands.add('selectPlatformValue', selectPlatformValue);
27 Cypress.Commands.add('checkPlatformValue', checkPlatformValue);