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 todos = await answer.locator('affine-list').all();
|
||||||
|
|
||||||
const expectedTexts = [
|
const expectedTexts = [
|
||||||
'Choose a Booking Platform',
|
/Choose a Booking Platform/i,
|
||||||
'Enter Travel Details',
|
/Enter Travel Details/i,
|
||||||
'Compare and Select Flights',
|
/Compare and Select Flights/i,
|
||||||
];
|
];
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
@@ -55,9 +55,9 @@ Compare and Select Flights`
|
|||||||
const { answer, responses } = await findActions();
|
const { answer, responses } = await findActions();
|
||||||
const todos = await answer.locator('affine-list').all();
|
const todos = await answer.locator('affine-list').all();
|
||||||
const expectedTexts = [
|
const expectedTexts = [
|
||||||
'Choose a Booking Platform',
|
/Choose a Booking Platform/i,
|
||||||
'Enter Travel Details',
|
/Enter Travel Details/i,
|
||||||
'Compare and Select Flights',
|
/Compare and Select Flights/i,
|
||||||
];
|
];
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
todos.map(async (todo, index) => {
|
todos.map(async (todo, index) => {
|
||||||
@@ -87,9 +87,9 @@ Compare and Select Flights`
|
|||||||
const { answer, responses } = await findActions();
|
const { answer, responses } = await findActions();
|
||||||
const todos = await answer.locator('affine-list').all();
|
const todos = await answer.locator('affine-list').all();
|
||||||
const expectedTexts = [
|
const expectedTexts = [
|
||||||
'Choose a Booking Platform',
|
/Choose a Booking Platform/i,
|
||||||
'Enter Travel Details',
|
/Enter Travel Details/i,
|
||||||
'Compare and Select Flights',
|
/Compare and Select Flights/i,
|
||||||
];
|
];
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
todos.map(async (todo, index) => {
|
todos.map(async (todo, index) => {
|
||||||
@@ -128,9 +128,9 @@ Compare and Select Flights`
|
|||||||
const todos = await panelAnswer.locator('affine-list').all();
|
const todos = await panelAnswer.locator('affine-list').all();
|
||||||
|
|
||||||
const expectedTexts = [
|
const expectedTexts = [
|
||||||
'Choose a Booking Platform',
|
/Choose a Booking Platform/i,
|
||||||
'Enter Travel Details',
|
/Enter Travel Details/i,
|
||||||
'Compare and Select Flights',
|
/Compare and Select Flights/i,
|
||||||
];
|
];
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
todos.map(async (todo, index) => {
|
todos.map(async (todo, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user