Merge main (tests changed x_x) and pass all constraints.spec tests (pain)
This commit is contained in:
@ -56,7 +56,6 @@ test(
|
||||
})
|
||||
|
||||
await expect(projectLinks).toHaveCount(0)
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -64,7 +63,6 @@ test(
|
||||
'click help/keybindings from home page',
|
||||
{ tag: '@electron' },
|
||||
async ({ page }, testInfo) => {
|
||||
|
||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||
|
||||
page.on('console', console.log)
|
||||
@ -76,7 +74,6 @@ test(
|
||||
await page.getByTestId('keybindings-button').click()
|
||||
// Make sure the keyboard shortcuts modal is visible.
|
||||
await expect(page.getByText('Enter Sketch Mode')).toBeVisible()
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -114,7 +111,6 @@ test(
|
||||
await page.getByTestId('keybindings-button').click()
|
||||
// Make sure the keyboard shortcuts modal is visible.
|
||||
await expect(page.getByText('Enter Sketch Mode')).toBeVisible()
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -477,7 +473,6 @@ test(
|
||||
await page.hover('.cm-lint-marker-error')
|
||||
const crypticErrorText = `Expected a tag declarator`
|
||||
await expect(page.getByText(crypticErrorText).first()).toBeVisible()
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -569,7 +564,6 @@ test.describe('Can export from electron app', () => {
|
||||
// clean up exported file
|
||||
await fsp.rm(filepath)
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
@ -577,7 +571,7 @@ test.describe('Can export from electron app', () => {
|
||||
test(
|
||||
'Rename and delete projects, also spam arrow keys when renaming',
|
||||
{ tag: '@electron' },
|
||||
async ({ context, page}, testInfo) => {
|
||||
async ({ context, page }, testInfo) => {
|
||||
await context.folderSetupFn(async (dir) => {
|
||||
await fsp.mkdir(`${dir}/router-template-slate`, { recursive: true })
|
||||
await fsp.copyFile(
|
||||
@ -770,7 +764,6 @@ test(
|
||||
// expect the name not to have changed
|
||||
await expect(page.getByText('bracket')).toBeVisible()
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -799,7 +792,6 @@ test(
|
||||
// expect to still be on the home page
|
||||
await expect(page.getByText('router-template-slate')).toBeVisible()
|
||||
await expect(page.getByText('Your Projects')).toBeVisible()
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -862,7 +854,6 @@ test.describe(`Project management commands`, () => {
|
||||
await expect(projectHomeLink.first()).toBeVisible()
|
||||
await expect(projectHomeLink.first()).toContainText(projectRenamedName)
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -915,7 +906,6 @@ test.describe(`Project management commands`, () => {
|
||||
await test.step(`Check the project was deleted and we navigated home`, async () => {
|
||||
await expect(noProjectsMessage).toBeVisible()
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
test(
|
||||
@ -971,7 +961,6 @@ test.describe(`Project management commands`, () => {
|
||||
).toBeVisible()
|
||||
await expect(projectHomeLink).not.toHaveText(projectName)
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
test(
|
||||
@ -1021,7 +1010,6 @@ test.describe(`Project management commands`, () => {
|
||||
await expect(projectHomeLink).not.toBeVisible()
|
||||
await expect(noProjectsMessage).toBeVisible()
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
})
|
||||
@ -1067,7 +1055,6 @@ test(
|
||||
await expect(u.codeLocator).toContainText(
|
||||
'A mounting bracket for the Focusrite Scarlett Solo audio interface'
|
||||
)
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1123,10 +1110,11 @@ test(
|
||||
).rejects.toThrow()
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
await expect(
|
||||
fsp.access(path.join(testDir, 'router-template-slate', 'nested', 'main.kcl'))
|
||||
fsp.access(
|
||||
path.join(testDir, 'router-template-slate', 'nested', 'main.kcl')
|
||||
)
|
||||
).rejects.toThrow()
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1205,7 +1193,6 @@ test.fixme(
|
||||
page.getByTestId('project-link').filter({ hasText: 'project-000' })
|
||||
).toBeVisible()
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1243,7 +1230,6 @@ test(
|
||||
await expect(u.codeLocator).toContainText('routerDiameter')
|
||||
await expect(u.codeLocator).toContainText('templateGap')
|
||||
await expect(u.codeLocator).toContainText('minClampingDistance')
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1351,7 +1337,6 @@ test(
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1540,7 +1525,6 @@ test(
|
||||
await expect(page.getByText('router-template-slate')).toBeVisible()
|
||||
await expect(page.getByText('New Project')).toBeVisible()
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1600,9 +1584,9 @@ test(
|
||||
await page.getByTestId('project-directory-button').click()
|
||||
await handleFile
|
||||
|
||||
await expect.poll(() => page.locator('section#projectDirectory input').inputValue()).toContain(
|
||||
newProjectDirName
|
||||
)
|
||||
await expect
|
||||
.poll(() => page.locator('section#projectDirectory input').inputValue())
|
||||
.toContain(newProjectDirName)
|
||||
|
||||
await page.getByTestId('settings-close-button').click()
|
||||
|
||||
@ -1620,7 +1604,6 @@ test(
|
||||
|
||||
await page.getByTestId('project-directory-settings-link').click()
|
||||
|
||||
|
||||
const handleFile = electronApp.evaluate(
|
||||
async ({ dialog }, filePaths) => {
|
||||
dialog.showOpenDialog = () =>
|
||||
@ -1698,7 +1681,6 @@ test(
|
||||
await expect(page.getByText(name)).toBeVisible()
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1804,7 +1786,6 @@ test(
|
||||
false
|
||||
)
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1863,7 +1844,6 @@ test(
|
||||
expect(selectedText.length).toBe(0)
|
||||
await expect(u.codeLocator).toHaveText('')
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
@ -1883,7 +1863,6 @@ test(
|
||||
await expect(page.getByTestId('app-theme')).toHaveValue('dark')
|
||||
|
||||
await page.getByTestId('app-theme').selectOption('light')
|
||||
|
||||
})
|
||||
|
||||
await test.step('Starting the app again and we can see the same theme', async () => {
|
||||
@ -1892,7 +1871,6 @@ test(
|
||||
|
||||
page.on('console', console.log)
|
||||
await expect(page.getByTestId('app-theme')).toHaveValue('light')
|
||||
|
||||
})
|
||||
}
|
||||
)
|
||||
@ -1934,6 +1912,5 @@ test.fixme(
|
||||
await expect(projectLink).toContainText(projectNames[index])
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user