Skip to content

Commit

Permalink
Add additional pattern check
Browse files Browse the repository at this point in the history
  • Loading branch information
danyill committed Jun 26, 2023
1 parent d4336d7 commit bc0099d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/integration/editors/templates/dotype-wizarding.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,26 @@ describe('DOType wizards', () => {
});
});

// work around, because the escapes get removed in snapshot by prettier
it('should have correct pattern', async () => {
expect(
parent.wizardUI.dialog!.querySelectorAll('wizard-textfield[pattern]')!
.length
).to.equal(2);

expect(
parent.wizardUI
.dialog!.querySelectorAll('wizard-textfield[pattern]')[0]
.getAttribute('pattern')
).to.equal(patterns.tRestrName1stL);

expect(
parent.wizardUI
.dialog!.querySelectorAll('wizard-textfield[pattern]')[1]
.getAttribute('pattern')
).to.equal(patterns.normalizedString);
});

it('creates a new SDO element', async () => {
expect(
doc.querySelector(
Expand Down

0 comments on commit bc0099d

Please sign in to comment.