Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-05 09:19:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-05 09:19:08 +0300
commit856f7ae4d12afea169d4929c0c1b34bc40a6ca28 (patch)
tree33b9f8ee7b0ce781d8d6811502be3684b4a81301 /spec/frontend/blob_edit
parentf1bf55111e2da793469b992bbc5c0db0a73edbe2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/blob_edit')
-rw-r--r--spec/frontend/blob_edit/blob_bundle_spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/blob_edit/blob_bundle_spec.js b/spec/frontend/blob_edit/blob_bundle_spec.js
index 8986dfbfa9c..2c9ddfaf867 100644
--- a/spec/frontend/blob_edit/blob_bundle_spec.js
+++ b/spec/frontend/blob_edit/blob_bundle_spec.js
@@ -25,7 +25,7 @@ describe('BlobBundle', () => {
setFixtures(`
<div class="js-edit-blob-form" data-blob-filename="blah">
<button class="js-commit-button"></button>
- <a class="btn btn-cancel" href="#"></a>
+ <button id='cancel-changes'></button>
</div>`);
blobBundle();
@@ -42,7 +42,7 @@ describe('BlobBundle', () => {
});
it('removes beforeunload listener when cancel link is clicked', () => {
- $('.btn.btn-cancel').click();
+ $('#cancel-changes').click();
expect(window.onbeforeunload).toBeNull();
});
@@ -61,7 +61,7 @@ describe('BlobBundle', () => {
data-human-access="owner"
data-merge-request-path="path/to/mr">
<button id='commit-changes' class="js-commit-button"></button>
- <a class="btn btn-cancel" href="#"></a>
+ <button id='cancel-changes'></button>
</div>
</div>`);