Skip to content

Commit 5c1cda2

Browse files
committed
photo added to event test
1 parent 78330d3 commit 5c1cda2

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default defineConfig({
7878

7979
/* Run your local dev server before starting the tests */
8080
webServer: {
81-
command: 'npm run start',
81+
command: 'npm run start:local',
8282
url: 'http://localhost:4200',
8383
reuseExistingServer: !process.env.CI,
8484
stderr: "pipe",

tests/basic-user-flow.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('create-profile-and-create-event', async ({ page, context }) => {
99
const timestamp = Date.now();
1010
const uniqueEmail = `playwright_test_${timestamp}@email.com`;
1111

12-
await page.goto('https://noun.lazz.tech/app/landing');
12+
await page.goto('http://localhost:4200/');
1313
await page.getByRole('button', { name: 'Continue As Guest' }).click();
1414
await expect(page.locator('app-home')).toContainText('Set your name and claim your account! This ensures you\'re able to recover your account if signed out.');
1515
await page.getByText('Set your name and claim your').click();
@@ -42,8 +42,9 @@ test('create-profile-and-create-event', async ({ page, context }) => {
4242
await page.getByRole('button', { name: 'Select Location' }).click();
4343
await page.getByRole('button', { name: 'Upload Image' }).click();
4444
await page.getByRole('button', { name: 'Select Picture' }).click();
45-
await page.setInputFiles('input[type="file"]', 'tests/fixtures/test-image.png');
45+
await page.setInputFiles('input[type="file"]', 'resources/icon.png');
4646
await page.getByRole('button', { name: 'Create' }).click();
4747
await expect(page.locator('ion-card-title')).toContainText('playwright_test_event');
48-
await expect(page.locator('app-hub-card ion-img img')).toBeVisible();
48+
await page.waitForSelector('app-event-card img', { state: 'visible', timeout: 10000 });
49+
await expect(page.locator('app-event-card img')).toBeVisible();
4950
});

0 commit comments

Comments
 (0)