Dashboards: Enable scenes by default (#93818)

* Mark Scenes feature toggles as GA

* Move old arch e2e to a new folder

* Run E2E on scenes by default

* Upgrade e2e-selectors to ensure the tests in Playwright works
This commit is contained in:
Ivan Ortega Alba
2024-09-30 11:49:02 +02:00
committed by GitHub
parent 42f1fcaf2c
commit 7bca69849f
163 changed files with 748 additions and 747 deletions

View File

@@ -2,9 +2,10 @@ import { expect, test } from '@grafana/plugin-e2e';
test('should redirect to start page when permissions to navigate to page is missing', async ({ page }) => {
await page.goto('/');
const homePageTitle = await page.title();
const homePageURL = new URL(page.url());
await page.goto('/datasources', { waitUntil: 'networkidle' });
expect(await page.title()).toEqual(homePageTitle);
const redirectedPageURL = new URL(page.url());
expect(homePageURL.pathname).toEqual(redirectedPageURL.pathname);
});
test('current user should have viewer role', async ({ page, request }) => {