-
Notifications
You must be signed in to change notification settings - Fork 15
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
Puppeteer test #11
Puppeteer test #11
Conversation
This reverts commit 4632d98.
ui/src/components/Organisms/CentralBankSecondFlow/CentralBankSecondFlow.tsx
Show resolved
Hide resolved
] | ||
|
||
const submitButton = isLoading | ||
? <Progress key="key" containerStyles={styles.dropdownSpinner} /> | ||
: <Button key="button-Recipient" label={"Submit"} onClick={()=> { | ||
: <Button key="button-Recipient" label={"Submit"} id='test-invoice-submit' onClick={()=> { |
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.
Minor: don't feel the need to add the prefix. This applies to other places as well.
: <Button key="button-Recipient" label={"Submit"} id='test-invoice-submit' onClick={()=> { | |
: <Button key="button-Recipient" label={"Submit"} id='invoice-submit' onClick={()=> { |
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.
yeah, made more sense with the classes.
keeping them kind of clarifies the reason (which is not enforced though, so no guarantee here)
so if you don't mind, let's keep the prefix for now
console.log("Issuing stimulus...") | ||
const restrictedStimulusDropdown = await page.waitForXPath('.//button[text()="Restricted Stimulus"]'); | ||
await restrictedStimulusDropdown!.click() | ||
const amountInput = await page.waitForSelector('#test-stimulus-amount'); |
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.
You might be able to simplify this. Don't mind if you leave it.
const amountInput = await page.waitForSelector('#test-stimulus-amount'); | |
await page.click('#test-stimulus-amount'); |
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.
thanks, i know, tried before multiple time, didn't work for unknown reason, so I left it.
i don't mind anyone tidying this up later ;)
No description provided.