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

Fix: Website commands now use lazy lookup #98

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

schneems
Copy link
Member

Supporting pre.erb means that any lookups need to happen at the last possible moment. Websites have a name lookup feature similar to background tasks. Background tasks adopted a lazy lookup model in 4.1.2.

Ensuring these are all covered under test:

  • website.screenshot is covered:
  1) Error:
SystemsCliTest#test_screenshots_dir:
  2) Error:
IntegrationWebsiteTest#test_screenshot_command:
  • website.visit is covered
  1) Error:
SystemsCliTest#test_screenshots_dir:
  2) Error:
IntegrationWebsiteTest#test_screenshot_command:
  • website.navigate is not covered. Adding a call to the integration test so it's at last exercised

Supporting `pre.erb` means that any lookups need to happen at the last possible moment. Websites have a name lookup feature similar to background tasks. Background tasks adopted a lazy lookup model in `4.1.2`.

Ensuring these are all covered under test:

- `website.screenshot` is covered:

```
  1) Error:
SystemsCliTest#test_screenshots_dir:
  2) Error:
IntegrationWebsiteTest#test_screenshot_command:
```

- `website.visit` is covered

```
  1) Error:
SystemsCliTest#test_screenshots_dir:
  2) Error:
IntegrationWebsiteTest#test_screenshot_command:
```

- `website.navigate` is not covered. Adding a call to the integration test so it's at last exercised
@schneems schneems force-pushed the schneems/delayed-website branch from d702e3f to c7b013c Compare December 16, 2024 18:08
@schneems schneems merged commit c682c98 into main Dec 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant