Browse Source

feat(testing): Enabled fail on only and added test code for roles preview issue

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
057415adda
  1. 2
      packages/nc-gui/composables/useApi/index.ts
  2. 3
      scripts/playwright/playwright.config.ts

2
packages/nc-gui/composables/useApi/index.ts

@ -41,6 +41,8 @@ export function useApi<Data = any, RequestConfig = any>({
*/
const { count, inc, dec } = useCounter(0)
watchEffect(() => console.log('useApi: count', count.value))
/** is request loading */
const isLoading = ref(false)

3
scripts/playwright/playwright.config.ts

@ -24,8 +24,7 @@ const config: PlaywrightTestConfig = {
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
// forbidOnly: !!process.env.CI,
forbidOnly: false,
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */

Loading…
Cancel
Save