Skip to content

Commit

Permalink
pr feedback reactive statement not triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
joswig committed Nov 6, 2024
1 parent 9eea635 commit ab58482
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/fixtures/Sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ export class Sequence {
await this.page.waitForTimeout(1000);

expect(await this.linter.count()).toBe(0);
await expect(this.command).toHaveText('C FSW_CMD_0 "ON" "false" 1');
await expect(this.command).toHaveText('C FSW_CMD_0 "ON" false 1');
await this.page
.locator('fieldset')
.filter({ hasText: 'enum_arg_0 ONOFF' })
.getByRole('combobox')
.selectOption('OFF');

Check failure on line 173 in e2e-tests/fixtures/Sequence.ts

View workflow job for this annotation

GitHub Actions / e2e-test

[e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor

1) [e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor Error: locator.selectOption: Target page, context or browser has been closed Call log: - waiting for locator('fieldset').filter({ hasText: 'enum_arg_0 ONOFF' }).getByRole('combobox') at fixtures/Sequence.ts:173 171 | .filter({ hasText: 'enum_arg_0 ONOFF' }) 172 | .getByRole('combobox') > 173 | .selectOption('OFF'); | ^ 174 | 175 | await expect(this.command).toHaveText('C FSW_CMD_0 "OFF" false 1'); 176 | at Sequence.modifySequence (/home/runner/work/***-ui/***-ui/e2e-tests/fixtures/Sequence.ts:173:8) at /home/runner/work/***-ui/***-ui/e2e-tests/tests/sequence.test.ts:42:5

Check failure on line 173 in e2e-tests/fixtures/Sequence.ts

View workflow job for this annotation

GitHub Actions / e2e-test

[e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor

1) [e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.selectOption: Target page, context or browser has been closed Call log: - waiting for locator('fieldset').filter({ hasText: 'enum_arg_0 ONOFF' }).getByRole('combobox') at fixtures/Sequence.ts:173 171 | .filter({ hasText: 'enum_arg_0 ONOFF' }) 172 | .getByRole('combobox') > 173 | .selectOption('OFF'); | ^ 174 | 175 | await expect(this.command).toHaveText('C FSW_CMD_0 "OFF" false 1'); 176 | at Sequence.modifySequence (/home/runner/work/***-ui/***-ui/e2e-tests/fixtures/Sequence.ts:173:8) at /home/runner/work/***-ui/***-ui/e2e-tests/tests/sequence.test.ts:42:5

Check failure on line 173 in e2e-tests/fixtures/Sequence.ts

View workflow job for this annotation

GitHub Actions / e2e-test

[e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor

1) [e2e tests] › tests/sequence.test.ts:41:3 › Sequence › Open and modify a sequence via form editor Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.selectOption: Target page, context or browser has been closed Call log: - waiting for locator('fieldset').filter({ hasText: 'enum_arg_0 ONOFF' }).getByRole('combobox') at fixtures/Sequence.ts:173 171 | .filter({ hasText: 'enum_arg_0 ONOFF' }) 172 | .getByRole('combobox') > 173 | .selectOption('OFF'); | ^ 174 | 175 | await expect(this.command).toHaveText('C FSW_CMD_0 "OFF" false 1'); 176 | at Sequence.modifySequence (/home/runner/work/***-ui/***-ui/e2e-tests/fixtures/Sequence.ts:173:8) at /home/runner/work/***-ui/***-ui/e2e-tests/tests/sequence.test.ts:42:5

await expect(this.command).toHaveText('C FSW_CMD_0 "OFF" "false" 1');
await expect(this.command).toHaveText('C FSW_CMD_0 "OFF" false 1');

await this.page.getByRole('button', { name: 'Save' }).click();
await this.page.getByRole('button', { name: 'Close' }).click();
Expand Down
14 changes: 8 additions & 6 deletions src/components/sequencing/form/ArgTitle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
let typeInfo: string = '';
let formattedRange: string = '';
$: title = getArgTitle(argDef);
$: typeInfo = compactType(argDef);
$: title = getArgTitle(argDef, typeInfo);
$: formattedRange = formatRange(argDef);
function compactType(argDef: FswCommandArgument): string {
Expand Down Expand Up @@ -52,7 +52,7 @@
return '';
}
function getArgTitle(argDef: FswCommandArgument): string {
function getArgTitle(argDef: FswCommandArgument, typeInfo: string): string {
if (
isFswCommandArgumentRepeat(argDef) &&
typeof argDef.repeat?.max === 'number' &&
Expand Down Expand Up @@ -96,10 +96,12 @@
<div>{typeInfo}</div>
{/if}

<div>Description</div>
<div>
{argDef.description}
</div>
{#if argDef.description}
<div>Description</div>
<div>
{argDef.description}
</div>
{/if}

<div>Value Type</div>

Expand Down

0 comments on commit ab58482

Please sign in to comment.