Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix playwright test #1233

Merged
merged 1 commit into from
May 3, 2024
Merged
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
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
Loading