Skip to content

Commit

Permalink
e2e(guest-dashboard): fix app ids for new store
Browse files Browse the repository at this point in the history
  • Loading branch information
nicotsx committed Dec 8, 2024
1 parent 355b679 commit 316a688
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/0005-guest-dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { clearDatabase, db } from './helpers/db';
import { setSettings } from './helpers/settings';

test.beforeEach(async () => {
// test.fixme(true, 'Not working yet');
await clearDatabase();
await setSettings({});
});
Expand All @@ -23,10 +22,12 @@ test('user can activate the guest dashboard and see it when logged out', async (
});

test('logged out users can see the apps on the guest dashboard', async ({ browser }) => {
const store = await db.query.appStore.findFirst();

await db.insert(app).values({
config: {},
isVisibleOnGuestDashboard: true,
id: 'hello-world',
id: `hello-world_${store?.id}`,
exposed: true,
exposedLocal: true,
domain: 'duckduckgo.com',
Expand All @@ -37,7 +38,7 @@ test('logged out users can see the apps on the guest dashboard', async ({ browse
config: {},
openPort: true,
isVisibleOnGuestDashboard: false,
id: 'actual-budget',
id: `actual-budget_${store?.id}`,
exposed: false,
exposedLocal: false,
status: 'running',
Expand Down

0 comments on commit 316a688

Please sign in to comment.