Remove unneeded check on the network health text label (#6905)
This commit is contained in:
@ -552,7 +552,7 @@ extrude002 = extrude(profile002, length = 150)
|
|||||||
test(
|
test(
|
||||||
`Network health indicator only appears in modeling view`,
|
`Network health indicator only appears in modeling view`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
async ({ context, page }, testInfo) => {
|
async ({ context, page }) => {
|
||||||
await context.folderSetupFn(async (dir) => {
|
await context.folderSetupFn(async (dir) => {
|
||||||
const bracketDir = path.join(dir, 'bracket')
|
const bracketDir = path.join(dir, 'bracket')
|
||||||
await fsp.mkdir(bracketDir, { recursive: true })
|
await fsp.mkdir(bracketDir, { recursive: true })
|
||||||
@ -561,9 +561,7 @@ extrude002 = extrude(profile002, length = 150)
|
|||||||
path.join(bracketDir, 'main.kcl')
|
path.join(bracketDir, 'main.kcl')
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||||
const u = await getUtils(page)
|
|
||||||
|
|
||||||
// Locators
|
// Locators
|
||||||
const projectsHeading = page.getByRole('heading', {
|
const projectsHeading = page.getByRole('heading', {
|
||||||
@ -583,10 +581,8 @@ extrude002 = extrude(profile002, length = 150)
|
|||||||
})
|
})
|
||||||
|
|
||||||
await test.step('Check the modeling view', async () => {
|
await test.step('Check the modeling view', async () => {
|
||||||
|
await expect(projectsHeading).not.toBeVisible()
|
||||||
await expect(networkHealthIndicator).toBeVisible()
|
await expect(networkHealthIndicator).toBeVisible()
|
||||||
await expect(networkHealthIndicator).toContainText('Problem')
|
|
||||||
await u.waitForPageLoad()
|
|
||||||
await expect(networkHealthIndicator).toContainText('Connected')
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user