Remove a test race - poll window info.

This commit is contained in:
lee-at-zoo-corp
2025-04-04 02:01:00 -04:00
parent 25af691911
commit e98a957553

View File

@ -234,11 +234,10 @@ test.describe('Native file menu', { tag: ['@electron'] }, () => {
menu.click()
})
// Check the placeholder project name exists
const actual = await cmdBar.cmdBarElement
.getByTestId('command-name')
.textContent()
const actual = async () =>
cmdBar.cmdBarElement.getByTestId('command-name').textContent()
const expected = 'Delete project'
expect(actual).toBe(expected)
await expect.poll(async () => await actual()).toBe(expected)
})
test('Home.Edit.Change project directory', async ({
tronApp,