From d085fdbbc0ac3548fcbbe2fab6a604bbcd55ba30 Mon Sep 17 00:00:00 2001 From: SkyBlaise Date: Sun, 28 Apr 2024 20:11:49 +0800 Subject: [PATCH] fix failing tcs --- .../cypress/tests/codeView/codeView_codeHighlighting.cy.js | 4 ++-- .../tests/codeView/codeView_creditBackgroundColour.cy.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/cypress/tests/codeView/codeView_codeHighlighting.cy.js b/frontend/cypress/tests/codeView/codeView_codeHighlighting.cy.js index 727478e8f0..11fba24770 100644 --- a/frontend/cypress/tests/codeView/codeView_codeHighlighting.cy.js +++ b/frontend/cypress/tests/codeView/codeView_codeHighlighting.cy.js @@ -38,7 +38,7 @@ describe('code highlighting works properly', () => { cy.get('.hljs-comment').contains('* Represents a Git Author.') .parent() // .line-content .parent() // .code - .should('have.css', 'background-color', 'rgb(230, 255, 237)'); // #e6ffed + .should('have.css', 'background-color', 'rgb(191, 246, 207)'); // #BFF6CF }); it('should highlight code when multiple authors are merged in a repo group', () => { @@ -62,7 +62,7 @@ describe('code highlighting works properly', () => { cy.get('.hljs-comment').contains('* MUI Colors module') // eugenepeh .parent() // .line-content .parent() // .code - .should('have.css', 'background-color', 'rgba(30, 144, 255, 0.19)') // #1e90ff, transparencyValue 30 + .should('have.css', 'background-color', 'rgba(30, 144, 255, 0.314)') // #1e90ff, transparencyValue 50 .then((firstAuthorColor) => { // eslint-disable-next-line quotes cy.get('.line-content').contains("'red': (") // jamessspanggg diff --git a/frontend/cypress/tests/codeView/codeView_creditBackgroundColour.cy.js b/frontend/cypress/tests/codeView/codeView_creditBackgroundColour.cy.js index b1eebb9de8..684f977e59 100644 --- a/frontend/cypress/tests/codeView/codeView_creditBackgroundColour.cy.js +++ b/frontend/cypress/tests/codeView/codeView_creditBackgroundColour.cy.js @@ -29,6 +29,7 @@ describe('credit background colour', () => { // open the code panel cy.get('.icon-button.fa-code') .should('exist') + .first() .click(); // frontend/src/styles/_colors.scss