Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 5 additions & 4 deletions .github/workflows/test-functional.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
name: Functional Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
# push:
# branches: [main]
# pull_request:
# branches: [main]
jobs:
test:
strategy:
Expand Down
15 changes: 15 additions & 0 deletions spec/challenges/xss-game.appspot.com/challenge_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Basic Run', type: :aruba do
before(:all) do
@binary_path = File.expand_path('../../../dalfox', __dir__)
end

it 'level1' do
run_command("#{@binary_path} url 'https://xss-game.appspot.com/level1/frame?query=a'")
expect(last_command_started).to have_output(/\[V\]/)
expect(last_command_started).to be_successfully_executed
end
end