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

Make BrowserPanel load Entry.Link if valid, error page if invalid #32

Merged
merged 5 commits into from
Mar 1, 2019

Conversation

rlrh
Copy link

@rlrh rlrh commented Feb 28, 2019

Resolves part of #27

When an entry is selected, BrowserPanel loads its link, or an error page when an error occurs (e.g. no internet, URL invalid).

assertEquals(expectedUrl, getBrowserPanel().getLoadedUrl()) is removed from AddressBookSystemTest#assertSelectedCardChanged so that TypicalEntries does not need to contain valid links, as otherwise an invalid link will result in the loaded URL being the path to error page instead of the expected URL.
However, BrowserPanelTest tests for this correct behaviour when loading a valid and invalid (local) link.

@rlrh rlrh added this to the v1.1 milestone Feb 28, 2019
@rlrh rlrh requested review from thomastanck and qjqqyy and removed request for thomastanck March 1, 2019 04:01
@rlrh rlrh merged commit 583d6ab into CS2103-AY1819S2-W10-1:master Mar 1, 2019
@rlrh rlrh deleted the ui-entry-link branch March 1, 2019 09:58
@rlrh rlrh added this to In progress in Automated kanban via automation Mar 3, 2019
@rlrh rlrh added the type.Story A user story label Mar 3, 2019
@epicfailname epicfailname moved this from In progress to Done in Automated kanban Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type.Story A user story
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants