-
Notifications
You must be signed in to change notification settings - Fork 248
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
Versions edit button #2553
Conversation
23c65e6
to
757a770
Compare
try { | ||
self::assertSelectorExists('a#navbarDropdownContests:contains("no contest")', "Failed at: " . $url); | ||
} catch (\Exception $e) { | ||
$gitlabArtifacts = getenv('GITLABARTIFACTS'); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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 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.
7926ff1
to
ea194c5
Compare
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.