Fixed save test

no issue
This commit is contained in:
Rish 2020-04-06 18:02:09 +05:30
parent 4f8e9b9bd8
commit 2e1fc80849

View File

@ -87,7 +87,7 @@ describe('Acceptance: Settings - Code-Injection', function () {
let params = JSON.parse(lastRequest.requestBody);
expect(params.settings.findBy('key', 'codeinjection_head').value).to.equal('');
expect(find('[data-test-save-button]').textContent.trim(), 'save button text').to.equal('Saved');
expect(find('[data-test-save-button]').textContent.trim(), 'save button text').to.equal('Save');
// CMD-S shortcut works
await triggerEvent('.gh-app', 'keydown', {
@ -101,7 +101,7 @@ describe('Acceptance: Settings - Code-Injection', function () {
params = JSON.parse(newRequest.requestBody);
expect(params.settings.findBy('key', 'codeinjection_head').value).to.equal('');
expect(find('[data-test-save-button]').textContent.trim(), 'save button text').to.equal('Saved');
expect(find('[data-test-save-button]').textContent.trim(), 'save button text').to.equal('Save');
});
});
});