mirror of
https://github.com/grafana/grafana.git
synced 2026-08-17 16:45:05 -05:00
* user essentials mob! 🔱 * user essentials mob! 🔱 * WIP: Mob session work 🚧 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * mob next [ci-skip] [ci skip] [skip ci] * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * :construction:: Mob session work 🔱 * user essentials mob! 🔱 * user essentials mob! 🔱 * Move repeats suite under dashboard suite * remove these generated files * move repeats-suite into dashboards-suite * Reexport dashboard jsons from play and update them * :construction:: Mob session work 🔱 * :construction:: Mob session work 🔱 * Rename dashboards to work with stripnulls * Run stripnulls * Add repeat to row schema * Clean up the rest of the repeating dashboards * Fix tooltip sorting * Update older dashboards * Update golden files so tests pass * format this to ensure consistent tabs/spaces * undo whitespace changes * Update scripts/stripnulls.sh Co-authored-by: sam boyer <sam.boyer@grafana.com> * update schema versions and test Co-authored-by: thisisobate <obasiuche62@gmail.com> Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com> Co-authored-by: joshhunt <josh@trtr.co> Co-authored-by: kay delaney <kay@grafana.com> Co-authored-by: Alexandra Vargas <alexa1866@gmail.com> Co-authored-by: sam boyer <sam.boyer@grafana.com>
24 lines
777 B
TypeScript
24 lines
777 B
TypeScript
import { e2e } from '@grafana/e2e';
|
|
const PAGE_UNDER_TEST = 'dtpl2Ctnk/repeating-an-empty-row';
|
|
|
|
describe('Repeating empty rows', () => {
|
|
it('should be able to repeat empty rows vertically', () => {
|
|
e2e.flows.login('admin', 'admin');
|
|
e2e.flows.openDashboard({ uid: PAGE_UNDER_TEST });
|
|
|
|
let prevTop = Number.NEGATIVE_INFINITY;
|
|
const rowTitles = ['Row title 1', 'Row title 2', 'Row title 3'];
|
|
rowTitles.forEach((title) => {
|
|
e2e.components.DashboardRow.title(title)
|
|
.should('be.visible')
|
|
.then(($el) => {
|
|
const { top } = $el[0].getBoundingClientRect();
|
|
expect(top).to.be.greaterThan(prevTop);
|
|
prevTop = top;
|
|
});
|
|
});
|
|
});
|
|
|
|
// TODO: Add test for the case when we pass variables in the url
|
|
});
|