fix(core): ai find-actions falky (#12257)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Tests**
  - Updated test assertions to use case-insensitive matching for verifying displayed text, improving test reliability across different text casing scenarios.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

> Close  AF-2616
This commit is contained in:
yoyoyohamapi
2025-05-14 02:05:45 +00:00
parent a2a90df276
commit fb16caf192

View File

@@ -22,9 +22,9 @@ Compare and Select Flights`
const todos = await answer.locator('affine-list').all();
const expectedTexts = [
'Choose a Booking Platform',
'Enter Travel Details',
'Compare and Select Flights',
/Choose a Booking Platform/i,
/Enter Travel Details/i,
/Compare and Select Flights/i,
];
await Promise.all(
@@ -55,9 +55,9 @@ Compare and Select Flights`
const { answer, responses } = await findActions();
const todos = await answer.locator('affine-list').all();
const expectedTexts = [
'Choose a Booking Platform',
'Enter Travel Details',
'Compare and Select Flights',
/Choose a Booking Platform/i,
/Enter Travel Details/i,
/Compare and Select Flights/i,
];
await Promise.all(
todos.map(async (todo, index) => {
@@ -87,9 +87,9 @@ Compare and Select Flights`
const { answer, responses } = await findActions();
const todos = await answer.locator('affine-list').all();
const expectedTexts = [
'Choose a Booking Platform',
'Enter Travel Details',
'Compare and Select Flights',
/Choose a Booking Platform/i,
/Enter Travel Details/i,
/Compare and Select Flights/i,
];
await Promise.all(
todos.map(async (todo, index) => {
@@ -128,9 +128,9 @@ Compare and Select Flights`
const todos = await panelAnswer.locator('affine-list').all();
const expectedTexts = [
'Choose a Booking Platform',
'Enter Travel Details',
'Compare and Select Flights',
/Choose a Booking Platform/i,
/Enter Travel Details/i,
/Compare and Select Flights/i,
];
await Promise.all(
todos.map(async (todo, index) => {