chore: make e2e tests more stable

This commit is contained in:
Zeke Zhang 2024-05-30 09:40:33 +08:00
parent 04449fa486
commit eea3262469

View File

@ -127,7 +127,11 @@ export async function testDefaultValue({
await page.getByLabel('variable-button').click();
await testSupportedAndUnsupportedVariables(page, supportedVariables, unsupportedVariables);
for (const value of variableValue) {
await page.getByRole('menuitemcheckbox', { name: value }).click();
if (value === 'ID') {
await page.getByRole('menuitemcheckbox', { name: value, exact: true }).click();
} else {
await page.getByRole('menuitemcheckbox', { name: value }).click();
}
}
await page.getByRole('button', { name: 'OK', exact: true }).click();