Fixed more e2e tests

This commit is contained in:
Adam Chalmers
2025-01-17 15:57:04 -06:00
committed by Nick Cameron
parent 5191013db2
commit 729a34efed
4 changed files with 21 additions and 21 deletions

View File

@ -79,8 +79,8 @@ test.describe('Code pane and errors', () => {
// Delete a character to break the KCL
await editor.openPane()
await editor.scrollToText('thickness, bracketLeg1Sketch)')
await page.getByText('extrude(thickness, bracketLeg1Sketch)').click()
await editor.scrollToText('bracketLeg1Sketch, length = thickness)')
await page.getByText('extrude(bracketLeg1Sketch, length = thickness)').click()
await page.keyboard.press('Backspace')
// Ensure that a badge appears on the button
@ -107,7 +107,7 @@ test.describe('Code pane and errors', () => {
await editor.openPane()
// Go to our problematic code again (missing closing paren!)
await editor.scrollToText('extrude(thickness, bracketLeg1Sketch')
await editor.scrollToText('extrude(bracketLeg1Sketch, length = thickness')
// Ensure that a badge appears on the button
await expect(codePaneButtonHolder).toContainText('notification')