fix: do not pass as input game session turns with "advance time event" #571
web_CICD.yml
on: push
Build and Deploy
1m 31s
Lint
36s
Close Pull Request
0s
Test
1m 5s
Annotations
9 errors
Lint
Process completed with exit code 1.
|
test/component_tests/App.test.tsx:
web/test/test_lib/testUtils.ts#L33
AssertionError: Backend API host 'https://game-api1.azurewebsites.net' is not reachable
❯ Module.verifyBackendApiIsReachable test/test_lib/testUtils.ts:33:12
❯ test/vitest.setup.ts:7:3
|
test/component_tests/IntroDialog.test.tsx:
web/test/test_lib/testUtils.ts#L33
AssertionError: Backend API host 'https://game-api1.azurewebsites.net' is not reachable
❯ Module.verifyBackendApiIsReachable test/test_lib/testUtils.ts:33:12
❯ test/vitest.setup.ts:7:3
|
test/component_tests/OutroDialog.test.tsx:
web/test/test_lib/testUtils.ts#L33
AssertionError: Backend API host 'https://game-api1.azurewebsites.net' is not reachable
❯ Module.verifyBackendApiIsReachable test/test_lib/testUtils.ts:33:12
❯ test/vitest.setup.ts:7:3
|
test/delegate_to_ai/DelegateToAITurns.test.tsx > Test suite for delegating turns to AI > Delegate turns 1 to 2 from uninitialized game session, twice:
web/test/test_lib/testUtils.ts#L73
TestingLibraryElementError: Unable to find an element with the text: Error:. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
...
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ expectElementWithText test/test_lib/testUtils.ts:73:16
❯ Module.expectDiv test/test_lib/testUtils.ts:48:3
❯ GameSessionControlPanelFixture.assertNoError test/test_fixtures/GameSessionControlPanelFixture.ts:105:5
❯ test/delegate_to_ai/DelegateToAITurns.test.tsx:34:18
|
test/delegate_to_ai/DelegateToAITurns.test.tsx > Test suite for delegating turns to AI > Delegate turns 1 to 2 from uninitialized game session, twice:
web/test/test_lib/testUtils.ts#L73
TestingLibraryElementError: Unable to find an element with the text: Error:. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
...
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ expectElementWithText test/test_lib/testUtils.ts:73:16
❯ Module.expectDiv test/test_lib/testUtils.ts:48:3
❯ GameSessionControlPanelFixture.assertNoError test/test_fixtures/GameSessionControlPanelFixture.ts:105:5
❯ test/delegate_to_ai/DelegateToAITurns.test.tsx:34:18
|
test/delegate_to_ai/DelegateToAITurnsComplex.test.tsx > Test suite for delegating turns to AI > Delegate turns to AI - boundary cases:
web/test/test_lib/testUtils.ts#L119
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Reset game"
Here are the accessible roles:
presentation:
Name "":
...
Name "":
...
--------------------------------------------------
dialog:
Name "Situation Report":
...
--------------------------------------------------
heading:
Name "Situation Report":
...
--------------------------------------------------
paragraph:
Name "":
...
Name "":
...
--------------------------------------------------
button:
Name "I am sorry":
...
--------------------------------------------------
Ignored nodes: comments, script, style
...
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ expectButtonsToBe test/test_lib/testUtils.ts:119:45
❯ Module.expectButtonsToBeEnabled test/test_lib/testUtils.ts:106:3
❯ GameSessionControlPanelFixture.assertTurn test/test_fixtures/GameSessionControlPanelFixture.ts:101:5
❯ GameSessionControlPanelFixture.delegateTurnsToAi test/test_fixtures/GameSessionControlPanelFixture.ts:50:10
|
test/delegate_to_ai/DelegateToAITurnsComplex.test.tsx > Test suite for delegating turns to AI > Delegate turns to AI - boundary cases:
web/test/test_lib/testUtils.ts#L122
Error: expect(element).toBeEnabled()
Received element is not enabled:
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-sghohy-MuiButtonBase-root-MuiButton-root"
disabled=""
tabindex="-1"
type="button"
/>
Ignored nodes: comments, script, style
...
❯ expectButtonsToBe test/test_lib/testUtils.ts:122:27
❯ expectButtonsToBeEnabled test/test_lib/testUtils.ts:106:3
❯ expectButtonToBeEnabled test/test_lib/testUtils.ts:102:3
❯ waitFor.timeout test/test_lib/testUtils.ts:146:7
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
Test
Process completed with exit code 1.
|