From 174543d8b6c1274766adff316f5e81901e6985c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Su=C3=A1rez=20Losada?= Date: Wed, 1 May 2024 12:33:32 +0200 Subject: [PATCH] fix: making test windows close themselves after each e2e test Co-authored-by: Dario G.Mori --- .../about_positive_logged_user_seeing_about_screen.steps.js | 1 + .../about_positive_non_logged_user_seeing_about_screen.steps.js | 1 + webapp/e2e/steps/login_positive.steps.js | 1 + .../e2e/steps/login_register_negative_bad_email_format.steps.js | 1 + .../login_register_negative_blank_email_credentials.steps.js | 1 + .../login_register_negative_blank_password_credentials.steps.js | 1 + .../steps/login_register_negative_incorrect_credentials.steps.js | 1 + webapp/e2e/steps/logout_positive_logged_user.steps.js | 1 + webapp/e2e/steps/logout_positive_non_logged_user.steps.js | 1 + webapp/e2e/steps/playing_full_game_positive.steps.js | 1 + webapp/e2e/steps/playing_game_negative_non_logged_user.steps.js | 1 + webapp/e2e/steps/register_negative_blank_password.steps.js | 1 + .../e2e/steps/register_negative_blank_repeated_password.steps.js | 1 + webapp/e2e/steps/register_negative_blank_username.steps.js | 1 + .../steps/register_negative_email_already_in_use_form.steps.js | 1 + .../register_negative_username_already_in_use_form.steps.js | 1 + webapp/e2e/steps/register_negative_wrong_email_format.steps.js | 1 + webapp/e2e/steps/register_positive_form.steps.js | 1 + webapp/e2e/steps/seeing_rules_negative_non_logged_user.steps.js | 1 + webapp/e2e/steps/seeing_rules_positive.steps.js | 1 + webapp/e2e/steps/seeing_stats_negative_non_logged_user.steps.js | 1 + webapp/e2e/steps/seeing_stats_positive.steps.js | 1 + 22 files changed, 22 insertions(+) diff --git a/webapp/e2e/steps/about_positive_logged_user_seeing_about_screen.steps.js b/webapp/e2e/steps/about_positive_logged_user_seeing_about_screen.steps.js index 311d0908..d0015e4c 100644 --- a/webapp/e2e/steps/about_positive_logged_user_seeing_about_screen.steps.js +++ b/webapp/e2e/steps/about_positive_logged_user_seeing_about_screen.steps.js @@ -58,5 +58,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/about_positive_non_logged_user_seeing_about_screen.steps.js b/webapp/e2e/steps/about_positive_non_logged_user_seeing_about_screen.steps.js index 9072d93f..c2d02436 100644 --- a/webapp/e2e/steps/about_positive_non_logged_user_seeing_about_screen.steps.js +++ b/webapp/e2e/steps/about_positive_non_logged_user_seeing_about_screen.steps.js @@ -49,5 +49,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/login_positive.steps.js b/webapp/e2e/steps/login_positive.steps.js index 7a9a4678..d3b72e1d 100644 --- a/webapp/e2e/steps/login_positive.steps.js +++ b/webapp/e2e/steps/login_positive.steps.js @@ -74,5 +74,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/login_register_negative_bad_email_format.steps.js b/webapp/e2e/steps/login_register_negative_bad_email_format.steps.js index 7df25a3b..e8a99808 100644 --- a/webapp/e2e/steps/login_register_negative_bad_email_format.steps.js +++ b/webapp/e2e/steps/login_register_negative_bad_email_format.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/login_register_negative_blank_email_credentials.steps.js b/webapp/e2e/steps/login_register_negative_blank_email_credentials.steps.js index 077730cf..7b7c94fb 100644 --- a/webapp/e2e/steps/login_register_negative_blank_email_credentials.steps.js +++ b/webapp/e2e/steps/login_register_negative_blank_email_credentials.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/login_register_negative_blank_password_credentials.steps.js b/webapp/e2e/steps/login_register_negative_blank_password_credentials.steps.js index ea59247b..508ad96c 100644 --- a/webapp/e2e/steps/login_register_negative_blank_password_credentials.steps.js +++ b/webapp/e2e/steps/login_register_negative_blank_password_credentials.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/login_register_negative_incorrect_credentials.steps.js b/webapp/e2e/steps/login_register_negative_incorrect_credentials.steps.js index 3f1cddfc..d0d12347 100644 --- a/webapp/e2e/steps/login_register_negative_incorrect_credentials.steps.js +++ b/webapp/e2e/steps/login_register_negative_incorrect_credentials.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/logout_positive_logged_user.steps.js b/webapp/e2e/steps/logout_positive_logged_user.steps.js index f953de75..1bd5c71b 100644 --- a/webapp/e2e/steps/logout_positive_logged_user.steps.js +++ b/webapp/e2e/steps/logout_positive_logged_user.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/logout_positive_non_logged_user.steps.js b/webapp/e2e/steps/logout_positive_non_logged_user.steps.js index 508d3c73..ff54eb98 100644 --- a/webapp/e2e/steps/logout_positive_non_logged_user.steps.js +++ b/webapp/e2e/steps/logout_positive_non_logged_user.steps.js @@ -61,5 +61,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/playing_full_game_positive.steps.js b/webapp/e2e/steps/playing_full_game_positive.steps.js index 98567029..82abc88a 100644 --- a/webapp/e2e/steps/playing_full_game_positive.steps.js +++ b/webapp/e2e/steps/playing_full_game_positive.steps.js @@ -343,5 +343,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/playing_game_negative_non_logged_user.steps.js b/webapp/e2e/steps/playing_game_negative_non_logged_user.steps.js index a644b5a7..4a361c24 100644 --- a/webapp/e2e/steps/playing_game_negative_non_logged_user.steps.js +++ b/webapp/e2e/steps/playing_game_negative_non_logged_user.steps.js @@ -58,5 +58,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_blank_password.steps.js b/webapp/e2e/steps/register_negative_blank_password.steps.js index 5977074a..f77905d3 100644 --- a/webapp/e2e/steps/register_negative_blank_password.steps.js +++ b/webapp/e2e/steps/register_negative_blank_password.steps.js @@ -71,5 +71,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_blank_repeated_password.steps.js b/webapp/e2e/steps/register_negative_blank_repeated_password.steps.js index 96349b77..db009b5d 100644 --- a/webapp/e2e/steps/register_negative_blank_repeated_password.steps.js +++ b/webapp/e2e/steps/register_negative_blank_repeated_password.steps.js @@ -71,5 +71,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_blank_username.steps.js b/webapp/e2e/steps/register_negative_blank_username.steps.js index fa8d7e29..e744973a 100644 --- a/webapp/e2e/steps/register_negative_blank_username.steps.js +++ b/webapp/e2e/steps/register_negative_blank_username.steps.js @@ -61,5 +61,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_email_already_in_use_form.steps.js b/webapp/e2e/steps/register_negative_email_already_in_use_form.steps.js index 8cd00a7b..afdb36ad 100644 --- a/webapp/e2e/steps/register_negative_email_already_in_use_form.steps.js +++ b/webapp/e2e/steps/register_negative_email_already_in_use_form.steps.js @@ -68,5 +68,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_username_already_in_use_form.steps.js b/webapp/e2e/steps/register_negative_username_already_in_use_form.steps.js index 68e4971d..0f183d8c 100644 --- a/webapp/e2e/steps/register_negative_username_already_in_use_form.steps.js +++ b/webapp/e2e/steps/register_negative_username_already_in_use_form.steps.js @@ -61,5 +61,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_negative_wrong_email_format.steps.js b/webapp/e2e/steps/register_negative_wrong_email_format.steps.js index 18ad8805..ad089f77 100644 --- a/webapp/e2e/steps/register_negative_wrong_email_format.steps.js +++ b/webapp/e2e/steps/register_negative_wrong_email_format.steps.js @@ -71,5 +71,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/register_positive_form.steps.js b/webapp/e2e/steps/register_positive_form.steps.js index ccb366e9..d0ac8b4d 100644 --- a/webapp/e2e/steps/register_positive_form.steps.js +++ b/webapp/e2e/steps/register_positive_form.steps.js @@ -71,5 +71,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/seeing_rules_negative_non_logged_user.steps.js b/webapp/e2e/steps/seeing_rules_negative_non_logged_user.steps.js index 71dcbc2c..56b48c53 100644 --- a/webapp/e2e/steps/seeing_rules_negative_non_logged_user.steps.js +++ b/webapp/e2e/steps/seeing_rules_negative_non_logged_user.steps.js @@ -60,5 +60,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/seeing_rules_positive.steps.js b/webapp/e2e/steps/seeing_rules_positive.steps.js index 05bd5159..cc7d38d2 100644 --- a/webapp/e2e/steps/seeing_rules_positive.steps.js +++ b/webapp/e2e/steps/seeing_rules_positive.steps.js @@ -75,5 +75,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/seeing_stats_negative_non_logged_user.steps.js b/webapp/e2e/steps/seeing_stats_negative_non_logged_user.steps.js index 1a97a1cc..2c5bb0bd 100644 --- a/webapp/e2e/steps/seeing_stats_negative_non_logged_user.steps.js +++ b/webapp/e2e/steps/seeing_stats_negative_non_logged_user.steps.js @@ -61,5 +61,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file diff --git a/webapp/e2e/steps/seeing_stats_positive.steps.js b/webapp/e2e/steps/seeing_stats_positive.steps.js index 7db3e127..9168be4f 100644 --- a/webapp/e2e/steps/seeing_stats_positive.steps.js +++ b/webapp/e2e/steps/seeing_stats_positive.steps.js @@ -76,5 +76,6 @@ defineFeature(feature, test => { afterAll((done) => { done(); + browser.close(); }); }); \ No newline at end of file