Skip to content

Commit 7205619

Browse files
committed
try fix e2e
1 parent ea6bdea commit 7205619

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ui-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Run installer tests
2727
run: yarn test:e2e:install
2828
- name: Run app tests
29-
run: yarn test:e2e
29+
run: yarn test:e2e --workers 1
3030
- uses: actions/upload-artifact@v4
3131
if: failure()
3232
with:

e2e/dogfooding.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('DOG FOODING TIME - Create a service that uses the StackCraft GitHub reposi
1616
await login(page)
1717

1818
// Create stack
19-
await page.locator('button', { hasText: 'Create Stack' }).first().click()
19+
await page.locator('button, a', { hasText: 'Create Stack' }).first().click()
2020
await expect(page.locator('shade-create-stack')).toBeVisible()
2121

2222
await page.locator('input[name="name"]').fill(stackName)

e2e/smoke.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test.describe.serial('App Flow', () => {
4444
await page.locator('button', { hasText: 'Create' }).click()
4545

4646
await expect(page.locator('shade-dashboard')).toBeVisible()
47-
await expect(page.locator(`text=${displayName}`)).toBeVisible()
47+
await expect(page.getByTestId('page-header-title')).toContainText(displayName)
4848

4949
// Create a repository - FuryStack (https://github.com/furystack/furystack)
5050
await page.locator('button', { hasText: 'Add Repository' }).first().click()
@@ -55,7 +55,7 @@ test.describe.serial('App Flow', () => {
5555
await page.locator('button', { hasText: 'Add' }).click()
5656

5757
await expect(page.locator('shade-dashboard')).toBeVisible()
58-
await expect(page.locator(`text=${displayName}`)).toBeVisible()
58+
await expect(page.getByTestId('page-header-title')).toContainText(displayName)
5959

6060
await page.locator('button', { hasText: 'Create Service' }).first().click()
6161
await expect(page.locator('shade-create-service-wizard')).toBeVisible()

0 commit comments

Comments
 (0)