Sha256: e9bd0ef0d7c921d8824dfe096ba756b4f7f9ce476fc05cf23805710754f9b322

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

import React from 'react';

import TenantModel from 'hippo/models/tenant';
import Tenant from 'hippo/screens/system-settings/tenant';

describe('SystemSettings Tenants section', () => {
    it('displays warning dialog after update slug', (done) => {
        const t = mount(<Tenant />);
        expect(t).not.toHaveRendered('TenantSlugChange Layer');
        TenantModel.current.slug = 'ONE';
        t.find('input[name="name"]').simulate('change', { target: { value: 'NEW' } });
        t.instance().onSave();
        setTimeout(() => {
            expect(t).toHaveRendered('TenantSlugChange Layer');
            done();
        });
    });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hippo-fw-0.9.5 spec/client/screens/system-settings-tenants.spec.jsx
hippo-fw-0.9.4 spec/client/screens/system-settings-tenants.spec.jsx
hippo-fw-0.9.3 spec/client/screens/system-settings-tenants.spec.jsx
hippo-fw-0.9.2 spec/client/screens/system-settings-tenants.spec.jsx