chore: fix admin sort flake, fix console warning for test package.json

This commit is contained in:
Jarrod Flesch
2024-04-05 16:39:13 -04:00
parent 31502d2da3
commit 684c4d2113
2 changed files with 4 additions and 5 deletions

View File

@@ -1267,15 +1267,14 @@ describe('admin', () => {
const downChevron = page.locator('#heading-number .sort-column__desc')
await upChevron.click()
await wait(300)
await page.waitForURL(/sort=number/)
await expect(page.locator('.row-1 .cell-number')).toHaveText('1')
await expect(page.locator('.row-2 .cell-number')).toHaveText('2')
await wait(300)
await downChevron.click()
await page.waitForURL(/sort=-number/)
await expect(page.locator('.row-1 .cell-number')).toHaveText('2')
await expect(page.locator('.row-2 .cell-number')).toHaveText('1')
})

View File

@@ -1,5 +1,5 @@
{
"name": "test",
"name": "payload-test-suite",
"version": "0.0.1",
"description": "Payload test suite",
"private": true,