Skip to content

Commit

Permalink
fix: flaky e2e ingress test (#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbillman authored Oct 30, 2024
1 parent 0858fb6 commit 3039a2e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions frontend/console/e2e/ingress-http.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ test('send get request with path and query params', async ({ page }) => {
await navigateToDecl(page, 'http', 'get')

// Check the initial value of the path input
const pathInput = page.locator('#request-path')
await expect(pathInput).toBeVisible()
const currentValue = await pathInput.inputValue()
expect(currentValue).toBe('http://localhost:8891/get/name')
const pathInput = page.locator('input#request-path')
expect(pathInput).toHaveValue('http://localhost:8891/get/name')

// Update the path input to test path and query params
await pathInput.fill('http://localhost:8891/get/wicket?age=10')
Expand All @@ -40,11 +38,7 @@ test('send get request with path and query params', async ({ page }) => {
test('send post request with body', async ({ page }) => {
await navigateToDecl(page, 'http', 'post')

// Check the initial value of the path input
const pathInput = page.locator('#request-path')
await expect(pathInput).toBeVisible()
const currentValue = await pathInput.inputValue()
expect(currentValue).toBe('http://localhost:8891/post')
await expect(page.locator('input#request-path')).toHaveValue('http://localhost:8891/post')

const bodyEditor = page.locator('#body-editor .cm-content[contenteditable="true"]')
await expect(bodyEditor).toBeVisible()
Expand Down

0 comments on commit 3039a2e

Please sign in to comment.