Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefine galleryApi endpoint by introducing library for SignalR testing #107

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3973745
Set up unit tests for gallery ui - app
JanSafronov May 17, 2024
ae20628
Merge pull request #1 from Olszewskidev/main
JanSafronov May 17, 2024
d9bf86c
Setup gallery-ui middleware unit tests
JanSafronov May 18, 2024
6357247
Write one LoginPage unit test
JanSafronov May 18, 2024
f12c618
Merge pull request #5 from Olszewskidev/main
JanSafronov May 18, 2024
76a4279
Set form submit handling unit tests
JanSafronov May 18, 2024
8207e01
Start gallery unit tests
JanSafronov May 18, 2024
08b4398
Fix imports in unit tests
JanSafronov May 18, 2024
7c6a133
Commit last Jest usage
JanSafronov May 20, 2024
95e2900
Replace Jest testing with Vitest and setup unit tests for gallery-ui …
JanSafronov May 21, 2024
4f74c36
Configure a few login tests
JanSafronov May 21, 2024
020fc4c
Fix one unit test
JanSafronov May 23, 2024
3389ccb
Commit a few test fixes
JanSafronov May 23, 2024
4651b18
Fix router home testing
JanSafronov May 24, 2024
f6de966
Merge pull request #10 from Olszewskidev/main
JanSafronov May 24, 2024
9e2b39b
Commit few routing test elements
JanSafronov May 24, 2024
7cce06f
Commit routing test
JanSafronov May 25, 2024
04a0562
Fix router tests
JanSafronov May 25, 2024
b1bd1e6
Merge pull request #16 from Olszewskidev/main
JanSafronov May 25, 2024
82ff47a
Merge pull request #17 from Olszewskidev/main
JanSafronov May 25, 2024
b49e51f
Merge pull request #19 from JanSafronov/feature-1.1
JanSafronov May 25, 2024
bde4a0a
Merge pull request #19 from JanSafronov/feature-1.1
JanSafronov May 25, 2024
47daeb7
Merge branch 'feature-1' of https://github.com/JanSafronov/lens-up in…
JanSafronov May 25, 2024
de9e45f
Fix testing and setup a few Home tests
JanSafronov May 26, 2024
8720cbc
Fix pages tests
JanSafronov May 27, 2024
292cbdf
Fix ui gallery tests
JanSafronov May 27, 2024
5e99606
Fix gallery ui tests and start setting photo collector ui
JanSafronov May 30, 2024
36e5344
Merge branch 'main' of https://github.com/Olszewskidev/lens-up into O…
JanSafronov May 30, 2024
fba4e07
Merge branch 'Olszewskidev-main' into feature-1
JanSafronov May 30, 2024
3992308
Merge pull request #24 from Olszewskidev/main
JanSafronov Jun 1, 2024
0ce7d26
fix photo addition form testing
JanSafronov Jun 1, 2024
1ca5002
Fix photo addition form tests
JanSafronov Jun 1, 2024
44771d5
Fix collector api tests
JanSafronov Jun 1, 2024
ef1f6ed
Fix tests and prepare hub integration test for home page
JanSafronov Jun 2, 2024
36f77e0
Start hub mock
JanSafronov Jun 2, 2024
4aedfa3
Merge pull request #28 from Olszewskidev/main
JanSafronov Jun 3, 2024
aa124f1
Set home tests without Cypress hub mocking
JanSafronov Jun 3, 2024
75fe3a5
Redefine getGalleryPhotos endpoint to mock SignalR hub with Cypress d…
JanSafronov Jun 3, 2024
5f28c1c
Merge branch 'main' of https://github.com/Olszewskidev/lens-up into O…
JanSafronov Jun 3, 2024
8c86add
Merge branch 'Olszewskidev-main' into feature-1.1
JanSafronov Jun 3, 2024
cd7fdfc
Redefine getGalleryPhotos endpoint by applying Cypress library for Si…
JanSafronov Jun 4, 2024
506d7dc
Cleanup a bit home tests
JanSafronov Jun 4, 2024
d06df15
Remove unnecessary image
JanSafronov Jun 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests.v2",
"request": "launch",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": [
"--runInBand",
"--watchAll=false",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
},

{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\ui-applications\\packages\\gallery-ui\\tests\\App.test.js"
}
]
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
1 change: 1 addition & 0 deletions backend-services/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<PackageVersion Include="Azure.Data.Tables" Version="12.8.3" />
<PackageVersion Include="Azure.Storage.Queues" Version="12.17.1" />
<PackageVersion Include="Azure.Storage.Blobs" Version="12.19.1" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="QRCoder" Version="1.4.2" />
<PackageVersion Include="MediatR" Version="12.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Swashbuckle.AspNetCore" />
</ItemGroup>

Expand Down
9 changes: 9 additions & 0 deletions ui-applications/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
const { ESLint } = require("eslint");
const { TsCompiler } = require("ts-jest");

module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"react-app", "react-app/jest"
],
module: "esnext",
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
Expand All @@ -14,5 +19,9 @@ module.exports = {
'warn',
{ allowConstantExport: true },
],
},
test: {
globals: true,
environment: "jsdom"
}
}
29 changes: 29 additions & 0 deletions ui-applications/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests.v2.ui-applications",
"request": "launch",
"args": [
"--runInBand",
"--watchAll=false",
"--testNamePattern",
"${jest.testNamePattern}",
"--runTestsByPath",
"${jest.testFile}"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "${workspaceFolder}/node_modules/.bin/jest",
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
}
]
}
3 changes: 3 additions & 0 deletions ui-applications/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib"
}
3 changes: 3 additions & 0 deletions ui-applications/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// NOTE: The declaration below was injected by `"framer"`
// see https://www.framer.com/docs/guides/handshake for more information.
declare module "https://framer.com/m/*";
1 change: 1 addition & 0 deletions ui-applications/mocks/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = '';
Loading