mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user