Skip to content

Commit

Permalink
fix: fixed tests for nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef3st committed Apr 24, 2023
1 parent f6fd5fc commit 17117a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/wizards/__snapshots__/process.test.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ snapshots["Wizards for SCL Process element define an edit wizard that looks like
>
</wizard-textfield>
<wizard-textfield
disabled=""
helper="[scl.type]"
label="type"
nullable=""
>
</wizard-textfield>
</div>
Expand Down
1 change: 1 addition & 0 deletions test/unit/wizards/process.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ describe('Wizards for SCL Process element', () => {
expect(editAction.new.element).to.have.attribute('desc', 'someDesc');
});
it('allows to create non required attribute type', async () => {
(<WizardTextField>inputs[2]).nullSwitch?.click();
inputs[2].value = 'someNonEmptyType';

await element.requestUpdate();
Expand Down

0 comments on commit 17117a3

Please sign in to comment.