Skip to content

Commit

Permalink
pkp/pkp-lib#5098 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Oct 4, 2019
1 parent 3e361bc commit fb53f61
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion tests/data/60-content/CcorinoSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
// Assign a recommendOnly section editor
$this->assignParticipant('Section editor', 'Minoti Inoue', true);
$this->logOut();
Expand Down
4 changes: 2 additions & 2 deletions tests/data/60-content/CkwantesSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Aisla McCrae');
$this->assignReviewer('Adela Gallego');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Maria Fritz');
$this->logOut();
}
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/DdioufSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Paul Hudson');
$this->assignReviewer('Adela Gallego');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Maria Fritz');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Graham Cox');
$this->assignParticipant('Proofreader', 'Catherine Turner');
$this->logOut();
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/DphillipsSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Adela Gallego');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Maria Fritz');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Graham Cox');
$this->logOut();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/data/60-content/DsokoloffSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Paul Hudson');
$this->assignReviewer('Aisla McCrae');
$this->assignReviewer('Adela Gallego');
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/FpaglieriSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Adela Gallego');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Sarah Vogt');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Stephen Hellier');
$this->assignParticipant('Proofreader', 'Sabine Kumar');
$this->logOut();
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/JmwandengaSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Aisla McCrae');
$this->assignReviewer('Adela Gallego');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Sarah Vogt');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Stephen Hellier');
$this->assignParticipant('Proofreader', 'Sabine Kumar');

Expand Down
2 changes: 1 addition & 1 deletion tests/data/60-content/JnovakSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Aisla McCrae');
$this->assignReviewer('Adela Gallego');
$this->logOut();
Expand Down
2 changes: 1 addition & 1 deletion tests/data/60-content/LchristopherSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Paul Hudson');
$this->logOut();
Expand Down
2 changes: 1 addition & 1 deletion tests/data/60-content/LkumiegaSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Aisla McCrae');
$this->assignReviewer('Adela Gallego');
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/RbaiyewuSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Paul Hudson');
$this->assignReviewer('Aisla McCrae');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Sarah Vogt');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Stephen Hellier');
$this->logOut();
}
Expand Down
6 changes: 3 additions & 3 deletions tests/data/60-content/VkarbasizaedSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Julie Janssen');
$this->assignReviewer('Paul Hudson');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Maria Fritz');
$this->recordEditorialDecision('Send To Production');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Production\')]');
$this->assignParticipant('Layout Editor', 'Graham Cox');
$this->assignParticipant('Proofreader', 'Catherine Turner');

Expand Down
4 changes: 2 additions & 2 deletions tests/data/60-content/ZwoodsSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ function testSubmission() {
$this->logOut();
$this->findSubmissionAsEditor('dbarnes', null, $title);
$this->sendToReview();
$this->waitForElementPresent('//a[contains(text(), \'Review\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Review\')]');
$this->assignReviewer('Paul Hudson');
$this->assignReviewer('Aisla McCrae');
$this->recordEditorialDecision('Accept Submission');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]/*[contains(text(), \'Initiated\')]');
$this->waitForElementPresent('//a[contains(text(), \'Copyediting\')]');
$this->assignParticipant('Copyeditor', 'Sarah Vogt');
$this->logOut();
}
Expand Down

0 comments on commit fb53f61

Please sign in to comment.