summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/language.e2e-spec.ts
blob: ccf16c2b55c78fb514fa79850d9210ccb0c5661b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { LanguagePageHelper } from './language.po';

describe('Shared pages', () => {
  const language = new LanguagePageHelper();

  beforeEach(() => {
    cy.login();
    Cypress.Cookies.preserveOnce('token');
    language.navigateTo();
  });

  it('should check default language', () => {
    language.getLanguageBtn().should('contain.text', 'English');
  });

  it('should check all available languages', () => {
    language.getLanguageBtn().click();
    language.getAllLanguages().should('have.length', 1).should('contain.text', 'English');
  });
});