From 2c8fbf1be3598a34b1ecb3ff49acffe14d04b8a4 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 15 Oct 2023 11:08:16 -0400 Subject: [PATCH] chore: adds specificity to tests --- packages/db-postgres/src/queries/getTableColumnFromPath.ts | 1 - test/fields/e2e.spec.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/db-postgres/src/queries/getTableColumnFromPath.ts b/packages/db-postgres/src/queries/getTableColumnFromPath.ts index abdc43247a..13f37c8a48 100644 --- a/packages/db-postgres/src/queries/getTableColumnFromPath.ts +++ b/packages/db-postgres/src/queries/getTableColumnFromPath.ts @@ -305,7 +305,6 @@ export const getTableColumnFromPath = ({ let relationshipFields const relationTableName = `${rootTableName}_rels` const newCollectionPath = pathSegments.slice(1).join('.') - // missing FROM-clause entry for table "relationship_fields_array" const aliasRelationshipTableName = uuid() const aliasRelationshipTable = alias( adapter.tables[relationTableName], diff --git a/test/fields/e2e.spec.ts b/test/fields/e2e.spec.ts index 81c75aea84..0e35a9e0de 100644 --- a/test/fields/e2e.spec.ts +++ b/test/fields/e2e.spec.ts @@ -1093,7 +1093,7 @@ describe('fields', () => { .locator('#field-relationship .relationship-add-new__relation-button--text-fields') .click() - const textField = page.locator('#field-text') + const textField = page.locator('.drawer__content #field-text') const textValue = 'hello' await textField.fill(textValue) @@ -1217,7 +1217,7 @@ describe('fields', () => { .locator('#field-relationship .relationship-add-new__relation-button--text-fields') .click() - await page.locator('#field-text').fill('something') + await page.locator('.drawer__content #field-text').fill('something') await page.locator('[id^=doc-drawer_text-fields_1_] #action-save').click() await expect(page.locator('.Toastify')).toContainText('successfully') @@ -1290,7 +1290,7 @@ describe('fields', () => { await page.getByRole('button', { name: 'Edit Seeded text document' }).click() // Fill 'text' field of 'Seeded text document' - await page.locator('#field-text').fill('some updated text value') + await page.locator('.drawer__content #field-text').fill('some updated text value') // Save drawer (not parent page) with hotkey await saveDocHotkeyAndAssert(page)