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

Versions edit button #2553

Merged
merged 2 commits into from
May 27, 2024
Merged

Versions edit button #2553

merged 2 commits into from
May 27, 2024

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented May 14, 2024

image

I'm not really sure why the unit tests break (the do consistently so it has to be related) but do we want the button like this?

The unit test fails on /jury/languages/c/edit and when I try this locally it does work.
Make sure no contest is selected in the menu, visit the versions page, use the button is what the test should do and is what works for my side.

@vmcj vmcj force-pushed the versions_edit_button branch 6 times, most recently from 23c65e6 to 757a770 Compare May 19, 2024 18:03
try {
self::assertSelectorExists('a#navbarDropdownContests:contains("no contest")', "Failed at: " . $url);
} catch (\Exception $e) {
$gitlabArtifacts = getenv('GITLABARTIFACTS');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put this code into a test helper class?

Also, there is a bunch of phpcs errors here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's only relevant for the Traversal test so I'm not sure if we'll ever re use it.

try {
self::assertSelectorExists('a#navbarDropdownContests:contains("no contest")', "Failed at: " . $url);
} catch (\Exception $e) {
$gitlabArtifacts = getenv('GITLABARTIFACTS');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's only relevant for the Traversal test so I'm not sure if we'll ever re use it.

vmcj added 2 commits May 24, 2024 07:58
Try to debug how the failing page looked like in CI.
This is only relevant for CI as locally we can reproduce the test or
set the environment variable.
Closes: DOMjudge#2533

Although this might be relevant for jury members they don't have access
and this is left for admins.
@vmcj vmcj added this pull request to the merge queue May 27, 2024
Merged via the queue into DOMjudge:main with commit 2ead148 May 27, 2024
21 of 22 checks passed
@vmcj vmcj deleted the versions_edit_button branch May 27, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants