Skip to content

Commit 9772856

Browse files
committed
Add smoke tests for the deb pages
Reaches both lists and their empty states, then opens the remote form to check the APT-only fields render, since those are what the shared form gained for this plugin. Refs #277 Assisted By: Cursor (Claude Opus 5)
1 parent 56d00e8 commit 9772856

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

‎cypress/e2e/smoke.js‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,27 @@ describe('UI smoke tests', () => {
5151
// TODO
5252
});
5353

54+
it('Deb repositories', () => {
55+
cy.ui('deb/repositories');
56+
cy.assertTitle('Repositories');
57+
58+
cy.contains('No repositories yet');
59+
});
60+
61+
it('Deb remotes', () => {
62+
cy.ui('deb/remotes');
63+
cy.assertTitle('Remotes');
64+
65+
cy.contains('No remotes yet');
66+
67+
// an apt remote cannot sync without being told which suites to fetch, so the
68+
// form carries fields the other plugins have no use for
69+
cy.contains('button', 'Add remote').click();
70+
cy.get('#distributions');
71+
cy.get('#components');
72+
cy.get('#architectures');
73+
});
74+
5475
it('File repositories', () => {
5576
cy.ui('file/repositories');
5677
cy.assertTitle('Repositories');

0 commit comments

Comments
 (0)