Fixing test cases.
This commit is contained in:
parent
3a68b1ae30
commit
ef3f726346
|
@ -102,10 +102,6 @@ export const useAppBuilders = () => {
|
||||||
return useFeature(Feature.APP_BUILDERS)
|
return useFeature(Feature.APP_BUILDERS)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useViewPermissions = () => {
|
|
||||||
return useFeature(Feature.VIEW_PERMISSIONS)
|
|
||||||
}
|
|
||||||
|
|
||||||
export const useViewReadonlyColumns = () => {
|
export const useViewReadonlyColumns = () => {
|
||||||
return useFeature(Feature.VIEW_READONLY_COLUMNS)
|
return useFeature(Feature.VIEW_READONLY_COLUMNS)
|
||||||
}
|
}
|
||||||
|
|
|
@ -763,10 +763,6 @@ describe("/rowsActions", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("role permission checks", () => {
|
describe("role permission checks", () => {
|
||||||
beforeAll(() => {
|
|
||||||
mocks.licenses.useViewPermissions()
|
|
||||||
})
|
|
||||||
|
|
||||||
afterAll(() => {
|
afterAll(() => {
|
||||||
mocks.licenses.useCloudFree()
|
mocks.licenses.useCloudFree()
|
||||||
})
|
})
|
||||||
|
|
|
@ -2297,7 +2297,6 @@ describe.each([
|
||||||
|
|
||||||
describe("permissions", () => {
|
describe("permissions", () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
mocks.licenses.useViewPermissions()
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
Array.from({ length: 10 }, () => config.api.row.save(table._id!, {}))
|
Array.from({ length: 10 }, () => config.api.row.save(table._id!, {}))
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,6 +13,7 @@ export enum Feature {
|
||||||
APP_BUILDERS = "appBuilders",
|
APP_BUILDERS = "appBuilders",
|
||||||
OFFLINE = "offline",
|
OFFLINE = "offline",
|
||||||
EXPANDED_PUBLIC_API = "expandedPublicApi",
|
EXPANDED_PUBLIC_API = "expandedPublicApi",
|
||||||
|
// deprecated - no longer licensed
|
||||||
VIEW_PERMISSIONS = "viewPermissions",
|
VIEW_PERMISSIONS = "viewPermissions",
|
||||||
VIEW_READONLY_COLUMNS = "viewReadonlyColumns",
|
VIEW_READONLY_COLUMNS = "viewReadonlyColumns",
|
||||||
BUDIBASE_AI = "budibaseAI",
|
BUDIBASE_AI = "budibaseAI",
|
||||||
|
|
Loading…
Reference in New Issue