qe-fe-automation
Version:
FE test automation framework using cypress
29 lines (24 loc) • 844 B
text/typescript
const affiliatesSelectors = {
navBarLogoContainer: 'div.ta-nav-bar__white-label',
citiBottomDisclaimer: 'div.navan-home__citi-bottom-text',
navanHome: '.navan-home'
};
// TODO: will be updated under this task MNTZ-455
// Should add automation ids to home page and navbar
const citiLogo = 'citi-default.svg';
export class CitiAffiliate {
static verifyCitiLogo() {
cy.allure().logStep('verify citi logo shown');
cy.get(affiliatesSelectors.navBarLogoContainer)
.find('img')
.should('have.attr', 'src')
.and('include', citiLogo);
}
static verifyCitiBottomDisclaimer() {
cy.allure().logStep('verify citi disclaimer shown');
cy.get(affiliatesSelectors.citiBottomDisclaimer).should('be.exist');
}
static waitUntilHomeShown() {
cy.get(affiliatesSelectors.navanHome).should('be.visible');
}
}