Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs.openc3.com/docs/configuration/accessors.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Creating the template file requires the use of the Ruby or Python CBOR libraries

```ruby
require 'cbor'
data = {"id_item" => 2, "item1" => 101, "more" => { "item2" => 12, "item3" => 3.14, "item4" => "Example", "item5" => [4, 3, 2, 1] } }
data = {"id_item" => 2, "item1" => 101, "more" => { "item2" => 12, "item3" => 3.14, "item4" => "CBOR", "item5" => [4, 3, 2, 1] } }
File.open("_cbor_template.bin", 'wb') do |file|
file.write(data.to_cbor)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
£gid_itemeitem1edmore¤eitem2 eitem3û@ ¸Që…eitem4gExampleeitem5„
£gid_itemeitem1edmore¤eitem2 eitem3û@ ¸Që…eitem4dCBOReitem5„
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ COMMAND <%= target_name %> SET_PASSWORD BIG_ENDIAN "Set Password Command"

COMMAND <%= target_name %> JSONCMD BIG_ENDIAN "JSON Accessor Command"
ACCESSOR JsonAccessor
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] }, "item6": true, "item7": [1, "2", 3.14], "item8": {"a":"b"}, "item9": {"c":"d"} }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] }, "item6": true, "item7": [1, "2", 3.14], "item8": {"a":"b"}, "item9": {"c":"d"} }'
APPEND_ID_PARAMETER ID_ITEM 32 INT 31 31 31 "Int Item"
KEY $.id_item
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -146,7 +146,7 @@ COMMAND <%= target_name %> JSONCMD BIG_ENDIAN "JSON Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "JSON" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand All @@ -172,14 +172,14 @@ COMMAND <%= target_name %> CBORCMD BIG_ENDIAN "CBOR Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "CBOR" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5

COMMAND <%= target_name %> XMLCMD BIG_ENDIAN "XML Accessor Command"
ACCESSOR XmlAccessor
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>Example</li></ul></div><div></div></body></html>'
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>XML</li></ul></div><div></div></body></html>'
APPEND_ID_PARAMETER ID_ITEM 32 INT 33 33 33 "Int Item"
KEY "/html/head/script/@src"
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -190,12 +190,12 @@ COMMAND <%= target_name %> XMLCMD BIG_ENDIAN "XML Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY "/html/body/div/ul/li[1]/text()"
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "XML" "String Item"
KEY "/html/body/div/ul/li[2]/text()"

COMMAND <%= target_name %> HTMLCMD BIG_ENDIAN "HTML Accessor Command"
ACCESSOR HtmlAccessor
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>Example</p><ul><li>1</li><li>3.14</li></ul></body></html>'
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>HTML</p><ul><li>1</li><li>3.14</li></ul></body></html>'
APPEND_ID_PARAMETER ID_ITEM 32 INT 34 34 34 "Int Item"
KEY "/html/head/title/text()"
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -206,13 +206,13 @@ COMMAND <%= target_name %> HTMLCMD BIG_ENDIAN "HTML Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY "/html/body/img/@src"
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "HTML" "String Item"
KEY "/html/body/p/text()"

COMMAND <%= target_name %> JSONSTRUCT BIG_ENDIAN "JSON Structure"
VIRTUAL
ACCESSOR JsonAccessor
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] } }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] } }'
APPEND_PARAMETER ITEM0 32 INT 1 1 1 "Int Item"
KEY $.id_item
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -223,7 +223,7 @@ COMMAND <%= target_name %> JSONSTRUCT BIG_ENDIAN "JSON Structure"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "JSON" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand All @@ -242,7 +242,7 @@ COMMAND <%= target_name %> CBORSTRUCT BIG_ENDIAN "CBOR Structure"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "CBOR" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ TELEMETRY <%= target_name %> VARIABLE_ARRAYS BIG_ENDIAN "Variable length arrays"
TELEMETRY <%= target_name %> JSONTLM BIG_ENDIAN "JSON Accessor Telemetry"
ACCESSOR JsonAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] }, "item6": true, "item7": [1, "2", 3.14], "item8": {"a":"b"}, "item9": {"c":"d"} }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] }, "item6": true, "item7": [1, "2", 3.14], "item8": {"a":"b"}, "item9": {"c":"d"} }'
APPEND_ID_ITEM ID_ITEM 32 INT 31 "Int Item"
KEY $.id_item
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand Down Expand Up @@ -252,7 +252,7 @@ TELEMETRY <%= target_name %> CBORTLM BIG_ENDIAN "CBOR Accessor Telemetry"
TELEMETRY <%= target_name %> XMLTLM BIG_ENDIAN "XML Accessor Telemetry"
ACCESSOR XmlAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>Example</li></ul></div><div></div></body></html>'
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>XML</li></ul></div><div></div></body></html>'
APPEND_ID_ITEM ID_ITEM 32 INT 33 "Int Item"
KEY "/html/head/script/@src"
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand All @@ -272,7 +272,7 @@ TELEMETRY <%= target_name %> XMLTLM BIG_ENDIAN "XML Accessor Telemetry"
TELEMETRY <%= target_name %> HTMLTLM BIG_ENDIAN "HTML Accessor Telemetry"
ACCESSOR HtmlAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>Example</p><ul><li>1</li><li>3.14</li></ul></body></html>'
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>HTML</p><ul><li>1</li><li>3.14</li></ul></body></html>'
APPEND_ID_ITEM ID_ITEM 32 INT 34 "Int Item"
KEY "/html/head/title/text()"
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
£gid_itemeitem1edmore¤eitem2 eitem3û@ ¸Që…eitem4gExampleeitem5„
£gid_itemeitem1edmore¤eitem2 eitem3û@ ¸Që…eitem4dCBOReitem5„
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ COMMAND <%= target_name %> SET_PASSWORD BIG_ENDIAN "Set Password Command"

COMMAND <%= target_name %> JSONCMD BIG_ENDIAN "JSON Accessor Command"
ACCESSOR JsonAccessor
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] } }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] } }'
APPEND_ID_PARAMETER ID_ITEM 32 INT 31 31 31 "Int Item"
KEY $.id_item
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -146,7 +146,7 @@ COMMAND <%= target_name %> JSONCMD BIG_ENDIAN "JSON Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "JSON" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand All @@ -172,14 +172,14 @@ COMMAND <%= target_name %> CBORCMD BIG_ENDIAN "CBOR Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "CBOR" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5

COMMAND <%= target_name %> XMLCMD BIG_ENDIAN "XML Accessor Command"
ACCESSOR XmlAccessor
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>Example</li></ul></div><div></div></body></html>'
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>XML</li></ul></div><div></div></body></html>'
APPEND_ID_PARAMETER ID_ITEM 32 INT 33 33 33 "Int Item"
KEY "/html/head/script/@src"
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -190,12 +190,12 @@ COMMAND <%= target_name %> XMLCMD BIG_ENDIAN "XML Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY "/html/body/div/ul/li[1]/text()"
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "XML" "String Item"
KEY "/html/body/div/ul/li[2]/text()"

COMMAND <%= target_name %> HTMLCMD BIG_ENDIAN "HTML Accessor Command"
ACCESSOR HtmlAccessor
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>Example</p><ul><li>1</li><li>3.14</li></ul></body></html>'
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>HTML</p><ul><li>1</li><li>3.14</li></ul></body></html>'
APPEND_ID_PARAMETER ID_ITEM 32 INT 34 34 34 "Int Item"
KEY "/html/head/title/text()"
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -206,13 +206,13 @@ COMMAND <%= target_name %> HTMLCMD BIG_ENDIAN "HTML Accessor Command"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY "/html/body/img/@src"
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "HTML" "String Item"
KEY "/html/body/p/text()"

COMMAND <%= target_name %> JSONSTRUCT BIG_ENDIAN "JSON Structure"
VIRTUAL
ACCESSOR JsonAccessor
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] } }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] } }'
APPEND_PARAMETER ITEM0 32 INT 1 1 1 "Int Item"
KEY $.id_item
APPEND_PARAMETER ITEM1 16 UINT MIN MAX 101 "Int Item 2"
Expand All @@ -223,7 +223,7 @@ COMMAND <%= target_name %> JSONSTRUCT BIG_ENDIAN "JSON Structure"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "JSON" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand All @@ -242,7 +242,7 @@ COMMAND <%= target_name %> CBORSTRUCT BIG_ENDIAN "CBOR Structure"
FORMAT_STRING "0x%X"
APPEND_PARAMETER ITEM3 64 FLOAT MIN MAX 3.14 "Float Item"
KEY $.more.item3
APPEND_PARAMETER ITEM4 128 STRING "Example" "String Item"
APPEND_PARAMETER ITEM4 128 STRING "CBOR" "String Item"
KEY $.more.item4
APPEND_ARRAY_PARAMETER ITEM5 8 UINT 0 "Array Item"
KEY $.more.item5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ TELEMETRY <%= target_name %> VARIABLE_ARRAYS BIG_ENDIAN "Variable length arrays"
TELEMETRY <%= target_name %> JSONTLM BIG_ENDIAN "JSON Accessor Telemetry"
ACCESSOR JsonAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"Example", "item5":[4, 3, 2, 1] } }'
TEMPLATE '{"id_item":1, "item1":101, "more": { "item2":12, "item3":3.14, "item4":"JSON", "item5":[4, 3, 2, 1] } }'
APPEND_ID_ITEM ID_ITEM 32 INT 31 "Int Item"
KEY $.id_item
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand Down Expand Up @@ -246,7 +246,7 @@ TELEMETRY <%= target_name %> CBORTLM BIG_ENDIAN "CBOR Accessor Telemetry"
TELEMETRY <%= target_name %> XMLTLM BIG_ENDIAN "XML Accessor Telemetry"
ACCESSOR XmlAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>Example</li></ul></div><div></div></body></html>'
TEMPLATE '<html><head><script src="3"></script><noscript>101</noscript></head><body><img src="12"/><div><ul><li>3.14</li><li>XML</li></ul></div><div></div></body></html>'
APPEND_ID_ITEM ID_ITEM 32 INT 33 "Int Item"
KEY "/html/head/script/@src"
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand All @@ -266,7 +266,7 @@ TELEMETRY <%= target_name %> XMLTLM BIG_ENDIAN "XML Accessor Telemetry"
TELEMETRY <%= target_name %> HTMLTLM BIG_ENDIAN "HTML Accessor Telemetry"
ACCESSOR HtmlAccessor
# Template is not required for telemetry, but is useful for simulation
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>Example</p><ul><li>1</li><li>3.14</li></ul></body></html>'
TEMPLATE '<!DOCTYPE html><html lang="en"><head><title>4</title><script src="101"></script></head><body><noscript>12</noscript><img src="3.14" alt="An Image"/><p>HTML</p><ul><li>1</li><li>3.14</li></ul></body></html>'
APPEND_ID_ITEM ID_ITEM 32 INT 34 "Int Item"
KEY "/html/head/title/text()"
APPEND_ITEM ITEM1 16 UINT "Int Item 2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
:hidden="true"
choose-item
allow-all
show-latest
@add-item="addItem($event)"
/>
</v-col>
Expand Down Expand Up @@ -197,7 +198,7 @@
</v-col>
</v-row>
</v-card-text>
<v-card-actions class="px-2">
<v-card-actions class="px-6 py-3">
<v-spacer />
<v-btn variant="flat" @click="item.edit = false">
Close
Expand Down Expand Up @@ -270,7 +271,7 @@
</v-col>
</v-row>
</v-card-text>
<v-card-actions class="px-2">
<v-card-actions class="px-6 py-3">
<v-spacer />
<v-btn variant="outlined" @click="editAll = false"> Cancel </v-btn>
<v-btn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default {
description: 'UNKNOWN',
},
LATEST: {
label: 'LATEST',
label: '[ LATEST ]',
value: 'LATEST',
description: 'Latest values from all packets',
}, // Constant to indicate latest values from all packets
Expand Down Expand Up @@ -374,7 +374,11 @@ export default {
let i = this.itemNames.findIndex(
(item) => item.value === this.selectedItemName,
)
if (i === -1 || Number.isNaN(this.itemNames[i].array)) {
if (
i === -1 ||
this.itemNames[i].array === undefined ||
Number.isNaN(this.itemNames[i].array)
) {
return false
} else {
return true
Expand Down Expand Up @@ -520,12 +524,12 @@ export default {
value: name,
}
})
if (this.allowAll) {
this.packetNames.unshift(this.ALL)
}
if (this.includeLatestPacketInDropdown) {
this.packetNames.unshift(this.LATEST)
}
if (this.allowAll) {
this.packetNames.unshift(this.ALL)
}
if (!this.selectedPacketName) {
if (this.packetNames.length === 0) {
this.selectedPacketName = null
Expand Down
2 changes: 1 addition & 1 deletion openc3/data/config/interface_modifiers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RECONNECT_DELAY:
parameters:
- name: Delay
required: true
description: Delay in seconds between reconnect attempts. The default is 15 seconds.
description: Delay in seconds between reconnect attempts. The default is 5 seconds.
values: ([0-9]*[.])?[0-9]+
DISABLE_DISCONNECT:
summary: Disable the Disconnect button on the Interfaces tab in the Server
Expand Down
2 changes: 1 addition & 1 deletion openc3/data/config/telemetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TELEMETRY:
required: true
description: Name of the target this telemetry packet is associated with
values: .+
- name: Command
- name: Packet
required: true
description:
Name of this telemetry packet. Also referred to as its mnemonic.
Expand Down
12 changes: 12 additions & 0 deletions playwright/tests/data-extractor.p.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@

test('adds an entire target', async ({ page, utils }) => {
await utils.addTargetPacketItem('INST')
await expect(page.getByText('1-20 of 279')).toBeVisible()

Check failure on line 164 in playwright/tests/data-extractor.p.spec.ts

View workflow job for this annotation

GitHub Actions / openc3-build-test

[chromium] › tests/data-extractor.p.spec.ts:162:5 › adds an entire target

1) [chromium] › tests/data-extractor.p.spec.ts:162:5 › adds an entire target ───────────────────── Error: expect(locator).toBeVisible() failed Locator: getByText('1-20 of 279') Expected: visible Timeout: 10000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 10000ms - waiting for getByText('1-20 of 279') 162 | test('adds an entire target', async ({ page, utils }) => { 163 | await utils.addTargetPacketItem('INST') > 164 | await expect(page.getByText('1-20 of 279')).toBeVisible() | ^ 165 | }) 166 | 167 | test('adds an entire packet', async ({ page, utils }) => { at /home/runner/work/cosmos/cosmos/playwright/tests/data-extractor.p.spec.ts:164:47
})

test('adds an entire packet', async ({ page, utils }) => {
Expand Down Expand Up @@ -413,3 +413,15 @@
expect(lines.length).toEqual(2) // header and a single value
})
})

test('works with LATEST', async ({ page, utils }) => {
await utils.addTargetPacketItem('INST', '[ LATEST ]', 'ITEM4')
await utils.sleep(500)

await utils.download(page, 'text=Process', function (contents) {
expect(contents).toContain('INST,LATEST,HTML')
expect(contents).toContain('INST,LATEST,XML')
expect(contents).toContain('INST,LATEST,CBOR')
expect(contents).toContain('INST,LATEST,JSON')
})
})
Loading