Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[O2B-844] Filter according to B field in runs #1803

Merged
merged 20 commits into from
Dec 11, 2024
Merged
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
2 changes: 1 addition & 1 deletion lib/public/views/Runs/ActiveColumns/runsActiveColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,6 @@ export const runsActiveColumns = {
name: 'L3 / Dipole',
visible: false,
filter: ({ aliceL3AndDipoleCurrentFilter }) => selectionDropdown(aliceL3AndDipoleCurrentFilter, { selectorPrefix: 'l3-dipole-current' }),
profiles: ['runsPerLhcPeriod', 'runsPerDataPass', 'runsPerSimulationPass'],
profiles: ['runsPerLhcPeriod', 'runsPerDataPass', 'runsPerSimulationPass', profiles.none],
},
};
71 changes: 51 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions test/public/runs/overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ module.exports = () => {
it('should successfully filter on tags', async () => {
await waitForTableLength(page, 8);

// Open filter toggle
// Open filter toggle and wait for the dropdown to be visible
await pressElement(page, '.tags-filter .dropdown-trigger');
await pressElement(page, '#tag-dropdown-option-FOOD', true);
await pressElement(page, '#tag-dropdown-option-RUN', true);
Expand Down Expand Up @@ -596,6 +596,17 @@ module.exports = () => {
expect(runDurationList.every((runDuration) => runDuration === 'UNKNOWN')).to.be.true;
});

it('should successfully apply alice currents filters', async () => {
await pressElement(page, '#reset-filters');

const popoverSelector = await getPopoverSelector(await page.waitForSelector('.aliceL3AndDipoleCurrent-filter .popover-trigger'));
await pressElement(page, `${popoverSelector} .dropdown-option:last-child`, true); // Select 30003kA/0kA

await expectColumnValues(page, 'runNumber', ['54', '53', '52']);

await pressElement(page, '#reset-filters');
});

it('Should successfully filter runs by their run quality', async () => {
await goToPage(page, 'run-overview');
const filterInputSelectorPrefix = '#runQualityCheckbox';
Expand Down Expand Up @@ -1116,7 +1127,7 @@ module.exports = () => {
await waitForNavigation(page, () => pressElement(page, 'a#home'));
await waitForNavigation(page, () => pressElement(page, 'a#run-overview'));

// Not running run
// Not running run, wait for popover to be visible
await pressElement(page, '#row104-runNumber-text .popover-trigger');
let popoverSelector = await getPopoverSelector(await page.waitForSelector('#row104-runNumber-text .popover-trigger'));
await page.waitForSelector(popoverSelector);
Expand Down
Loading