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

Fix and add test cases for Canvas Integration #548

Merged
merged 2 commits into from
Mar 2, 2018

Conversation

kitsook
Copy link
Contributor

@kitsook kitsook commented Nov 28, 2017

  • Add docker definitions for new containers running test cases
  • Revise the sample testing data in ipeer_samples_data.sql to include features added by Canvas integration
  • Revising existing test cases
  • Adding new test cases canvas_integration.test.php for Canvas integration
  • Set the Selenium browser as Chrome in docker-compose.yml. The current Selenium-Firefox container has problem with some of the test cases (e.g. simulating mouse actions to control a slider)
  • Update readme.md on how to setup Selenium docker container and corresponding iPeer containers for runing integration tests

Closes #547

- Add docker definitions for new containers running test cases
- Revise the sample testing data in ipeer_samples_data.sql to include features added by Canvas integration
- Revising existing test cases
- Adding new test cases canvas_integration.test.php for Canvas integration
- Set the Selenium browser as Chrome in docker-compose.yml.  The current Selenium-Firefox container has problem with some of the test cases (e.g. simulating mouse actions to control a slider)
- Update readme.md on how to setup Selenium docker container and corresponding iPeer containers for runing integration tests
@@ -192,8 +193,8 @@ function($session) {
$this->assertEqual($title, 'MECH 328 - Mechanical Engineering Design Project > Simple Evaluation > Results');

//auto-release results message
$msg = $this->session->elementsWithWait(PHPWebDriver_WebDriverBy::ID, 'autoRelease_msg');
$this->assertTrue(!empty($msg));
// $msg = $this->session->elementsWithWait(PHPWebDriver_WebDriverBy::ID, 'autoRelease_msg');
Copy link
Member

Choose a reason for hiding this comment

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

Any reason these tests are commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no element autoRelease_msg displyed on screen. Seems the element only appears in test cases and CSS. Hence they are commented out.

localhost:~/work/iPeer> grep -lr "autoRelease_msg" *
app/tests/cases/system/student_mixeval.test.php
app/tests/cases/system/student_simple.test.php
app/tests/cases/system/student_rubric.test.php
app/webroot/css/ipeer.css

@xcompass xcompass merged commit 9908ede into canvas-integration Mar 2, 2018
@xcompass xcompass deleted the canvas-integration-itests branch March 2, 2018 20:32
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.

2 participants