From ee474126954b6e7d0d6faaaa70be0ec4f65fb084 Mon Sep 17 00:00:00 2001 From: kunal-singh-tamu Date: Thu, 24 Oct 2024 19:20:13 -0500 Subject: [PATCH] Cucumber scenarios to test Admin Dashboard access after login and redirect to admin dashboard successfully. --- rails_root/features/admin_management.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rails_root/features/admin_management.feature diff --git a/rails_root/features/admin_management.feature b/rails_root/features/admin_management.feature new file mode 100644 index 0000000..f1e6a72 --- /dev/null +++ b/rails_root/features/admin_management.feature @@ -0,0 +1,12 @@ +Feature: Admin Dashboard Access + I want to see the Admin Dashboard link + So that I can access administrative functions + + Background: + Given I am on the homepage + And I try to login + + Scenario: Principal sees "Admin Dashboard" link and clicks it + Then I should see "Admin Dashboard" in the header + When I click on "Admin Dashboard" + Then I should be on the Admin Dashboard page