From 84297ca0286a15d9b86f8b84459ccc978d8c870f Mon Sep 17 00:00:00 2001 From: Gabriel Zayas Date: Mon, 10 Jul 2023 13:37:23 +0900 Subject: [PATCH 1/3] Fix comment in context menu file --- app/views/magic_test/_context_menu.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/magic_test/_context_menu.html.erb b/app/views/magic_test/_context_menu.html.erb index 40370ca..3e183f0 100644 --- a/app/views/magic_test/_context_menu.html.erb +++ b/app/views/magic_test/_context_menu.html.erb @@ -13,7 +13,7 @@ function enableKeyboardShortcuts() { - // Ctrl+A to generate an assertion + // Ctrl+Shift+A to generate an assertion. function keydown(event) { if (event.ctrlKey && event.shiftKey && event.key === 'A') { event.preventDefault(); From 019da83f0e5e5e02e05b8bf60e85bc55ee0bd1cf Mon Sep 17 00:00:00 2001 From: Gabriel Zayas Date: Mon, 10 Jul 2023 13:46:13 +0900 Subject: [PATCH 2/3] Simplify README explanation --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 6771660..feb20ab 100644 --- a/README.md +++ b/README.md @@ -94,11 +94,7 @@ You can click on buttons, click on links, fill in forms, and do many other thing ### Generating Assertions in the Browser -#### Method 1: -If you want to add an assertion that some content exists on the page, simply highlight some text and press ControlShift + A. You should see a confirm dialog asking for if you want to move forward with the assertion or cancel. - -#### Method 2: -You can now generate assertions by selecting your text and right-clicking with your mouse or touchpad. +If you want to add an assertion that some content exists on the page, simply highlight some text and right click or press ControlShift + A. You should see a confirm dialog asking for if you want to move forward with the assertion or cancel. ### Flushing In Browser Actions and Assertions to the Test File From 4d2f710db5a01a6a6dddac419198ead6c8fa3035 Mon Sep 17 00:00:00 2001 From: Gabriel Zayas Date: Mon, 10 Jul 2023 14:41:25 +0900 Subject: [PATCH 3/3] Clean up Mutation Observer --- app/views/magic_test/_mutation_observer.html | 21 ++++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/app/views/magic_test/_mutation_observer.html b/app/views/magic_test/_mutation_observer.html index 9bf22eb..e27d0fc 100644 --- a/app/views/magic_test/_mutation_observer.html +++ b/app/views/magic_test/_mutation_observer.html @@ -1,5 +1,4 @@ \ No newline at end of file +