From 057415addaa36eeb267d81bf4b5a6d0c7812d0b9 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 31 Oct 2022 16:38:08 +0530 Subject: [PATCH] feat(testing): Enabled fail on only and added test code for roles preview issue --- packages/nc-gui/composables/useApi/index.ts | 2 ++ scripts/playwright/playwright.config.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useApi/index.ts b/packages/nc-gui/composables/useApi/index.ts index 57f86042b9..7aa794f63c 100644 --- a/packages/nc-gui/composables/useApi/index.ts +++ b/packages/nc-gui/composables/useApi/index.ts @@ -41,6 +41,8 @@ export function useApi({ */ const { count, inc, dec } = useCounter(0) + watchEffect(() => console.log('useApi: count', count.value)) + /** is request loading */ const isLoading = ref(false) diff --git a/scripts/playwright/playwright.config.ts b/scripts/playwright/playwright.config.ts index 0250f8d045..a0f23d5df1 100644 --- a/scripts/playwright/playwright.config.ts +++ b/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. */