add acceptance test for changing contents of Firstrunwizard#105
Conversation
|
needs owncloud/core#35151 to be merged |
| * | ||
| * @param $expectedMessage | ||
| * | ||
| * @Throws Exception |
There was a problem hiding this comment.
| * @Throws Exception | |
| * @throws Exception |
| } | ||
|
|
||
| /** | ||
| * Returns the message from firstrunwizard at heading |
There was a problem hiding this comment.
| * Returns the message from firstrunwizard at heading | |
| * Returns the message from firstrunwizard at heading |
| private $firstrunwizardPage; | ||
|
|
||
| /** | ||
| * @var PathofWizardFileFromServerRoot |
There was a problem hiding this comment.
I dont think this is required
There was a problem hiding this comment.
same goes for following variable declerations.
| @@ -0,0 +1,24 @@ | |||
| @webUI @insulated @disablePreviews | |||
| Feature: default message from firstrunwizard is displayed after changing default popup message of firstrunwizard and reverting it back | |||
There was a problem hiding this comment.
| Feature: default message from firstrunwizard is displayed after changing default popup message of firstrunwizard and reverting it back | |
| Feature: Customize firstrunwizard popup |
| @webUI @insulated @disablePreviews | ||
| Feature: default message from firstrunwizard is displayed after changing default popup message of firstrunwizard and reverting it back | ||
| As an administrator | ||
| I want to check if firstrunwizard displays default message on popup after changing the default message and reverting it |
There was a problem hiding this comment.
| I want to check if firstrunwizard displays default message on popup after changing the default message and reverting it | |
| I want to customize firstrunwizard popup message |
| Feature: default message from firstrunwizard is displayed after changing default popup message of firstrunwizard and reverting it back | ||
| As an administrator | ||
| I want to check if firstrunwizard displays default message on popup after changing the default message and reverting it | ||
| So that I can manipulate and send popup message from firstrunwizard to new users |
There was a problem hiding this comment.
| So that I can manipulate and send popup message from firstrunwizard to new users | |
| So that I can send message from firstrunwizard to all new users |
6e7c3de to
8833aa4
Compare
Codecov Report
@@ Coverage Diff @@
## master #105 +/- ##
=========================================
Coverage 28.07% 28.07%
Complexity 16 16
=========================================
Files 9 9
Lines 114 114
=========================================
Hits 32 32
Misses 82 82Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #105 +/- ##
=========================================
Coverage 28.07% 28.07%
Complexity 16 16
=========================================
Files 9 9
Lines 114 114
=========================================
Hits 32 32
Misses 82 82Continue to review full report at Codecov.
|
8833aa4 to
6daf7b1
Compare
| private $pathOfWizardFileFromServerRoot = "/apps/firstrunwizard/templates/wizard.php"; | ||
|
|
||
| /** | ||
| * @var FileContent |
There was a problem hiding this comment.
| * @var FileContent | |
| * @var string |
|
|
||
| /** | ||
| * @Then the user should not see the firstrunwizard popup message | ||
| * @Then the user should see the firstrunwizard popup message in general settings page |
There was a problem hiding this comment.
2 Then steps on same function?
| } | ||
|
|
||
| /** | ||
| * @When the user clicks :arg1 button |
914f5fa to
60c4c8b
Compare
| $headingMessage = $this->firstRunWizardPage->getHeadingMessage(); | ||
|
|
||
| PHPUnit\Framework\Assert::assertSame( | ||
| $expectedMessage, $headingMessage, "Firstrunwizard was expected to show $expectedMessage but showed $headingMessage." |
There was a problem hiding this comment.
Too long, please separate into multiple lines.
0b9fa8a to
50579a5
Compare
| protected $firstrunwizardPopupXpath = "//*[@id='firstrunwizard']"; | ||
|
|
||
| protected $headingMessageXpath = "//*[@id='firstrunwizard']/h1"; | ||
| protected $firstRunWizardXpath = "//*[@id='firstrunwizard']"; |
There was a problem hiding this comment.
| protected $firstRunWizardXpath = "//*[@id='firstrunwizard']"; | |
| protected $firstRunWizardXpath = "//*[@id='firstrunwizard']"; | |
50579a5 to
b28478b
Compare
This code allows administrator to change the default popup message of firstrunwizard and revert the popup message back to default message .