Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@driusan
Copy link
Collaborator

@driusan driusan commented Mar 21, 2023

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.

  1. Our standard React element types are used instead of custom ones. This means, unfortunately, that the tooltip description is gone because our standard elements do not support it.
  2. The tabs are fetched dynamically instead of all upfront.
  3. swals are used to notify the user about setting update success/failure.

Other than that, the module should be unchanged from the end-user perspective.

@kongtiaowang kongtiaowang added the State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...) label Dec 12, 2023
@driusan driusan removed the State: Needs rebase PR that needs to be rebased to proceed (conflicts, wrong branch...) label Dec 12, 2023
@driusan
Copy link
Collaborator Author

driusan commented Dec 12, 2023

@kongtiaowang rebased

{

$this->safeGet($this->url . "/configuration/");
// wait for the React to render
Copy link
Contributor

@kongtiaowang kongtiaowang Dec 13, 2023

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);
}

Copy link
Contributor

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

@kongtiaowang kongtiaowang added the State: Needs work PR awaiting additional work by the author to proceed label Jan 9, 2024
@driusan driusan added this to the 28.0.0 milestone Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

State: Needs work PR awaiting additional work by the author to proceed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants