Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
819
Merge Requests
64
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
b77e02c6
Commit
b77e02c6
authored
9 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(test): Use data-cy to select upgrade buttons
parent
17b77c45
goal/product-pages-update-1
1 merge request
!608
WIP: Product pages update
Pipeline
#93431249
running with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
cypress/integration/upgrades.spec.js
View file @
b77e02c6
...
...
@@ -15,8 +15,7 @@ context('Upgrades page', () => {
it
(
'
should scroll to upgrades table
'
,
()
=>
{
cy
.
viewport
(
1200
,
600
);
// Only on desktop
const
scrollButton
=
'
.m-marketing__mainWrapper .m-marketing__body a.mf-button
'
;
const
scrollButton
=
'
[data-cy="m-upgrades__upgrade-now-button"]
'
;
const
heading
=
'
.m-upgradesUpgradeOptions__header h2
'
;
cy
.
get
(
scrollButton
)
...
...
@@ -67,7 +66,7 @@ context('Upgrades page', () => {
it
(
'
should navigate to Plus and trigger a Wire
'
,
()
=>
{
const
upgradeButton
=
cy
.
get
(
'
.mf-button.m-upgradesUpgradeOptionsPlan__action:eq(0)
'
'
[data-cy="m-upgradeOptions__upgrade-to-plus-button"]
'
);
upgradeButton
.
click
();
...
...
@@ -77,7 +76,7 @@ context('Upgrades page', () => {
it
(
'
should navigate to Pro and trigger a Wire
'
,
()
=>
{
const
upgradeButton
=
cy
.
get
(
'
.mf-button.m-upgradesUpgradeOptionsPlan__action:eq(1)
'
'
[data-cy="m-upgradeOptions__upgrade-to-pro-button"]
'
);
upgradeButton
.
click
();
...
...
@@ -87,7 +86,7 @@ context('Upgrades page', () => {
it
(
'
should navigate to Nodes
'
,
()
=>
{
const
upgradeButton
=
cy
.
get
(
'
.mf-button.m-upgradesUpgradeOptionsPlan__action:eq(2)
'
'
[data-cy="m-upgradeOptions__contact-us-nodes-button"]
'
);
upgradeButton
.
click
();
...
...
This diff is collapsed.
src/app/modules/upgrades/upgrade-options.component.html
View file @
b77e02c6
...
...
@@ -91,6 +91,7 @@
routerLink=
"/plus"
[queryParams]=
"intervalCurrencyQueryParams"
*ngIf=
"!session.getLoggedInUser()?.plus"
data-cy=
"m-upgradeOptions__upgrade-to-plus-button"
i18n
>
Upgrade to Plus
...
...
@@ -160,6 +161,7 @@
routerLink=
"/pro"
[queryParams]=
"intervalCurrencyQueryParams"
*ngIf=
"!session.getLoggedInUser()?.pro"
data-cy=
"m-upgradeOptions__upgrade-to-pro-button"
i18n
>
Upgrade to Pro
...
...
@@ -169,6 +171,7 @@
<a
class=
"mf-button m-upgradesUpgradeOptionsPlan__action"
routerLink=
"/pro"
data-cy=
"m-upgradeOptions__upgrade-to-pro-button"
i18n
>
Coming soon
...
...
@@ -228,6 +231,7 @@
<a
class=
"mf-button m-upgradesUpgradeOptionsPlan__action"
routerLink=
"/nodes"
data-cy=
"m-upgradeOptions__contact-us-nodes-button"
i18n
>
Contact us
...
...
This diff is collapsed.
src/app/modules/upgrades/upgrades.component.html
View file @
b77e02c6
...
...
@@ -32,6 +32,7 @@
<a
class=
"mf-button mf-button--hollow m-marketing--hideMobile"
(click)=
"upgradeNow(); $event.preventDefault()"
data-cy=
"m-upgrades__upgrade-now-button"
i18n
>
Upgrade now
...
...
This diff is collapsed.
Please
register
or
sign in
to comment