Skip to content

Commit

Permalink
test(installWizard): Remove obsolete test case and rename the remaini…
Browse files Browse the repository at this point in the history
…ng (#13736)

Follow up to #13726.
  • Loading branch information
BYK committed Jul 5, 2019
1 parent 7822ea3 commit 00dc2d3
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions tests/js/spec/views/installWizard.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('InstallWizard', function() {
).toBe(false);
});

it('has "Send my contact information..." when beacon.anonymous is false', function() {
it('has no option selected even when beacon.anonymous is set', function() {
MockApiClient.addMockResponse({
url: '/internal/options/?query=is:required',
body: TestStubs.InstallWizard({
Expand All @@ -86,32 +86,4 @@ describe('InstallWizard', function() {
wrapper.find('input[name="beacon.anonymous"][value="true"]').prop('checked')
).toBe(false);
});

it('has "Please keep my usage anonymous" when beacon.anonymous is false', function() {
MockApiClient.addMockResponse({
url: '/internal/options/?query=is:required',
body: TestStubs.InstallWizard({
'beacon.anonymous': {
field: {
disabledReason: null,
default: false,
required: true,
disabled: false,
allowEmpty: true,
isSet: true,
},
value: true,
},
}),
});
const wrapper = mount(<InstallWizard onConfigured={jest.fn()} />);

expect(
wrapper.find('input[name="beacon.anonymous"][value="false"]').prop('checked')
).toBe(false);

expect(
wrapper.find('input[name="beacon.anonymous"][value="true"]').prop('checked')
).toBe(false);
});
});

0 comments on commit 00dc2d3

Please sign in to comment.