-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from kendraio/angular-18-squashed Introduces Angular 18 compatibility, compatible Monaco Editor, Ag Grid issues, adds identifiers for Cypress tests to find, UI compatibility refactoring, styling and code clean-up, built on top of Gio's and J Black's work. There were over 70 commits built on an old base branch, so to avoid introducing unintended regressions and to make sensible review process more possible, I rebuilt it as 6 commits, that merge diff patches from key commits. Many unneeded linting changes were removed. About half as many lines are used, and a lot less files are changed too.
- Loading branch information
Showing
176 changed files
with
11,639 additions
and
7,896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { loadFlowCode } from "../support/helper"; | ||
|
||
// tslint:disable: quotemark | ||
/// <reference types="Cypress" /> | ||
|
||
const TEST_GRID_CONFIG = { | ||
type: "grid", | ||
passThrough: true, | ||
gridOptions: { | ||
pagination: true, // This may overlap with column headers with no styling | ||
paginationPageSize: 15, | ||
defaultColDef: { | ||
sortable: true, | ||
resizable: true, | ||
}, | ||
}, | ||
columnDefs: [ | ||
{ | ||
field: "0", | ||
headerName: "Column 1", | ||
}, | ||
{ | ||
field: "1", | ||
headerName: "Column 2", | ||
}, | ||
{ | ||
field: "2", | ||
headerName: "Column 3", | ||
}, | ||
{ | ||
field: "3", | ||
headerName: "Column 4", | ||
}, | ||
{ | ||
field: "4", | ||
headerName: "Column 5", | ||
}, | ||
], | ||
}; | ||
|
||
describe("Grid Block Columns", () => { | ||
beforeEach(() => { | ||
// Prevent external network requests for config | ||
cy.intercept( | ||
"GET", | ||
"https://kendraio.github.io/kendraio-adapter/config.json", | ||
{ fixture: "adapterConfig.json" } | ||
).as("adapterConfig"); | ||
|
||
// Prevent external network requests for fonts with empty CSS rule | ||
cy.intercept("https://fonts.googleapis.com/**", "*{ }").as("fonts"); | ||
|
||
loadFlowCode([TEST_GRID_CONFIG]); | ||
}); | ||
|
||
it("should display the columns side by side without text overlap", () => { | ||
// Wait for headers to load | ||
cy.get('.ag-header-cell').should('have.length.at.least', 2); | ||
cy.get('.ag-header-cell').then(($columns) => { | ||
const firstColumnBounds = $columns[0].getBoundingClientRect(); | ||
const secondColumnBounds = $columns[1].getBoundingClientRect(); | ||
|
||
// Assert that columns are side by side without overlap | ||
expect(firstColumnBounds.right).to.be.at.most(secondColumnBounds.left); | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.