From c5b9f54299a2b52b07e752c86394f70129454c23 Mon Sep 17 00:00:00 2001 From: zhouyu Date: Tue, 7 Jan 2025 13:56:42 -0800 Subject: [PATCH] naming test files --- ...institution_catalog_spec.rb => institution_berkeley_spec.rb} | 2 +- spec/system/{public_record_spec.rb => public_result_spec.rb} | 0 .../{restrict_record_spec.rb => restricted_access_spec.rb} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename spec/system/{institution_catalog_spec.rb => institution_berkeley_spec.rb} (94%) rename spec/system/{public_record_spec.rb => public_result_spec.rb} (100%) rename spec/system/{restrict_record_spec.rb => restricted_access_spec.rb} (90%) diff --git a/spec/system/institution_catalog_spec.rb b/spec/system/institution_berkeley_spec.rb similarity index 94% rename from spec/system/institution_catalog_spec.rb rename to spec/system/institution_berkeley_spec.rb index 91c6da8..225cd08 100644 --- a/spec/system/institution_catalog_spec.rb +++ b/spec/system/institution_berkeley_spec.rb @@ -18,7 +18,7 @@ click_link('University of California Berkeley') end - it 'display record number' do + it 'display total record number bigger than 3' do expect(find('.page-entries')) total_record_num = find('.page-entries').text.split[-1].strip.to_i diff --git a/spec/system/public_record_spec.rb b/spec/system/public_result_spec.rb similarity index 100% rename from spec/system/public_record_spec.rb rename to spec/system/public_result_spec.rb diff --git a/spec/system/restrict_record_spec.rb b/spec/system/restricted_access_spec.rb similarity index 90% rename from spec/system/restrict_record_spec.rb rename to spec/system/restricted_access_spec.rb index 87a5143..1858f86 100644 --- a/spec/system/restrict_record_spec.rb +++ b/spec/system/restricted_access_spec.rb @@ -11,7 +11,7 @@ expect(page).to have_link('Login to View and Download') end - it 'clicking login to view and download link' do + it 'open calnet login page when clicking login to view and download link' do find('.btn.btn-default').click raw_url = page.current_url uri = URI.parse(raw_url)