Skip to content

Commit

Permalink
chore: skip gist tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CjS77 committed Jan 17, 2024
1 parent 270afe5 commit 432b985
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/spec/features/security_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
scenario "a notice is present for filesystem snoopers" do
within(:header) { click_on("Run") }
within(:output, :stdout) do
expect(page).to have_content 'www.rust-lang.org/policies/security'
expect(page).to have_content 'https://github.com/tari-project/tari/blob/development/SECURITY.md'
end
end

Expand Down
1 change: 1 addition & 0 deletions tests/spec/features/sharing_with_others_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# This test does more than one thing so we can avoid sending too
# many requests to GitHub
scenario "saving to a Gist" do
skip "Gist not supported yet"
editor.set(code)

in_channel_menu { click_on("Nightly") }
Expand Down
6 changes: 6 additions & 0 deletions tests/spec/features/url_parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,40 +32,46 @@
end

scenario "loading from a Gist" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c'

expect(editor).to have_line 'This source code came from a Gist'
end

scenario "loading from a Gist preserves the links" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c'

within(:output) { click_on 'Share' }
expect(page).to have_link("Permalink to the playground", href: /gist=20fb1e0475f890d0fdb7864e3ad0820c/)
end

scenario "loading from a Gist with a channel preserves the channel" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c&version=beta'

expect(page).to have_channel('Beta')
expect(page).to have_link("Permalink to the playground", href: /version=beta/)
end

scenario "loading from a Gist with a mode preserves the mode" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c&mode=release'

expect(page).to have_mode('Release')
expect(page).to have_link("Permalink to the playground", href: /mode=release/)
end

scenario "loading from a Gist with an edition preserves the edition" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c&edition=2018'

expect(page).to have_edition('2018')
expect(page).to have_link("Permalink to the playground", href: /edition=2018/)
end

scenario "loading from a Gist without an edition selects Rust 2015" do
skip "Gist not supported yet"
visit '/?gist=20fb1e0475f890d0fdb7864e3ad0820c'

expect(page).to have_edition('2015')
Expand Down

0 comments on commit 432b985

Please sign in to comment.