New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: Proposal Create mock structure. #2676
Merged
tiagoalvesdulce
merged 18 commits into
decred:master
from
vibros68:2644_e2e_Proposal_Create_mock_structure
Dec 7, 2021
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5b97a79
Paid user can create proposals manually
vibros68 f895c71
make the test simpler
vibros68 f8f57f4
fix linter
vibros68 099b142
remove dataTestid
vibros68 e0a0f84
get rid of Proposal mock and use Record
vibros68 fba7bb4
e2e: improvements for proposal create mock
victorgcramos 1d71b8e
Merge pull request #1 from victorgcramos/2676-improve
vibros68 706e6b9
add test case without fill the input; reuse type proposal on unpaid t…
vibros68 abbb3c3
prettify
vibros68 7fc66ce
decorate code
vibros68 bb479dd
fix follow review
vibros68 f888462
adjust the test title
vibros68 df69ed7
fix proposal-domain-selector wrong name
vibros68 46df268
remove unused variable and fix 80 chars per line
vibros68 c5919b3
prettify
vibros68 e56ed4e
remove unused var and comments
vibros68 3a5dab9
fix Record signature
vibros68 384b63a
fix test title
vibros68 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,17 +160,12 @@ Cypress.Commands.add("typeCreateProposal", (proposal) => { | |
cy.findByTestId("proposal-name").type(proposal.name); | ||
cy.findByTestId("proposal-amount").type(String(proposal.amount / 100)); // get dollars from cents. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prettier: 80 max char per line. |
||
const startDate = new Date(proposal.startDate * 1000); | ||
cy.findAllByTestId("datepicker").first() | ||
.children() | ||
cy.findAllByTestId("datepicker").first().children().first().click(); | ||
cy.findAllByTestId("days-list") | ||
.first() | ||
.click(); | ||
cy.findAllByTestId("days-list").first() | ||
.findByText(startDate.getDate()) | ||
.click(); | ||
cy.findAllByTestId("datepicker").first().next() | ||
.children() | ||
.first() | ||
.click(); | ||
cy.findAllByTestId("datepicker").first().next().children().first().click(); | ||
cy.get("[data-testid=days-list]:eq(1)").find(">li").last().click(); | ||
const domainTxt = RECORD_DOMAINS[proposal.domain]; | ||
cy.get("#domain-selector").click().contains(domainTxt).click({ force: true }); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.