Skip to content

Commit

Permalink
Add a test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Oct 2, 2023
1 parent 4d661ab commit 4c039fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/www/views/contact_view/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ describe('ContactView client variant', () => {
expect(exitCard.textContent).toContain('experiencing high support volume');
});

it('resets the view on `reset()`', async () => {
const radioButton = el.shadowRoot!.querySelectorAll('mwc-formfield mwc-radio')[0] as HTMLElement;
radioButton.click();
await nextFrame();

el.reset();
await nextFrame();

const exitCard = el.shadowRoot!.querySelector('outline-card')!;
expect(exitCard).toBeNull();
});

describe('when the user selects that they have no open tickets', () => {
let issueSelector: Select;

Expand Down

0 comments on commit 4c039fc

Please sign in to comment.