Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { estimateDisplayableRowsCount } from '../../../utilities/estimateDisplay
import { paginationComponent } from '../../../components/Pagination/paginationComponent.js';
import { filtersPanelPopover } from '../../../components/Filters/common/filtersPanelPopover.js';

const TABLEROW_HEIGHT = 58;
const TABLEROW_HEIGHT = 65.3;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me the browser still displays a size of 57.6 (~58). How did you come to this new value?

// Estimate of the navbar and pagination elements height total; Needs to be updated in case of changes;
const PAGE_USED_HEIGHT = 181;
const PAGE_USED_HEIGHT = 260;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, the browser estimate is around 181, but in my tests an 185 is better as we have paddings in rem values. A 260 is way too big.


/**
* The shows the environment table
Expand Down
8 changes: 4 additions & 4 deletions test/public/envs/overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = () => {

it('Should display the correct items counter at the bottom of the page', async () => {
await expectInnerText(page, '#firstRowIndex', '1');
await expectInnerText(page, '#lastRowIndex', '9');
await expectInnerText(page, '#lastRowIndex', '7');
await expectInnerText(page, '#totalRowsCount', '9');
});

Expand Down Expand Up @@ -139,15 +139,15 @@ module.exports = () => {
await checkEnvironmentStatusColor(2, 3);
await checkEnvironmentStatusColor(3, 3);
await checkEnvironmentStatusColor(6, 3);
await checkEnvironmentStatusColor(9, 3);
await checkEnvironmentStatusColor(7, 3);
});

it('can set how many environments are available per page', async () => {
// Expect the amount selector to currently be set to 9 (because of the defined page height)
// Expect the amount selector to currently be set to 7 (because of the defined page height)
const amountSelectorId = '#amountSelector';
const amountSelectorButton = await page.waitForSelector(`${amountSelectorId} button`);
const amountSelectorButtonText = await page.evaluate((element) => element.innerText, amountSelectorButton);
expect(amountSelectorButtonText.trim().endsWith('9')).to.be.true;
expect(amountSelectorButtonText.trim().endsWith('7')).to.be.true;

// Expect the dropdown options to be visible when it is selected
await pressElement(page, `${amountSelectorId} button`);
Expand Down
Loading