cypress/support/commands/document-title-handler.ts
Function assertDocumentTitle
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const assertDocumentTitle = (resource: string, action?: IAction) => {
switch (action) {
case "list":
cy.document()
.its("title")