Merge branch 'appwrite:main' into fix-storage-wizard-and-upload-progress

This commit is contained in:
Darshan
2024-07-17 14:46:42 +05:30
committed by GitHub
6 changed files with 28 additions and 11 deletions
+1 -6
View File
@@ -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:
+1 -1
View File
@@ -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:
+3 -1
View File
@@ -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
+19
View File
@@ -135,6 +135,25 @@
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<script>
let themeInUse = 'auto';
const appwrite = localStorage.getItem('appwrite');
if (appwrite) {
try {
const localPrefs = JSON.parse(appwrite);
if (localPrefs) themeInUse = localPrefs.theme;
} catch (ignore) {
// Ignore any errors during JSON parsing
}
}
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
themeInUse =
themeInUse === 'auto' ? (systemPrefersDark ? 'dark' : 'light') : themeInUse;
document.body.setAttribute('class', `theme-${themeInUse}`);
</script>
<div id="svelte">%sveltekit.body%</div>
</body>
</html>
@@ -26,7 +26,7 @@
addNotification({
type: 'success',
isHtml: true,
message: `You will be notified when <b>${selectedRegion.name}</b> region is available`
message: `You will be notified via email when <b>${selectedRegion.name}</b> region is available`
});
} catch (error) {
addNotification({
@@ -48,7 +48,7 @@
addNotification({
type: 'info',
isHtml: true,
message: `You won't be notified anymore when the <b>${selectedRegion.name}</b> region is available`
message: `You will no longer be notified when the <b>${selectedRegion.name}</b> region is available`
});
} catch (error) {
addNotification({
+2 -1
View File
@@ -24,7 +24,8 @@ export async function createProProject(page: Page): Promise<Metadata> {
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();