@@ -13,6 +13,7 @@ import {
|
||||
initPageConsoleErrorCatch,
|
||||
openDocControls,
|
||||
openNav,
|
||||
saveDocAndAssert,
|
||||
} from '../helpers.js'
|
||||
import { AdminUrlUtil } from '../helpers/adminUrlUtil.js'
|
||||
import { initPayloadE2E } from '../helpers/initPayloadE2E.js'
|
||||
@@ -248,7 +249,7 @@ describe('access control', () => {
|
||||
await expect(deleteAction).toBeHidden()
|
||||
|
||||
await page.locator('#field-approvedForRemoval').check()
|
||||
await page.locator('#action-save').click()
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
await openDocControls(page)
|
||||
const deleteAction2 = page.locator('#action-delete')
|
||||
@@ -272,7 +273,7 @@ describe('access control', () => {
|
||||
|
||||
// Allow access to test global.
|
||||
await page.locator('.checkbox-input:has(#field-test) input').check()
|
||||
await page.locator('#action-save').click()
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
await openNav(page)
|
||||
|
||||
|
||||
@@ -1386,7 +1386,8 @@ describe('fields', () => {
|
||||
await expect(dateField).toBeVisible()
|
||||
await dateField.fill('02/07/2023')
|
||||
await expect(dateField).toHaveValue('02/07/2023')
|
||||
await page.locator('#action-save').click()
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
const clearButton = page.locator('#field-default .date-time-picker__clear-button')
|
||||
await expect(clearButton).toBeVisible()
|
||||
await clearButton.click()
|
||||
@@ -1409,10 +1410,7 @@ describe('fields', () => {
|
||||
|
||||
// enter date in default date field
|
||||
await dateField.fill('02/07/2023')
|
||||
await page.locator('#action-save').click()
|
||||
|
||||
// wait for navigation to update route
|
||||
await expect.poll(() => page.url(), { timeout: 1000 }).not.toContain('create')
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
// get the ID of the doc
|
||||
const routeSegments = page.url().split('/')
|
||||
@@ -1473,10 +1471,7 @@ describe('fields', () => {
|
||||
|
||||
// enter date in default date field
|
||||
await dateField.fill('02/07/2023')
|
||||
await page.locator('#action-save').click()
|
||||
|
||||
// wait for navigation to update route
|
||||
await expect.poll(() => page.url(), { timeout: 1000 }).not.toContain('create')
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
// get the ID of the doc
|
||||
const routeSegments = page.url().split('/')
|
||||
|
||||
@@ -32,7 +32,7 @@ async function navigateToLexicalFields() {
|
||||
const url: AdminUrlUtil = new AdminUrlUtil(serverURL, 'lexical-fields')
|
||||
await page.goto(url.list)
|
||||
const linkToDoc = page.locator('tbody tr:first-child .cell-title a').first()
|
||||
await expect(() => expect(linkToDoc).toBeTruthy()).toPass({ timeout: 45000 })
|
||||
await expect(() => expect(linkToDoc).toBeTruthy()).toPass({ timeout: POLL_TOPASS_TIMEOUT })
|
||||
const linkDocHref = await linkToDoc.getAttribute('href')
|
||||
|
||||
await linkToDoc.click()
|
||||
@@ -718,7 +718,7 @@ describe('lexical', () => {
|
||||
await expect(nestedEditorParagraph).toHaveText('Some text below relationship node 12345')
|
||||
})
|
||||
|
||||
test.skip('should respect row removal in nested array field', async () => {
|
||||
test('should respect row removal in nested array field', async () => {
|
||||
await navigateToLexicalFields()
|
||||
const richTextField = page.locator('.rich-text-lexical').nth(1) // second
|
||||
await richTextField.scrollIntoViewIfNeeded()
|
||||
|
||||
Reference in New Issue
Block a user