Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: skip gist tests #9

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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