Skip to content

Commit

Permalink
Refactor: Bots System Tests (#891)
Browse files Browse the repository at this point in the history
* start fixing bots test, fix dialog ids when multiple dialogs present

* finish refactori bots tests

* add additional asserts in samples_test
  • Loading branch information
ChrisHuynh333 authored Jan 13, 2025
1 parent 9c15cbf commit a6a42bf
Show file tree
Hide file tree
Showing 7 changed files with 327 additions and 122 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= viral_dialog(open: open, size: :extra_large) do |dialog| %>
<%= viral_dialog(open: open, id: 'bot_tokens_dialog', size: :extra_large) do |dialog| %>
<%= dialog.with_header(
title: t("groups.bots.index.personal_access_tokens_listing_modal.title"),
) %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= viral_dialog(open: open) do |dialog| %>
<%= viral_dialog(open: open, id: 'revoke_confirmation_dialog') do |dialog| %>
<%= dialog.with_header(title: t("personal_access_tokens.revoke_confirmation.title")) %>
<%= dialog.with_section do %>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= viral_dialog(open: open, size: :extra_large) do |dialog| %>
<%= viral_dialog(open: open, id: 'bot_tokens_dialog', size: :extra_large) do |dialog| %>
<%= dialog.with_header(
title: t("projects.bots.index.personal_access_tokens_listing_modal.title"),
) %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= viral_dialog(open: open) do |dialog| %>
<%= viral_dialog(open: open, id: 'revoke_confirmation_dialog') do |dialog| %>
<%= dialog.with_header(title: t("personal_access_tokens.revoke_confirmation.title")) %>
<%= dialog.with_section do %>

Expand Down
Loading

0 comments on commit a6a42bf

Please sign in to comment.