mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 01:32:08 +08:00

* add auto grid e2e tests * remove unnecessary clean up in grouping tests * refaactor repeated code * Refactor some repeated blocks --------- Co-authored-by: kay delaney <kay@grafana.com>
15 lines
394 B
TypeScript
15 lines
394 B
TypeScript
import { e2e } from '../..';
|
|
|
|
export const verifyPanelsStackedVertically = () => {
|
|
let initialOffset = 0;
|
|
e2e.components.Panels.Panel.title('New panel').each((el) => {
|
|
if (!initialOffset) {
|
|
initialOffset = el.offset().top;
|
|
} else {
|
|
const elOffset = el.offset().top;
|
|
expect(elOffset).to.be.greaterThan(initialOffset);
|
|
initialOffset = elOffset;
|
|
}
|
|
});
|
|
};
|