# 3.3.2: Resolving Failed Checks: GitHub Action failed to run

**URL:** <https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893>\
**Category:** Discussions\
**Tags:** learning, automation, curriculum-automation, mot-fcta\
**Created:** [30 May 2024 11:41 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893 "2024-05-30T11:41:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelly.kenyon](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/kelly.kenyon/32/11117_2.png) [@kelly.kenyon](https://club.ministryoftesting.com/u/kelly.kenyon)\
**Post date:** [30 May 2024 11:41 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/1 "2024-05-30T11:41:00Z")

</div>

I am working on the Foundation Certificate and am currently on module 3.3.2

I have fixed the tests and they are passing locally- but unfortunately I can’t work out why CI won’t build /Pass.

My Repo is [here](https://github.com/K10hrn/mot-cert-support-app-js) if anyone can see something obvious I am missing!

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![a\_mcanirn](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/a_mcanirn/32/13559_2.png) [@a\_mcanirn](https://club.ministryoftesting.com/u/a_mcanirn)\
**Post date:** [1 June 2024 01:18 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/2 "2024-06-01T01:18:43Z")

</div>

So the last GitHub Actions run you have seemed to fail due to the test `should show projects after creation`, where you check the table length - [mot-cert-support-app-js/test/specs/Projects.e2e.js at main · K10hrn/mot-cert-support-app-js · GitHub](https://github.com/K10hrn/mot-cert-support-app-js/blob/main/test/specs/Projects.e2e.js#L37-L38). I also see this issue when running locally.

I haven’t used WDIO in ages and couldn’t find a nice way to get the table element, so I just added a testid to save me the grief. I tried pushing the code to your repo but it must have access locked down.

Update the below:

> <https://github.com/K10hrn/mot-cert-support-app-js/blob/main/src/components/ProjectList.js#L30>

To:

```auto
<ul className="list-group" data-testid="project-table">

```

Then update your test to:

```auto
const projectTableRows = await $$('ul[data-testid="project-table"] tr')
expect(projectTableRows).toBeElementsArrayOfSize(2);

```

If that doesn’t work let me know and I can help you walk through the issues.

---

<div class="post-metadata">

**Author:** ![mwinteringham](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/mwinteringham/32/9023_2.png) [@mwinteringham](https://club.ministryoftesting.com/u/mwinteringham)\
**Post date:** [3 June 2024 13:42 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/3 "2024-06-03T13:42:17Z")

</div>

What @a_mcanirn has suggested is a good place to start @kelly.kenyon. Any issues though, let me know and I’ll see how I can help now that I am back from break 🙂

---

<div class="post-metadata">

**Author:** ![kelly.kenyon](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/kelly.kenyon/32/11117_2.png) [@kelly.kenyon](https://club.ministryoftesting.com/u/kelly.kenyon)\
**Post date:** [4 June 2024 11:00 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/4 "2024-06-04T11:00:37Z")

</div>

Thank you!

Where would I put the new code/ will I need to remove any existing for the test?

---

<div class="post-metadata">

**Author:** ![a\_mcanirn](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/a_mcanirn/32/13559_2.png) [@a\_mcanirn](https://club.ministryoftesting.com/u/a_mcanirn)\
**Post date:** [4 June 2024 17:46 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/5 "2024-06-04T17:46:12Z")

</div>

The issue you are having appears to be around getting the table element for checking if 2 rows exist.

You could either update your locator or implement the test id option I mention above. The link above is for your repo and should take you to line 30 of `mot-cert-support-app-js/blob/main/src/components/ProjectList.js`. Update that line to `<ul className="list-group" data-testid="` and you can then use the locator `$$('ul[data-testid="project-table`.

Let me know how you get on.

---

<div class="post-metadata">

**Author:** ![kelly.kenyon](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/kelly.kenyon/32/11117_2.png) [@kelly.kenyon](https://club.ministryoftesting.com/u/kelly.kenyon)\
**Post date:** [5 June 2024 14:26 UTC](https://club.ministryoftesting.com/t/3-3-2-resolving-failed-checks-github-action-failed-to-run/76893/7 "2024-06-05T14:26:00Z")

</div>

Thank you so much, this has worked a dream!
