File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
dev/tests/functional/tests/app/Magento/Analytics/Test Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
class AssertBasicTierLink extends AbstractConstraint
15
15
{
16
- /**
17
- * Basic Tier Sign Up page url
18
- */
19
- const BASIC_TIER_LINK = 'https://dashboard.rjmetrics.com/v2/magento/signup ' ;
20
-
21
16
/**
22
17
* Browser instance.
23
18
*
@@ -29,14 +24,15 @@ class AssertBasicTierLink extends AbstractConstraint
29
24
* Assert Basic Tier Sign Up page is opened by link
30
25
*
31
26
* @param BrowserInterface $browser
27
+ * @param string $businessIntelligenceLink
32
28
* @return void
33
29
*/
34
- public function processAssert (BrowserInterface $ browser )
30
+ public function processAssert (BrowserInterface $ browser, $ businessIntelligenceLink )
35
31
{
36
32
$ this ->browser = $ browser ;
37
33
$ this ->browser ->selectWindow ();
38
34
\PHPUnit_Framework_Assert::assertEquals (
39
- self :: BASIC_TIER_LINK ,
35
+ $ businessIntelligenceLink ,
40
36
$ this ->browser ->getUrl (),
41
37
'Basic Tier Sign Up page was not opened by link. '
42
38
);
Original file line number Diff line number Diff line change 13
13
*/
14
14
class AssertFreeTierLink extends AbstractConstraint
15
15
{
16
- /**
17
- * Free Tier Sign Up page url
18
- */
19
- const FREE_TIER_LINK = 'http://drakelair1.corp.magento.com/mamock/report ' ;
20
-
21
16
/**
22
17
* Browser instance.
23
18
*
@@ -29,14 +24,15 @@ class AssertFreeTierLink extends AbstractConstraint
29
24
* Assert Free Tier Sign Up page is opened by link
30
25
*
31
26
* @param BrowserInterface $browser
27
+ * @param string $advancedReportingLink
32
28
* @return void
33
29
*/
34
- public function processAssert (BrowserInterface $ browser )
30
+ public function processAssert (BrowserInterface $ browser, $ advancedReportingLink )
35
31
{
36
32
$ this ->browser = $ browser ;
37
33
$ this ->browser ->selectWindow ();
38
34
\PHPUnit_Framework_Assert::assertEquals (
39
- self :: FREE_TIER_LINK ,
35
+ $ advancedReportingLink ,
40
36
$ this ->browser ->getUrl (),
41
37
'Free Tier Sign Up page was not opened by link. '
42
38
);
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/mtf/etc/variations.xsd" >
9
9
<testCase name =" Magento\Analytics\Test\TestCase\FreeTierButtonTest" summary =" Navigate through Free Tier button on dashboard to Sign Up page" ticketId =" MAGETWO-63715" >
10
10
<variation name =" FreeTierButtonTest" >
11
+ <data name =" advancedReportingLink" xsi : type =" string" >https://advancedreporting.rjmetrics.com/report</data >
11
12
<constraint name =" Magento\Analytics\Test\Constraint\AssertFreeTierLink" />
12
13
</variation >
13
14
</testCase >
Original file line number Diff line number Diff line change 10
10
<variation name =" NavigateMenuTestBasicTier" summary =" Navigate through Basic Tier admin menu to Sign Up page" ticketId =" MAGETWO-63700" >
11
11
<data name =" menuItem" xsi : type =" string" >Reports > Basic Tier</data >
12
12
<data name =" waitMenuItemNotVisible" xsi : type =" boolean" >false</data >
13
+ <data name =" businessIntelligenceLink" xsi : type =" string" >https://dashboard.rjmetrics.com/v2/magento/signup</data >
13
14
<constraint name =" Magento\Analytics\Test\Constraint\AssertBasicTierLink" />
14
15
</variation >
15
16
</testCase >
You can’t perform that action at this time.
0 commit comments