diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index dfb96405a..36d658605 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,22 +1,17 @@ name: E2E on: - pull_request_target: + pull_request: branches: ['**'] paths-ignore: - '**/*.md' - 'static/**/*' -env: - VITE_STRIPE_PUBLIC_KEY: ${{ vars.VITE_STRIPE_PUBLIC_KEY }} - jobs: e2e: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a93dc1709..a06ab052c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/playwright.config.ts b/playwright.config.ts index d330159b0..00bf89667 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -8,7 +8,9 @@ const config: PlaywrightTestConfig = { timeout: 120000, env: { VITE_APPWRITE_ENDPOINT: 'http://console-tests.appwrite.org/v1', - VITE_CONSOLE_MODE: 'cloud' + VITE_CONSOLE_MODE: 'cloud', + VITE_STRIPE_PUBLIC_KEY: + 'pk_test_51LT5nsGYD1ySxNCyd7b304wPD8Y1XKKWR6hqo6cu3GIRwgvcVNzoZv4vKt5DfYXL1gRGw4JOqE19afwkJYJq1g3K004eVfpdWn' }, command: 'npm run build && npm run preview', port: 4173 diff --git a/src/app.html b/src/app.html index a53c61628..1be8a9cf9 100644 --- a/src/app.html +++ b/src/app.html @@ -135,6 +135,25 @@ %sveltekit.head% +
%sveltekit.body%
diff --git a/src/routes/console/organization-[organization]/wizard/step2.svelte b/src/routes/console/organization-[organization]/wizard/step2.svelte index 784d65a6f..24e462dcf 100644 --- a/src/routes/console/organization-[organization]/wizard/step2.svelte +++ b/src/routes/console/organization-[organization]/wizard/step2.svelte @@ -26,7 +26,7 @@ addNotification({ type: 'success', isHtml: true, - message: `You will be notified when ${selectedRegion.name} region is available` + message: `You will be notified via email when ${selectedRegion.name} region is available` }); } catch (error) { addNotification({ @@ -48,7 +48,7 @@ addNotification({ type: 'info', isHtml: true, - message: `You won't be notified anymore when the ${selectedRegion.name} region is available` + message: `You will no longer be notified when the ${selectedRegion.name} region is available` }); } catch (error) { addNotification({ diff --git a/tests/e2e/steps/pro-project.ts b/tests/e2e/steps/pro-project.ts index 2297dbedb..c01d3c39a 100644 --- a/tests/e2e/steps/pro-project.ts +++ b/tests/e2e/steps/pro-project.ts @@ -24,7 +24,8 @@ export async function createProProject(page: Page): Promise { await page.locator('id=plan').selectOption('tier-1'); await page.getByRole('button', { name: 'get started' }).click(); await page.waitForURL('/console/create-organization**'); - await page.getByRole('button', { name: 'Add' }).first().click(); + await new Promise((r) => setTimeout(r, 1000)); + await page.getByRole('button', { name: 'add' }).first().click(); await enterCreditCard(page); // skip members await page.getByRole('button', { name: 'create organization' }).click();