Skip to content

Commit

Permalink
Fix test of SampledValueControl (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Labordus authored Jan 13, 2022
1 parent be4c8ca commit 15abe5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/wizards/sampledvaluecontrol.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Wizards for SCL element SampledValueControl', () => {
describe('define a select wizard that', () => {
beforeEach(async () => {
const wizard = selectSampledValueControlWizard(doc.documentElement);
element.workflow.push(wizard);
element.workflow.push(() => wizard);
await element.requestUpdate();

await element.wizardUI.requestUpdate(); // make sure wizard is rendered
Expand Down
2 changes: 1 addition & 1 deletion test/unit/zeroline/ied-editor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('A component to visualize SCL element IED', () => {
await element.requestUpdate();

expect(wizardEvent).to.have.be.calledOnce;
expect(wizardEvent.args[0][0].detail.wizard[0].title).to.contain('select');
expect(wizardEvent.args[0][0].detail.wizard()[0].title).to.contain('select');
});

it('triggers create wizard for ClientLN element on action button click', async () => {
Expand Down

0 comments on commit 15abe5c

Please sign in to comment.