From 9a5717d6e22fafbb32364ab608ae8a38b853c32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Vra=C5=BEi=C4=8D?= Date: Thu, 5 Oct 2023 17:39:44 +0200 Subject: [PATCH] added e2e tags to the main containers and two items --- app/assets/javascripts/dashboard/recent_work.js | 1 + app/assets/javascripts/repositories/index.js | 2 +- app/views/dashboards/show.html.erb | 2 +- app/views/layouts/application.html.erb | 2 +- app/views/projects/index.html.erb | 2 +- app/views/repositories/_view_archived_btn.html.erb | 2 +- app/views/users/sessions/new.html.erb | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/dashboard/recent_work.js b/app/assets/javascripts/dashboard/recent_work.js index 3403b487b..7f1bf0807 100644 --- a/app/assets/javascripts/dashboard/recent_work.js +++ b/app/assets/javascripts/dashboard/recent_work.js @@ -17,6 +17,7 @@ var DasboardRecentWorkWidget = (function() { recentWorkItemType.attr('title', `${item.type} ID: ${item.code}`); recentWorkItemType.tooltip(); } + recentWorkItemType.attr('data-e2e', `e2e-dashRecentWork-${item.name}`); }); } diff --git a/app/assets/javascripts/repositories/index.js b/app/assets/javascripts/repositories/index.js index 354dd74ea..dc85b1aea 100644 --- a/app/assets/javascripts/repositories/index.js +++ b/app/assets/javascripts/repositories/index.js @@ -67,7 +67,7 @@ orderable: false, render: function() { return `
- +
`; } diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index b46a22b58..97b9e555a 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -1,7 +1,7 @@ <% provide :head_title, t('nav.label.dashboard') %> <% if current_team %> -
+
<%= render partial: 'quick_start' %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a4e75c794..025693f7f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -79,7 +79,7 @@
<%= render "shared/navigation/left" if user_signed_in? %>
-
+
<%= render "shared/navigation/navigator" %>
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 75e0465f0..e7aaff248 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -6,7 +6,7 @@ <%= render partial: 'shared/sidebar/projects', locals: { team: current_team, sort: nil, view_mode: projects_view_mode } if current_team %> <% end %> -
+
<%= render partial: 'projects/index/header', locals: { current_folder: current_folder} %> diff --git a/app/views/repositories/_view_archived_btn.html.erb b/app/views/repositories/_view_archived_btn.html.erb index c47897a70..cf1c2e02f 100644 --- a/app/views/repositories/_view_archived_btn.html.erb +++ b/app/views/repositories/_view_archived_btn.html.erb @@ -5,6 +5,6 @@

<%= t('labels.archived')%> <%= t('libraries.index.head_title_archived') %>

-
+
diff --git a/app/views/users/sessions/new.html.erb b/app/views/users/sessions/new.html.erb index 306d07a1f..0efcd7c9e 100644 --- a/app/views/users/sessions/new.html.erb +++ b/app/views/users/sessions/new.html.erb @@ -1,6 +1,6 @@ <% provide(:head_title, t("devise.sessions.new.head_title")) %> <% content_for(:body_class, 'sign-in-layout') %> -