From 072187adb1beca46e3c05cbe9a26093e53f49a61 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 18 Mar 2023 00:00:42 -0400 Subject: [PATCH 1/3] chore: test CI with PAT --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5a2e159f..5816b179 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,6 +84,8 @@ jobs: github.event.pull_request.number && always() uses: peter-evans/create-or-update-comment@v2 + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} From 7b71f4aee343f5b39b75f5d8101c2d764f1c671d Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 18 Mar 2023 00:04:01 -0400 Subject: [PATCH 2/3] chore: test with playwright failure --- playwright/e2e/example01.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright/e2e/example01.spec.ts b/playwright/e2e/example01.spec.ts index 7c6a3894..2f688019 100644 --- a/playwright/e2e/example01.spec.ts +++ b/playwright/e2e/example01.spec.ts @@ -13,7 +13,7 @@ test.describe('Example 01 - Basic Select', () => { await expect(optGroups).toBeDefined(); await expect(optGroups).toHaveCount(3); await expect(liElms).toHaveCount(9); - await expect(optGroups.nth(0)).toContainText('Group 1'); + await expect(optGroups.nth(0)).toContainText('Group 111'); await expect(optGroups.nth(1)).toContainText('Group 2'); await expect(optGroups.nth(2)).toContainText('Group 3'); From a2dd9f77122c25271ef3c5925a2b1d01f1cfd262 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 18 Mar 2023 00:08:02 -0400 Subject: [PATCH 3/3] chore: make all playwright E2E tests pass --- playwright/e2e/example01.spec.ts | 2 +- playwright/playwright.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/e2e/example01.spec.ts b/playwright/e2e/example01.spec.ts index 2f688019..7c6a3894 100644 --- a/playwright/e2e/example01.spec.ts +++ b/playwright/e2e/example01.spec.ts @@ -13,7 +13,7 @@ test.describe('Example 01 - Basic Select', () => { await expect(optGroups).toBeDefined(); await expect(optGroups).toHaveCount(3); await expect(liElms).toHaveCount(9); - await expect(optGroups.nth(0)).toContainText('Group 111'); + await expect(optGroups.nth(0)).toContainText('Group 1'); await expect(optGroups.nth(1)).toContainText('Group 2'); await expect(optGroups.nth(2)).toContainText('Group 3'); diff --git a/playwright/playwright.config.ts b/playwright/playwright.config.ts index 811f0b7a..816280cf 100644 --- a/playwright/playwright.config.ts +++ b/playwright/playwright.config.ts @@ -4,7 +4,7 @@ export default defineConfig({ fullyParallel: true, // reporter: process.env.CI ? 'dot' : 'list', reporter: [['html', { outputFolder: '../playwright-report' }]], - retries: process.env.CI ? 1 : 0, + // retries: process.env.CI ? 1 : 0, testDir: './e2e', timeout: 30 * 1000, expect: {