-
Notifications
You must be signed in to change notification settings - Fork 189
[configuration] Reactify module #8471
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
base: main
Are you sure you want to change the base?
Conversation
d885e9f to
b47f3a2
Compare
|
@kongtiaowang rebased |
| { | ||
|
|
||
| $this->safeGet($this->url . "/configuration/"); | ||
| // wait for the React to render |
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.
Please replace this function in this file. using safeFindElement replace findElements after Reactify.
private function _linkTest($text)
{
$this->safeClick(WebDriverBy::linkText($text));
$webActives = $this->safeFindElement(WebDriverBy::cssSelector(".active"));
$bodyText = $webActives->getText();
$this->assertStringContainsString($text, $bodyText);
}
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.
Regarding the testplan3 in the dashboard test, you can temporarily comment it out. I've identified a solution to address this issue, and I'll implement it later. https://github.com/kongtiaowang/Loris/pull/381/files#diff-2af5e853d357c98c23e22e3a7d855bc560485103cb82026fa408d7fdf6f3fa5d
This rewritse the main page of the configuration module--which is the cause of the majority of our javascript warnings--with React. The configuration module was written with jQuery/smarty before we began using React.
The reactified version should work the same as the old with a few exceptions.
Other than that, the module should be unchanged from the end-user perspective.