Skip to content

Not in Archive Page: Keep all controls disabled for the full duration of a download#303

Open
Copilot wants to merge 3 commits intomainfrom
copilot/disable-controls-during-download
Open

Not in Archive Page: Keep all controls disabled for the full duration of a download#303
Copilot wants to merge 3 commits intomainfrom
copilot/disable-controls-during-download

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 22, 2026

  • Fix onDownloadOrCreateRootUrlButtonClicked: remove premature setActionInProgress(false) from finally block
  • Fix onDownloadOrCreateGroupButtonClicked: only call setActionInProgress(false) when download was NOT started
  • Add go_back_button property to NotInArchivePage in pages.py using #cr-back-button CSS ID
  • Add id="cr-back-button" to the Go Back button in the Not in Archive Page HTML
  • Add Playwright E2E test verifying all controls (except "← Go Back") are disabled during download
  • Run the new test to verify it passes
Original prompt

When the Not in Archive Page is running a download, all controls except the "← Go Back" button should be disabled. See screenshot.

Since making this change will involve JavaScript running on the browser page, you'll need to use a Playwright E2E test when covering it. See tests that use @awith_playwright for examples.

The user has attached the following file paths as relevant context:

  • .github/instructions/end_to_end_tests.instructions.md
  • .github/copilot-instructions.md

Created from VS Code.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Disable controls except Go Back button during download Not in Archive Page: Keep all controls disabled for the full duration of a download Mar 22, 2026
Copilot AI requested a review from davidfstr March 22, 2026 21:37

@property
def go_back_button(self) -> Locator:
return self.raw_page.locator('button:has-text("← Go Back")')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add CSS ID/selector like #cr-back-button instead of matching on text.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Add CSS ID/selector like #cr-back-button instead of matching on text.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 740d1e6. Added id="cr-back-button" to the Go Back button in the Not in Archive Page HTML and updated the locator to use #cr-back-button.

@davidfstr davidfstr marked this pull request as ready for review March 24, 2026 13:50
Copilot AI requested a review from davidfstr March 24, 2026 13:58
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.

2 participants