-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathinterfaces.p.spec.ts
More file actions
46 lines (43 loc) · 1.54 KB
/
interfaces.p.spec.ts
File metadata and controls
46 lines (43 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
# Copyright 2022 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# Modified by OpenC3, Inc.
# All changes Copyright 2025, OpenC3, Inc.
# All Rights Reserved
*/
// @ts-check
import { test, expect } from './../fixture'
test.use({
toolPath: '/tools/cmdtlmserver/interfaces',
toolName: 'CmdTlmServer',
})
test('disconnects and connects an interface', async ({ page, utils }) => {
await expect(
page.locator('tr:has-text("INST2_INT") td >> nth=2'),
).toContainText('CONNECTED')
await page.locator('tr:has-text("INST2_INT") td >> nth=1').click()
await expect(
page.locator('tr:has-text("INST2_INT") td >> nth=2'),
).toContainText('DISCONNECTED')
await expect(page.locator('[data-test=log-messages]')).toContainText(
'INST2_INT: Disconnect',
)
await page.locator('tr:has-text("INST2_INT") td >> nth=1').click()
await expect(
page.locator('tr:has-text("INST2_INT") td >> nth=2'),
).toContainText('CONNECTED')
await expect(page.locator('[data-test=log-messages]')).toContainText(
'INST2_INT: Connection Success',
)
})