Skip to content

Commit

Permalink
Merge pull request #1233 from OpenC3/playwright
Browse files Browse the repository at this point in the history
Fix playwright test
  • Loading branch information
jmthomas authored May 3, 2024
2 parents 754dbda + 11061a3 commit bbe7a70
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playwright/tests/script-runner/debug.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,15 @@ test('displays the call stack', async ({ page, utils }) => {
})

test('displays disconnect icon', async ({ page, utils }) => {
// Initialize the values so we know what we're comparing against
await page.locator('textarea').fill(`
cmd("INST SETPARAMS with VALUE1 0, VALUE2 1, VALUE3 2, VALUE4 1, VALUE5 0")
`)
await page.locator('[data-test=start-button]').click()
await expect(page.locator('[data-test=state]')).toHaveValue('stopped', {
timeout: 20000,
})

await page.locator('[data-test=script-runner-script]').click()
await page.locator('text=Toggle Disconnect').click()

Expand All @@ -185,7 +194,7 @@ test('displays disconnect icon', async ({ page, utils }) => {
timeout: 20000,
})
await expect(page.locator('[data-test=output-messages]')).toContainText(
"CHECK: INST PARAMS VALUE1 == 'BAD' success",
"CHECK: INST PARAMS VALUE1 == 'BAD' failed",
)
await expect(page.locator('[data-test=output-messages]')).toContainText(
"CHECK: INST PARAMS VALUE2 == 'BAD' success",
Expand Down

0 comments on commit bbe7a70

Please sign in to comment.