Skip to content

Commit

Permalink
WIP: Scaffolding system specs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPrigorshnev committed Mar 6, 2024
1 parent 6b5340e commit 270cb36
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions spec/system/assign_post_popup_menu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,18 @@
end

it "unassigns the post" do
# await visit("/t/assignment-topic/44");
# await click(ellipsisButton);
# await click(popupMenu.unassign);
# assert
# .dom(".popup-menu")
# .doesNotExist("Popup menu has been closed");
# assert
# .dom(".post-stream .topic-post .assigned-to")
# .exists();
visit "/t/#{topic.id}"
# post.click_ellipsis_button
# post.click_unassign
# expect(popup_menu).to be_closed
# expect(post).to not_have_assigned
end

it "reassigns the post" do
# await visit("/t/assignment-topic/44");
# await click(ellipsisButton);
# await click(popupMenu.editAssignment);
# // todo assert post is not assigned anymore
visit "/t/#{topic.id}"
# post.click_ellipsis_button
# post.click_unassign
# expect(popup_menu).to be_closed
# expect(post).to not_have_assigned
end
end

0 comments on commit 270cb36

Please sign in to comment.