mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:47:20 +00:00
feat(e2e): add test.pgOnly (#2923)
This commit is contained in:
parent
29bf187fbf
commit
1ec2d00208
@ -165,7 +165,7 @@ class NocoPage {
|
||||
}
|
||||
}
|
||||
|
||||
export const test = base.extend<{
|
||||
const _test = base.extend<{
|
||||
mockPage: (config?: PageConfig) => NocoPage;
|
||||
createCollections: (collectionSettings: CollectionSetting | CollectionSetting[]) => Promise<void>;
|
||||
}>({
|
||||
@ -206,6 +206,11 @@ export const test = base.extend<{
|
||||
},
|
||||
});
|
||||
|
||||
export const test = Object.assign(_test, {
|
||||
/** 只运行在 postgres 数据库中 */
|
||||
pgOnly: process.env.DB_DIALECT == 'postgres' ? _test : _test.skip,
|
||||
});
|
||||
|
||||
const getStorageItem = (key: string, storageState: any) => {
|
||||
return storageState.origins
|
||||
.find((item) => item.origin === `http://localhost:${process.env.APP_PORT}`)
|
||||
|
Loading…
Reference in New Issue
Block a user