]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/ui/language.e2e-spec.ts
buildsys: change download over to reef release
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / ui / language.e2e-spec.ts
1 import { LanguagePageHelper } from './language.po';
2
3 describe('Shared pages', () => {
4 const language = new LanguagePageHelper();
5
6 beforeEach(() => {
7 cy.login();
8 Cypress.Cookies.preserveOnce('token');
9 language.navigateTo();
10 });
11
12 it('should check default language', () => {
13 language.getLanguageBtn().should('contain.text', 'English');
14 });
15
16 it('should check all available languages', () => {
17 language.getLanguageBtn().click();
18 language.getAllLanguages().should('have.length', 1).should('contain.text', 'English');
19 });
20 });