Skip to content

Commit 882a005

Browse files
committed
fix: resolve ESLint errors in Cypress configuration and tests
Fix ESLint violations to make pipeline pass: - Split chained Cypress command (scrollIntoView) to separate line (cypress/unsafe-to-chain-command) - Add trailing comma in cypress.config.js retries object (comma-dangle) All ESLint checks now pass with 0 warnings and 0 errors.
1 parent 157c561 commit 882a005

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = defineConfig({
1010
requestTimeout: 30000,
1111
retries: {
1212
runMode: 2,
13-
openMode: 0
13+
openMode: 0,
1414
},
1515
setupNodeEvents(on, config) {
1616
// implement node event listeners here.

cypress/support/commands.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ Cypress.Commands.add('navigateToInterface', (path) => {
7474
}).as('getConfigDiff');
7575

7676
// Scroll settings link into view to handle position:fixed overflow issues
77-
cy.get('a[href="/admin/settings"]').scrollIntoView().should('be.visible').click();
77+
cy.get('a[href="/admin/settings"]').scrollIntoView();
78+
cy.get('a[href="/admin/settings"]').should('be.visible').click();
7879
cy.get('a[href="/admin/settings/config-sync"]').should('be.visible').click();
7980

8081
cy.wait('@getConfigDiff').its('response.statusCode').should('equal', 200);

0 commit comments

Comments
 (0)