mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Add some e2e tests for repeating behaviour (#43457)
* 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! 🔱 * 🚧: 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 * 🚧: Mob session work 🔱 * 🚧: 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>
This commit is contained in:
23
e2e/dashboards-suite/Repeating_an_empty_row.spec.ts
Normal file
23
e2e/dashboards-suite/Repeating_an_empty_row.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user