-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(manager): add new contact form (#1996)
* Remove manager support from client feedback form. * Move issue_type exports to index.ts * Add manager form. * Some style changes. * Send feedback to Sentry. * Don't break the existing feedback flow. * Fix gallery app. * Fix submit button string. * Fix lint issues. * Update the installation failure flow. * Address review comments. * Fix missing cordova plugin in package-lock. * Fix enum reference.
- Loading branch information
Showing
17 changed files
with
3,014 additions
and
247 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 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
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
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 |
---|---|---|
|
@@ -34,20 +34,6 @@ describe('SupportForm', () => { | |
expect(el).toBeInstanceOf(SupportForm); | ||
}); | ||
|
||
it('shows correct fields for the client variant', async () => { | ||
const el = await fixture(html` <support-form variant="client"></support-form> `); | ||
|
||
expect(el.shadowRoot!.querySelector('mwc-textfield[name="accessKeySource"]')).not.toBeNull(); | ||
expect(el.shadowRoot!.querySelector('mwc-select[name="cloudProvider"]')).toBeNull(); | ||
}); | ||
|
||
it('shows correct fields for the manager variant', async () => { | ||
const el = await fixture(html` <support-form variant="manager"></support-form> `); | ||
|
||
expect(el.shadowRoot!.querySelector('mwc-textfield[name="accessKeySource"]')).toBeNull(); | ||
expect(el.shadowRoot!.querySelector('mwc-select[name="cloudProvider"]')).not.toBeNull(); | ||
}); | ||
|
||
it('sets fields with provided form values', async () => { | ||
const values: FormValues = { | ||
email: '[email protected]', | ||
|
Oops, something went wrong.