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

Log accept alert #54

Open
faqndo97 opened this issue Apr 27, 2022 · 3 comments · May be fixed by #103
Open

Log accept alert #54

faqndo97 opened this issue Apr 27, 2022 · 3 comments · May be fixed by #103

Comments

@faqndo97
Copy link

Is there a way to accept alert and log that in the file? If not we can start to think on how to solve that.

@faqndo97
Copy link
Author

This is a little bit complicates probably because I think we don't have an event to log that so we need think other ways to solve it. Thinking out-loud I think we can check if the element clicked is a link or a button with a data-confirm or data-turbo-confirm and if those are present we can assume that the alert is involved and wrap the code in a accept_alert.

@gazayas
Copy link

gazayas commented Jun 23, 2023

Linking #1 here for future reference.

@gazayas
Copy link

gazayas commented Jul 10, 2023

Maybe we could use a keybinding (similar to how we generate assertions with Ctrl + Shift + A) to start the accept_alert block, perform whatever actions we want to exist in it, and then do the same keybinding to end the block.

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 a pull request may close this issue.

2 participants