generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Dev to Main Sync (#630)
* Merge pull request #627 from Hariom01010/fix/update-users-self-api-endpoint Updated deprecated API endpoint from /users/self to /users?profile=true * dev flag removed for update profile picture button (#626) * dev flag removed for update profile picture button * added test for profile-edit-button --------- Co-authored-by: Achintya Chatterjee <55826451+Achintya-Chatterjee@users.noreply.github.com> * Fix/update users self api endpoint (#629) * Updated deprecated API endpoint from /users/self to /users?profile=true * Fix: Remove the updates where patch route was updated by mistake --------- Co-authored-by: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com> --------- Co-authored-by: Hariom Vashista <rishivashista4@gmail.com> Co-authored-by: Javed Ansari <javedans2003@gmail.com> Co-authored-by: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com> Co-authored-by: Amit Prakash <34869115+iamitprakash@users.noreply.github.com>
Showing
12 changed files
with
35 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { module, test } from 'qunit'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { render } from '@ember/test-helpers'; | ||
import { hbs } from 'ember-cli-htmlbars'; | ||
|
||
module('Unit | Component | profile-edit-button', function (hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('profile-edit-button renders and triggers action on click', async function (assert) { | ||
this.set('mockAction', () => { | ||
assert.ok(true, 'Action was called'); | ||
}); | ||
|
||
await render( | ||
hbs`<Button @onClick={{this.mockAction}} @class='profile-edit-button' @data-test-btn='edit'> | ||
<FaIcon @icon="edit" /> | ||
</Button>` | ||
); | ||
|
||
assert.dom('[data-test-btn="edit"]').exists('Edit button is rendered'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters