Skip to content

Commit 22c4bb0

Browse files
committed
Fix bucket-explorer spec
1 parent dba8e5f commit 22c4bb0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

openc3/lib/openc3/system/system.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def self.setup_targets(target_names, base_dir, scope:)
8989
FileUtils.mkdir_p("#{base_dir}/targets")
9090
bucket = Bucket.getClient()
9191
target_names.each do |target_name|
92-
# Retrieve bucket/targets/target_name/target_id.zip
92+
# Retrieve bucket/targets/target_name/<TARGET>_current.zip
9393
zip_path = "#{base_dir}/targets/#{target_name}_current.zip"
9494
FileUtils.mkdir_p(File.dirname(zip_path))
9595
bucket_key = "#{scope}/target_archives/#{target_name}/#{target_name}_current.zip"

openc3/python/openc3/system/system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def setup_targets(cls, target_names, base_dir, scope=OPENC3_SCOPE):
6666
os.makedirs(f"{base_dir}/targets", exist_ok=True)
6767
bucket = Bucket.getClient()
6868
for target_name in target_names:
69-
# Retrieve bucket/targets/target_name/target_id.zip
69+
# Retrieve bucket/targets/target_name/<TARGET>_current.zip
7070
zip_path = f"{base_dir}/targets/{target_name}_current.zip"
7171
bucket_key = f"{scope}/target_archives/{target_name}/{target_name}_current.zip"
7272
Logger.info(f"Retrieving {bucket_key} from targets bucket")

playwright/tests/bucket-explorer.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ test('view file', async ({ page, utils }) => {
155155
await page.locator('[data-test="search-input"] input').fill('')
156156
await page.getByText('/ INST').click()
157157
await utils.sleep(500) // Allow the page to render
158+
await page.locator('[data-test="search-input"] input').fill('target.txt')
158159
await page.locator('[data-test="view-file"]').first().click()
159160
await expect(page.locator('pre')).toContainText('LANGUAGE ruby')
160161
await page.getByRole('button', { name: 'Ok' }).click()

0 commit comments

Comments
 (0)