mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:01:26 +00:00
test(e2e): increase the number of retries for error-prone tests
This commit is contained in:
parent
a6a1eaa020
commit
f466e6ec95
@ -66,6 +66,8 @@ test.describe('configure actions', () => {
|
||||
});
|
||||
|
||||
test.describe('configure columns', () => {
|
||||
// 该用例在 CI 并发环境下容易报错,原因未知,通过增加重试次数可以解决
|
||||
test.describe.configure({ retries: process.env.CI ? 4 : 0 });
|
||||
test('action column & display collection fields & display association fields', async ({ page, mockPage }) => {
|
||||
await mockPage(oneEmptyTable).goto();
|
||||
const configureColumnButton = page.getByLabel('schema-initializer-TableV2-TableColumnInitializers-t_unp4scqamw9');
|
||||
|
@ -76,6 +76,9 @@ test.describe('table block schema settings', () => {
|
||||
await expect(page.locator('.ant-pagination')).toHaveText('Total 40 items123410 / page');
|
||||
});
|
||||
|
||||
test.describe('enable drag and drop sorting', () => {
|
||||
// 该用例在 CI 并发环境下容易报错,原因未知,通过增加重试次数可以解决
|
||||
test.describe.configure({ retries: process.env.CI ? 4 : 0 });
|
||||
test('enable drag and drop sorting', async ({ page, mockPage, mockRecords }) => {
|
||||
const nocoPage = await mockPage(oneTableBlockWithAddNewAndViewAndEditAndBasicFields).waitForInit();
|
||||
const records = await mockRecords('general', 3);
|
||||
@ -126,6 +129,7 @@ test.describe('table block schema settings', () => {
|
||||
expect(email2.y).toBeLessThan(email1.y);
|
||||
expect(email1.y).toBeLessThan(email3.y);
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('set the data scope', () => {
|
||||
async function showDialog(page: Page) {
|
||||
@ -186,6 +190,9 @@ test.describe('table block schema settings', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('set default sorting rules', () => {
|
||||
// 该用例在 CI 并发环境下容易报错,原因未知,通过增加重试次数可以解决
|
||||
test.describe.configure({ retries: process.env.CI ? 4 : 0 });
|
||||
test('set default sorting rules', async ({ page, mockPage, mockRecords }) => {
|
||||
const nocoPage = await mockPage(oneTableBlockWithAddNewAndViewAndEditAndBasicFields).waitForInit();
|
||||
const records = await mockRecords('general', 3);
|
||||
@ -217,6 +224,7 @@ test.describe('table block schema settings', () => {
|
||||
expect(email3.y).toBeLessThan(email2.y);
|
||||
expect(email2.y).toBeLessThan(email1.y);
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('connect data blocks', () => {
|
||||
test('connecting two blocks of the same collection', async ({ page, mockPage, mockRecords }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user