This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 6deec72  Add test of just chromedriver
6deec72 is described below

commit 6deec727624e7ebaf4242cd623d5ef48b313bdf7
Author: Sebb <[email protected]>
AuthorDate: Mon Mar 28 16:33:56 2022 +0100

    Add test of just chromedriver
---
 .github/workflows/unittestagenda.yml   |  2 +-
 www/board/agenda/spec/navigate_spec.rb | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/unittestagenda.yml 
b/.github/workflows/unittestagenda.yml
index 7886433..760c0e9 100644
--- a/.github/workflows/unittestagenda.yml
+++ b/.github/workflows/unittestagenda.yml
@@ -45,4 +45,4 @@ jobs:
     - name: test agenda code
       run: |
         cd www/board/agenda
-        bundle exec rake
+        TEST_AO_PAGE=1 bundle exec rake
diff --git a/www/board/agenda/spec/navigate_spec.rb 
b/www/board/agenda/spec/navigate_spec.rb
index 9de520d..29ce396 100644
--- a/www/board/agenda/spec/navigate_spec.rb
+++ b/www/board/agenda/spec/navigate_spec.rb
@@ -4,6 +4,16 @@
 
 require_relative 'spec_helper'
 
+if ENV['TEST_AO_PAGE'] # code to test chromedriver only
+  feature 'chromedriver', js: true do
+    it 'should load ASF page' do
+      visit('http://apache.org')
+      expect(page).to have_content('The Apache Way')
+      expect(page).to have_no_content('The quick brown fox')
+    end
+  end
+end
+
 feature 'navigation', js: true do
   it "should navigate to the Cocoon report and back" do
     skip "headless browser test not run on Travis" if ENV['TRAVIS']

Reply via email to