qe-fe-automation
Version:
FE test automation framework using cypress
16 lines (13 loc) • 438 B
text/typescript
const rewardsSelectors = {
rewardsBalanceHeader: '.ta-profile-rewards__balance-info'
};
export class RewardsPage {
static visitRewardsPage(): void {
cy.allure().logStep('Visit Navan Rewards page');
cy.visit('/app/user2/profile?tab=rewards');
}
static verifyRewardsEnabled(): void {
cy.allure().logStep('Verify Navan Rewards is enabled');
cy.get(rewardsSelectors.rewardsBalanceHeader).should('be.visible');
}
}