Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
12047d0
user answer route, evaluation
Tibex88 May 20, 2024
5106704
sse and chat routes
Tibex88 Jun 2, 2024
68784f9
end of sse, start eval
Tibex88 Jun 4, 2024
cb526c9
AI inti integ
Tibex88 Jun 4, 2024
9dfb153
init evaluation
Tibex88 Jun 4, 2024
3065800
Merge pull request #56 from Alpha-Techologies/yosef-new-create-exam
johannesteshome Jun 4, 2024
28e3bad
.
johannesteshome Jun 4, 2024
9b4a970
route fix
johannesteshome Jun 4, 2024
686501a
pages in routing fixed
johannesteshome Jun 4, 2024
e6a9d3b
socket so far worked
johannesteshome Jun 4, 2024
a20990f
monitoring page exam fetching done
johannesteshome Jun 4, 2024
9f40877
user join socket event
yohannesME Jun 4, 2024
04fcd3c
real time examinee join monitoring
johannesteshome Jun 4, 2024
c66795d
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
johannesteshome Jun 4, 2024
4e9f505
added the terminate examinee option for the invigilator
yohannesME Jun 4, 2024
32dc8a9
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
yohannesME Jun 4, 2024
d35023c
user joining exam
johannesteshome Jun 4, 2024
384105d
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
johannesteshome Jun 4, 2024
7ba7d36
added terminate examinee for the admin monitoring socket
yohannesME Jun 4, 2024
d1453ec
refactor: Simplify terminateExaminee socket event in monitorExamSocke…
yohannesME Jun 4, 2024
873d667
exam preview on take exam screen
johannesteshome Jun 4, 2024
8eeec45
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
johannesteshome Jun 4, 2024
d6b2c01
eval basic
Tibex88 Jun 5, 2024
34b0f8b
break down components of monitoring page and take exam screen window
johannesteshome Jun 5, 2024
03a16d1
chore: Add socket prop to ChatComponent for exam communication
yohannesME Jun 5, 2024
09abc80
chat with reusable components
johannesteshome Jun 5, 2024
5847d76
changed the chat component to be aboe to use object of array instead …
johannesteshome Jun 5, 2024
5c9fd0f
examinee to examiner works but the other way doesnt
johannesteshome Jun 5, 2024
83148bc
update chat messages with takeExamId
johannesteshome Jun 5, 2024
20314a0
exam submissio, countdown, and exam status change integrated
johannesteshome Jun 5, 2024
7c0b1c1
chore: Update APIFeatures class to populate userAnswers in query results
yohannesME Jun 6, 2024
e84b8ae
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
yohannesME Jun 6, 2024
801c5e5
evaluation and take exam merged
yohannesME Jun 6, 2024
92b2a58
take exam fucntionality
yohannesME Jun 6, 2024
ea09115
handleFinish exam
johannesteshome Jun 6, 2024
6272df5
Merge branch 'yohannes.yosef.socket.and.exam.merge' of https://github…
johannesteshome Jun 6, 2024
c384478
monitor page result view
yohannesME Jun 6, 2024
82b67c6
evaluate the question now works even if the answer is null
yohannesME Jun 6, 2024
dd7996c
access change updated on the database
johannesteshome Jun 6, 2024
18d4814
Merge pull request #58 from Alpha-Techologies/yohannesme.tibebe.exam.…
johannesteshome Jun 6, 2024
551a511
currentUser in results tab fixed
johannesteshome Jun 6, 2024
5fee09d
organization follow, unfollow in organization details
johannesteshome Jun 6, 2024
b08209c
leave organization and also staff list done
yohannesME Jun 6, 2024
413da86
Merge branch 'yohannes.organization.details' of https://github.com/Al…
yohannesME Jun 6, 2024
227fddf
get all the exams under an organization done
yohannesME Jun 6, 2024
d2fc09e
.
yohannesME Jun 6, 2024
8a87437
playwright tests done
johannesteshome Jun 7, 2024
dd9f9be
Merge pull request #60 from Alpha-Techologies/yohannes.cypress.testing
johannesteshome Jun 7, 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
4 changes: 4 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
76 changes: 76 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
},
"devDependencies": {
"@iconify/react": "^4.1.1",
"@playwright/test": "^1.44.1",
"@types/node": "^20.14.2",
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
80 changes: 80 additions & 0 deletions client/playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// @ts-check
import { defineConfig, devices } from "@playwright/test";

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();

/**
* @see https://playwright.dev/docs/test-configuration
*/
const config = defineConfig({
testDir: "./tests",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},

/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},

{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},

{
name: "webkit",
use: { ...devices["Desktop Safari"] },
},

/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },

/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
});

export default config
2 changes: 1 addition & 1 deletion client/src/Pages/ExamDetailPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ExamDetailPage = () => {
<Icon icon="line-md:pencil-twotone" /> Edit
</Link>
<Link
to='/take-exam'
to={'/take-exam/' + id}
className='flex items-center gap-2 bg-primary-500 hover:bg-primary-700 text-white font-bold py-2 px-4 rounded'>
<Icon className='w-5 h-5' icon='system-uicons:write' /> Take Exam
</Link>
Expand Down
Loading