-
Notifications
You must be signed in to change notification settings - Fork 6
feat: e2e & admin UI updates #30
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
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c9cc9e4
e2e with playwright
meumar-osec 232fec0
feat: e2e
meumar-osec d51aaa4
Merge branch 'main' of https://github.com/otter-sec/rctf into feat/e2e
meumar-osec c553493
Merge branch 'main' of https://github.com/otter-sec/rctf into feat/e2e
meumar-osec 730b9c1
add: tests for admin challenges
meumar-osec c40f716
update: test config file added
meumar-osec 0925315
admin page access control
meumar-osec b158a79
admin page UI updates & access control issue fix
meumar-osec 5597fbb
revert admin access check
meumar-osec 99b11af
chore: update to node 22 and yarn v4
trixter-osec 32bcf55
feat(docs): clarify smtp, gcs upload provider, and ctftime sections
trixter-osec b0db294
feat(ci): switch to ghcr
trixter-osec abfa0e1
fix(ci): run on main
trixter-osec bdc06db
refactor(ci): update deprecated actions
trixter-osec a3d0ab5
chore: change URLs to use osec.io
trixter-osec f42e739
fix(install): use the correct config directory and docker image
trixter-osec 438bace
chore(docs): update README to osec
trixter-osec 8e79a6e
chore: update yarn.lock with playwright dependencies
meumar-osec 4175f8e
Merge branch 'main' into feat/e2e
meumar-osec bcdcaf8
fix: code format
meumar-osec f7e3f3e
Merge branch 'main' into feat/e2e
meumar-osec d1abbd3
fix: resolved PR comments
meumar-osec 8d1f171
fix: eslint fixes
es3n1n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| BASE_URL=http://localhost:8080 | ||
| NAME=OsecCTF | ||
| HOME_CONTENT=This is | ||
| LOGIN_TOKEN=test_team_token | ||
| DIVISIONS={"hs":"High School","college":"College", "other":"Other"} | ||
|
|
||
| TEST_CHAL=High school/1. Can you find root user? | ||
| TEST_CHAL_ANSWER=flag(1m_r0Ot_us3r) | ||
|
|
||
| TEST_REG_EMAIL=test_user@gmail.com | ||
| TEST_REG_NAME=test_user@gmail.com | ||
|
|
||
|
|
||
| TEST_UPDATE_EMAIL=test_user@gmail.com | ||
| TEST_UPDATE_NAME=test_user@gmail.com | ||
|
|
||
| TEST_NEW_MEMBER=test_user@gmail.com | ||
|
|
||
| TEST_NEW_CHAL_NAME=Challenge-test | ||
| TEST_NEW_CHAL_AUTHOR=luffy | ||
| TEST_NEW_CHAL_DES=This is one piece challenge | ||
| TEST_NEW_CHAL_FLAG=flag(on3_p1e5c3_f0und) | ||
|
|
||
| REGULAR_USER_TOKEN=admin_team_token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,3 +39,5 @@ $RECYCLE.BIN | |
|
|
||
| # coverage | ||
| coverage | ||
|
|
||
| test-results | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
|
|
||
| # Playwright | ||
| node_modules/ | ||
| /test-results/ | ||
| /playwright-report/ | ||
| /blob-report/ | ||
| /playwright/.cache/ | ||
| *.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import { defineConfig, devices } from '@playwright/test' | ||
| export default defineConfig({ | ||
| testDir: './tests', | ||
| fullyParallel: true, | ||
| forbidOnly: !!process.env.CI, | ||
| retries: 0, | ||
| workers: process.env.CI ? 1 : undefined, | ||
| reporter: 'html', | ||
| use: { | ||
| trace: 'on-first-retry', | ||
|
|
||
| baseURL: 'http://localhost:8080', | ||
| headless: true, | ||
| viewport: { width: 1280, height: 720 }, | ||
| ignoreHTTPSErrors: true, | ||
| }, | ||
| projects: [ | ||
| { | ||
| name: 'chromium', | ||
| use: { ...devices['Desktop Chrome'] }, | ||
| }, | ||
|
|
||
| { | ||
| name: 'webkit', | ||
| use: { ...devices['Desktop Safari'] }, | ||
| }, | ||
|
|
||
| { | ||
| name: 'firefox', | ||
| use: { ...devices['Desktop Firefox'] }, | ||
| }, | ||
| ], | ||
|
|
||
| timeout: 30000, | ||
| }) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.