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

chore: add console e2e testing with playwright #2462

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

wesbillman
Copy link
Collaborator

@wesbillman wesbillman commented Aug 20, 2024

Fixes #2416

@wesbillman wesbillman added the run-all A PR with this label will run the full set of CI jobs in the PR rather than in the merge queue label Aug 20, 2024
@wesbillman wesbillman requested a review from deniseli August 20, 2024 19:41
@wesbillman wesbillman requested a review from alecthomas as a code owner August 20, 2024 19:41
@wesbillman wesbillman requested a review from a team August 20, 2024 19:41
@ftl-robot ftl-robot mentioned this pull request Aug 20, 2024
@wesbillman wesbillman force-pushed the add-playwright-tests branch from 3be5c3a to 6aa4901 Compare August 20, 2024 19:44
@wesbillman wesbillman removed the run-all A PR with this label will run the full set of CI jobs in the PR rather than in the merge queue label Aug 20, 2024
@wesbillman wesbillman force-pushed the add-playwright-tests branch 3 times, most recently from ae8d14c to 18b9e13 Compare August 20, 2024 20:10
Copy link
Contributor

@deniseli deniseli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!!

const sendButton = page.getByText('Send')
await sendButton.click()

await expect(page.getByText('{"message":"Hello')).toBeVisible({ timeout: 30000 })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the timeout need to be this long?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to remove that test for now, it's flakey :)

@wesbillman wesbillman force-pushed the add-playwright-tests branch from 18b9e13 to a4d9c04 Compare August 20, 2024 20:11
@wesbillman
Copy link
Collaborator Author

wesbillman commented Aug 20, 2024

@alecthomas I feel like maybe this should move to integration tests instead of CI, whatcha think? Do we have a way to add non-go tests to the integration workflow in CI?

Maybe not a massive issue yet, since this seems faster than the go test stuff but I'm sure this will get longer in the future.

@wesbillman
Copy link
Collaborator Author

I'm gonna merge this one and follow up with a PR to move these to run in the merge queue and separate out e2e tests from normal tests.

@wesbillman wesbillman added this pull request to the merge queue Aug 21, 2024
Merged via the queue into main with commit f2686f9 Aug 21, 2024
18 checks passed
@wesbillman wesbillman deleted the add-playwright-tests branch August 21, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Playwright tests to console.
2 participants