summaryrefslogtreecommitdiff
path: root/web-ui/test/integration/translations.spec.js
blob: 1173695db74ca84b760f7ca9206be073716f494b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { mount } from 'enzyme';
import expect from 'expect';
import React from 'react';
import App from 'src/backup_account/app';
import testI18n from './i18n'

describe('App', () => {
  let app;

  beforeEach(() => {
    app = mount(<App i18n={testI18n} />);
  });

  it('renders translated header logout text', () => {
    expect(app.find('header').text()).toContain('Logout');
  });

  it('renders translated footer text', () => {
    expect(app.find('footer').text()).toContain('Product in development. Feedback and issues to team@pixelated-project.org');
  });
});