Skip to content

Commit

Permalink
Tweak slightly brittle tests to pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Sep 20, 2024
1 parent 3fcdb58 commit ab050d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ describe('EditSourceModal', () => {

const wrapper = makeWrapper(['node1', 'node2']);

expect(wrapper.find('.help').text()).toContain('Cannot edit');
expect(wrapper.find('.help').text()).toContain(EditSourceModal.$trs.cannotEditPublic);
});

test('should disable inputs when node has freeze_authoring_data set to true', () => {
Expand All @@ -162,7 +162,7 @@ describe('EditSourceModal', () => {

const wrapper = makeWrapper(['node1']);

expect(wrapper.find('.help').text()).toContain('Cannot edit');
expect(wrapper.find('.help').text()).toContain(EditSourceModal.$trs.cannotEditPublic);
});

test('should not disable inputs when not all nodes are imported', () => {
Expand Down

0 comments on commit ab050d0

Please sign in to comment.