mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-22 22:23:07 +00:00
style(C139): prettier no spec campaignContacts
This commit is contained in:
parent
0b4d7913fe
commit
df02e3371a
1 changed files with 12 additions and 5 deletions
|
|
@ -186,9 +186,7 @@ test.describe('Contatos — página da entidade Contact', () => {
|
||||||
await persisted
|
await persisted
|
||||||
await expect(dialog).toBeHidden()
|
await expect(dialog).toBeHidden()
|
||||||
|
|
||||||
const card = page
|
const card = page.locator('[data-view="mobile-cards"] li').filter({ hasText: contactName })
|
||||||
.locator('[data-view="mobile-cards"] li')
|
|
||||||
.filter({ hasText: contactName })
|
|
||||||
await expect(card).toBeVisible()
|
await expect(card).toBeVisible()
|
||||||
await expect(card).toContainText('BA')
|
await expect(card).toContainText('BA')
|
||||||
|
|
||||||
|
|
@ -216,7 +214,12 @@ test.describe('Contatos — página da entidade Contact', () => {
|
||||||
const targetName = uiName(fixtures, 'Ficha Editada')
|
const targetName = uiName(fixtures, 'Ficha Editada')
|
||||||
const target = await fixtures.payload.create({
|
const target = await fixtures.payload.create({
|
||||||
collection: 'contact',
|
collection: 'contact',
|
||||||
data: { name: targetName, phones: [{ value: fixtures.phone() }], state: 'BA', city: 'Salvador' },
|
data: {
|
||||||
|
name: targetName,
|
||||||
|
phones: [{ value: fixtures.phone() }],
|
||||||
|
state: 'BA',
|
||||||
|
city: 'Salvador',
|
||||||
|
},
|
||||||
depth: 0,
|
depth: 0,
|
||||||
})
|
})
|
||||||
// The conflict target: a letters-only name that already exists.
|
// The conflict target: a letters-only name that already exists.
|
||||||
|
|
@ -260,7 +263,11 @@ test.describe('Contatos — página da entidade Contact', () => {
|
||||||
const card = page.locator('[data-view="mobile-cards"] li').filter({ hasText: targetName })
|
const card = page.locator('[data-view="mobile-cards"] li').filter({ hasText: targetName })
|
||||||
await expect(card).toContainText('Feira de Santana · BA')
|
await expect(card).toContainText('Feira de Santana · BA')
|
||||||
|
|
||||||
const stored = await fixtures.payload.findByID({ collection: 'contact', id: target.id, depth: 0 })
|
const stored = await fixtures.payload.findByID({
|
||||||
|
collection: 'contact',
|
||||||
|
id: target.id,
|
||||||
|
depth: 0,
|
||||||
|
})
|
||||||
expect(stored.city).toBe('Feira de Santana')
|
expect(stored.city).toBe('Feira de Santana')
|
||||||
expect(stored.name).toBe(targetName)
|
expect(stored.name).toBe(targetName)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue