Skip to content

Commit 2777233

Browse files
fix(ci): update labeler to pull_request_target and fix E2E goal selector
1 parent 54da38c commit 2777233

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/labeler.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: PR Labeler
22
on:
3-
pull_request:
3+
pull_request_target:
44
jobs:
55
label:
6+
permissions:
7+
contents: read
8+
pull-requests: write
69
runs-on: ubuntu-latest
710
steps:
811
- uses: actions/labeler@v5

e2e/dashboard-widgets.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ test("goal form posts a new goal", async ({ page }) => {
214214
await page.getByLabel("Goal title").fill("Ship one PR");
215215
await page.getByLabel("Target").fill("1");
216216
await page.getByLabel("Unit").selectOption("prs");
217-
await page.getByRole("button", { name: "Add goal" }).click();
217+
await page.getByRole("button", { name: "Create goal" }).click();
218218

219219
await expect.poll(() => goalPosts, { timeout: 15000 }).toHaveLength(1);
220220
expect(goalPosts[0]).toMatchObject({

0 commit comments

Comments
 (0)