Skip to content
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

Merged
merged 49 commits into from
Apr 28, 2021
Merged

Puppeteer test #11

merged 49 commits into from
Apr 28, 2021

Conversation

richardkapolnai-da
Copy link
Contributor

No description provided.

@richardkapolnai-da richardkapolnai-da marked this pull request as ready for review April 26, 2021 14:45
@richardkapolnai-da richardkapolnai-da requested a review from a team April 26, 2021 14:50
]

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={()=> {
Copy link
Contributor

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.

Suggested change
: <Button key="button-Recipient" label={"Submit"} id='test-invoice-submit' onClick={()=> {
: <Button key="button-Recipient" label={"Submit"} id='invoice-submit' onClick={()=> {

Copy link
Contributor Author

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');
Copy link
Contributor

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.

Suggested change
const amountInput = await page.waitForSelector('#test-stimulus-amount');
await page.click('#test-stimulus-amount');

Copy link
Contributor Author

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 ;)

@richardkapolnai-da richardkapolnai-da merged commit 5016af3 into main Apr 28, 2021
@richardkapolnai-da richardkapolnai-da deleted the puppeteer branch April 28, 2021 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants