mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-29 09:03:08 +00:00
fix: prettier format
This commit is contained in:
parent
f1af316f71
commit
4979cc1767
3 changed files with 43 additions and 14 deletions
|
|
@ -22,7 +22,9 @@ const CAMPAIGN_APP = 'src/app/(campaign)/campanha/(app)'
|
||||||
* it requires editing the invariant pin on purpose.
|
* it requires editing the invariant pin on purpose.
|
||||||
*/
|
*/
|
||||||
export const E2E_CURATED_SPECS = [
|
export const E2E_CURATED_SPECS = [
|
||||||
'campaignPermissionProfile',
|
// OPS87 — deliberate: the permission-profile family moved to the
|
||||||
|
// browserless HTTP mode (same coverage, new spec name).
|
||||||
|
'campaignPermissionProfileHttp',
|
||||||
'campaignDemandVisibility',
|
'campaignDemandVisibility',
|
||||||
'campaignAiTranscribe',
|
'campaignAiTranscribe',
|
||||||
'campaignAgendaFeed',
|
'campaignAgendaFeed',
|
||||||
|
|
@ -197,7 +199,7 @@ export const E2E_AFFECTED_MANIFEST = [
|
||||||
// invariant pins require the pair to stay in sync.
|
// invariant pins require the pair to stay in sync.
|
||||||
{
|
{
|
||||||
prefixes: ['src/utilities/access', 'src/utilities/campaignAccess.ts'],
|
prefixes: ['src/utilities/access', 'src/utilities/campaignAccess.ts'],
|
||||||
specs: ['campaignPermissionProfile', 'campaignDemandVisibility'],
|
specs: ['campaignPermissionProfileHttp', 'campaignDemandVisibility'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prefixes: ['src/utilities/ai'],
|
prefixes: ['src/utilities/ai'],
|
||||||
|
|
|
||||||
|
|
@ -13,18 +13,43 @@ import type { CampaignUser } from '../../src/payload-types.js'
|
||||||
* merged person row, and the route stays locked for leaders.
|
* merged person row, and the route stays locked for leaders.
|
||||||
*/
|
*/
|
||||||
test.describe('Pessoas — lista unificada', () => {
|
test.describe('Pessoas — lista unificada', () => {
|
||||||
|
/**
|
||||||
|
* OPS87 — client slice of `campaignPeople` after the HTTP migration. The
|
||||||
|
* server-side assertions (list render, C130 columns, party filter, name link,
|
||||||
|
* leader redirects, detail sections, C117 URL contracts) moved to
|
||||||
|
* tests/e2e/campaignPeopleHttp.e2e.spec.ts with the original test names, 1:1;
|
||||||
|
* what remains here is the interaction only a browser can exercise: omnibox
|
||||||
|
* typing, sortable-header clicks with `aria-sort`, mobile card ordering, and
|
||||||
|
* the cell combobox/dialog writes (C125/C128/C131).
|
||||||
|
*
|
||||||
|
* HTTP twin: tests/e2e/campaignPeopleHttp.e2e.spec.ts.
|
||||||
|
*/
|
||||||
|
test('the omnibox narrows the people recorte', async ({ campaign, page }) => {
|
||||||
|
const { fixtures } = campaign
|
||||||
|
const coordinator = await fixtures.createCampaignUser('coordinator', {
|
||||||
|
name: fixtures.value('Coordenadora Pessoas'),
|
||||||
|
})
|
||||||
|
const municipality = await fixtures.claimMunicipality()
|
||||||
|
const { contactName } = await fixtures.createStaffLeadership({
|
||||||
|
namePrefix: 'Liderança Pessoas',
|
||||||
|
municipalities: [municipality],
|
||||||
|
})
|
||||||
|
|
||||||
|
await campaign.login(page, coordinator.email!, coordinator.password)
|
||||||
|
|
||||||
|
await page.goto('/campanha/pessoas')
|
||||||
|
await expect(campaignPageChrome(page, 'Pessoas')).toBeVisible()
|
||||||
|
|
||||||
|
// The omnibox search narrows the recorte (canonical URL, chips mounted).
|
||||||
|
const omnibox = page.getByRole('combobox', { name: 'Filtrar pessoas' })
|
||||||
|
await omnibox.fill(contactName.slice(0, 8))
|
||||||
|
await omnibox.press('Enter')
|
||||||
|
await expect(page).toHaveURL(/q=/)
|
||||||
|
// The filter navigation re-streams the list — let it commit before the row.
|
||||||
|
await page.waitForFunction(() => document.querySelectorAll('div[id^="S:"]').length === 0)
|
||||||
|
await expect(page.getByRole('row', { name: new RegExp(contactName) })).toBeVisible()
|
||||||
|
})
|
||||||
|
|
||||||
/**
|
|
||||||
* OPS87 — client slice of `campaignPeople` after the HTTP migration. The
|
|
||||||
* server-side assertions (list render, C130 columns, party filter, name link,
|
|
||||||
* leader redirects, detail sections, C117 URL contracts) moved to
|
|
||||||
* tests/e2e/campaignPeopleHttp.e2e.spec.ts with the original test names, 1:1;
|
|
||||||
* what remains here is the interaction only a browser can exercise: omnibox
|
|
||||||
* typing, sortable-header clicks with `aria-sort`, mobile card ordering, and
|
|
||||||
* the cell combobox/dialog writes (C125/C128/C131).
|
|
||||||
*
|
|
||||||
* HTTP twin: tests/e2e/campaignPeopleHttp.e2e.spec.ts.
|
|
||||||
*/
|
|
||||||
test('staff sorts by a column header and filters absence via the omnibox (C117)', async ({
|
test('staff sorts by a column header and filters absence via the omnibox (C117)', async ({
|
||||||
campaign,
|
campaign,
|
||||||
page,
|
page,
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,9 @@ describe('E2E_AFFECTED_MANIFEST (OPS5)', () => {
|
||||||
// The curated set is the never-zero answer for high-risk PR diffs; change
|
// The curated set is the never-zero answer for high-risk PR diffs; change
|
||||||
// it on purpose (cost of the PR CI high-risk path), not by drift.
|
// it on purpose (cost of the PR CI high-risk path), not by drift.
|
||||||
expect(E2E_CURATED_SPECS).toEqual([
|
expect(E2E_CURATED_SPECS).toEqual([
|
||||||
'campaignPermissionProfile',
|
// OPS87 — deliberate: the permission-profile family moved to the
|
||||||
|
// browserless HTTP mode (same coverage, new spec name).
|
||||||
|
'campaignPermissionProfileHttp',
|
||||||
'campaignDemandVisibility',
|
'campaignDemandVisibility',
|
||||||
'campaignAiTranscribe',
|
'campaignAiTranscribe',
|
||||||
'campaignAgendaFeed',
|
'campaignAgendaFeed',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue