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
820
Merge Requests
63
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
17b77c45
Commit
17b77c45
authored
1 day ago
by
Emiliano Balbuena
Browse files
Options
Download
(tests): E2E for simple product pages
parent
20fb225c
goal/product-pages-update-1
1 merge request
!608
WIP: Product pages update
Pipeline
#93167402
passed with stages
in 62 minutes
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
247 additions
and
2 deletions
+247
-2
cypress/integration/blockchain/rewards-marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Rewards Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
joinRewards
=
'
.m-marketing__mainWrapper .mf-button
'
;
it
(
'
should have a join rewards button
'
,
()
=>
{
cy
.
visit
(
'
/rewards
'
);
cy
.
get
(
joinRewards
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Join Rewards
'
)
.
click
();
cy
.
location
(
'
pathname
'
).
should
(
'
contains
'
,
'
/wallet/tokens/contributions
'
);
});
});
This diff is collapsed.
cypress/integration/blockchain/token-marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Token Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
cy
.
visit
(
'
/token
'
);
});
it
(
'
should have the ability to trigger Buy Tokens modal
'
,
()
=>
{
const
tokensInput
=
'
m-blockchain--purchase input[name=amount]
'
;
const
buyTokensButton
=
'
m-blockchain--purchase .m-blockchainTokenPurchase__action .mf-button
'
;
const
anyBuyTokensModal
=
'
m-blockchain--purchase m-modal .m-modal-container
'
;
cy
.
get
(
tokensInput
)
.
focus
()
.
clear
()
.
type
(
'
0
'
);
cy
.
get
(
buyTokensButton
).
should
(
'
be.disabled
'
);
cy
.
get
(
tokensInput
)
.
focus
()
.
clear
()
.
type
(
'
1
'
);
cy
.
get
(
buyTokensButton
)
.
should
(
'
not.be.disabled
'
)
.
click
();
cy
.
get
(
'
.m-get-metamask--cancel-btn.m-btn
'
).
click
();
cy
.
get
(
anyBuyTokensModal
).
should
(
'
be.visible
'
);
});
it
(
'
should have the ability to trigger Buy Eth modal
'
,
()
=>
{
const
buyEthLink
=
'
m-blockchain--purchase .m-blockchainTokenPurchase__ethRate a
'
;
const
buyEthModal
=
'
m-blockchain__eth-modal .m-modal-container
'
;
cy
.
get
(
buyEthLink
).
click
();
cy
.
get
(
buyEthModal
).
should
(
'
be.visible
'
);
});
});
This diff is collapsed.
cypress/integration/boost/marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Boost Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
createBoostButton
=
'
.m-marketing__mainWrapper .mf-button
'
;
it
(
'
should have a create boost button
'
,
()
=>
{
cy
.
visit
(
'
/boost
'
);
cy
.
get
(
createBoostButton
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Create Boost
'
)
.
click
();
cy
.
location
(
'
pathname
'
).
should
(
'
contains
'
,
'
/boost/console/newsfeed/create
'
);
});
});
This diff is collapsed.
cypress/integration/nodes/marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Pro Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
contactUsButton
=
'
.m-marketing__mainWrapper .mf-button
'
;
it
(
'
should have a contact us button
'
,
()
=>
{
cy
.
visit
(
'
/nodes
'
,
{
onBeforeLoad
(
_window
)
{
cy
.
stub
(
_window
,
'
open
'
);
},
});
cy
.
get
(
contactUsButton
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Contact us for details
'
)
.
click
();
cy
.
window
()
.
its
(
'
open
'
)
.
should
(
'
be.called
'
);
});
});
This diff is collapsed.
cypress/integration/plus/marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Plus Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
upgradeButton
=
'
m-plus--subscription .mf-button
'
;
const
wirePaymentsComponent
=
'
m-wire__paymentscreator .m-wire--creator
'
;
it
(
'
should open the Wire Payment modal
'
,
()
=>
{
cy
.
visit
(
'
/plus
'
);
cy
.
get
(
upgradeButton
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Upgrade to Plus
'
)
.
click
();
cy
.
get
(
wirePaymentsComponent
).
should
(
'
be.visible
'
);
});
it
(
'
should automatically open the Wire Payment modal
'
,
()
=>
{
cy
.
visit
(
'
/plus?i=yearly&c=tokens
'
);
cy
.
get
(
wirePaymentsComponent
).
should
(
'
be.visible
'
);
});
});
This diff is collapsed.
cypress/integration/pro/marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Pro Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
upgradeButton
=
'
m-pro--subscription .mf-button
'
;
const
wirePaymentsComponent
=
'
m-wire__paymentscreator .m-wire--creator
'
;
it
(
'
should show a coming soon button
'
,
()
=>
{
cy
.
visit
(
'
/pro
'
);
cy
.
get
(
upgradeButton
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Coming soon
'
)
.
click
();
});
// it('should open the Wire Payment modal', () => {
//
// cy.visit('/pro');
//
// cy.get(upgradeButton)
// .should('be.visible')
// .should('contain', 'Upgrade to Pro')
// .click();
//
// cy.get(wirePaymentsComponent).should('be.visible');
// });
//
// it('should automatically open the Wire Payment modal', () => {
// cy.visit('/pro?i=yearly&c=tokens');
//
// cy.get(wirePaymentsComponent).should('be.visible');
// });
});
This diff is collapsed.
cypress/integration/wire.spec.js
→
cypress/integration/wire
/creator
.spec.js
View file @
17b77c45
...
...
@@ -5,10 +5,10 @@
* @desc Spec tests for Wire transactions.
*/
import
generateRandomId
from
"
../support/utilities
"
;
import
generateRandomId
from
"
../
../
support/utilities
"
;
// Issue to re-enable https://gitlab.com/minds/front/issues/1846
context
.
skip
(
'
Wire
'
,
()
=>
{
context
.
skip
(
'
Wire
Creator
'
,
()
=>
{
const
receiver
=
{
username
:
generateRandomId
(),
...
...
This diff is collapsed.
cypress/integration/wire/marketing.spec.js
0 → 100644
View file @
17b77c45
context
(
'
Pay Product Page
'
,
()
=>
{
before
(()
=>
{
cy
.
getCookie
(
'
minds_sess
'
).
then
(
sessionCookie
=>
{
if
(
!
sessionCookie
)
{
return
cy
.
login
(
true
);
}
});
});
beforeEach
(()
=>
{
cy
.
preserveCookies
();
});
const
monetizeChannelButton
=
'
.m-marketing__mainWrapper .mf-button
'
;
it
(
'
should have a monetize channel button
'
,
()
=>
{
cy
.
visit
(
'
/pay
'
);
cy
.
get
(
monetizeChannelButton
)
.
should
(
'
be.visible
'
)
.
should
(
'
contain
'
,
'
Monetize your channel
'
)
.
click
();
cy
.
location
(
'
pathname
'
).
should
(
'
contains
'
,
'
/wallet/tokens/contributions
'
);
});
});
This diff is collapsed.
Please
register
or
sign in
to comment