mirror of
https://github.com/grafana/grafana.git
synced 2024-12-26 17:01:09 -06:00
ReturnToPrevious: Fix e2e test (#84938)
refactor: remove some waiting for elements that seem to have been removed
This commit is contained in:
parent
df2d0574c1
commit
e51a8c25d1
@ -1,6 +1,6 @@
|
||||
import { e2e } from '../utils';
|
||||
|
||||
describe.skip('ReturnToPrevious button', () => {
|
||||
describe('ReturnToPrevious button', () => {
|
||||
beforeEach(() => {
|
||||
e2e.flows.login(Cypress.env('USERNAME'), Cypress.env('PASSWORD'));
|
||||
cy.window().then((win) => {
|
||||
@ -16,9 +16,6 @@ describe.skip('ReturnToPrevious button', () => {
|
||||
});
|
||||
|
||||
it('should appear when changing context and go back to alert rule when clicking "Back"', () => {
|
||||
// make sure the dashboard finished loading
|
||||
cy.get('button[aria-label*="BarChart - Label Rotation & Skipping"]').should('be.visible');
|
||||
|
||||
// check whether all elements of RTP are available
|
||||
e2e.components.ReturnToPrevious.buttonGroup().should('be.visible');
|
||||
e2e.components.ReturnToPrevious.dismissButton().should('be.visible');
|
||||
@ -42,9 +39,6 @@ describe.skip('ReturnToPrevious button', () => {
|
||||
it('should not persist when going back to the alert rule details view', () => {
|
||||
e2e.components.ReturnToPrevious.buttonGroup().should('be.visible');
|
||||
|
||||
// make sure the dashboard finished loading
|
||||
cy.get('button[aria-label*="BarChart - Label Rotation & Skipping"]').should('be.visible');
|
||||
|
||||
cy.visit('/alerting/list');
|
||||
e2e.components.AlertRules.groupToggle().first().click();
|
||||
cy.get('a[title="View"]').click();
|
||||
@ -52,9 +46,6 @@ describe.skip('ReturnToPrevious button', () => {
|
||||
});
|
||||
|
||||
it('should override the button label and change the href when user changes alert rules', () => {
|
||||
// make sure the dashboard finished loading
|
||||
cy.get('button[aria-label*="BarChart - Label Rotation & Skipping"]').should('be.visible');
|
||||
|
||||
e2e.components.ReturnToPrevious.backButton()
|
||||
.find('span')
|
||||
.contains('Back to e2e-ReturnToPrevious-test')
|
||||
@ -67,9 +58,6 @@ describe.skip('ReturnToPrevious button', () => {
|
||||
cy.url().as('alertRule2Url');
|
||||
cy.get('a').contains('View panel').click();
|
||||
|
||||
// make sure the dashboard finished loading
|
||||
cy.get('button[aria-label*="BarChart - Label Rotation & Skipping"]').should('be.visible');
|
||||
|
||||
e2e.components.ReturnToPrevious.backButton()
|
||||
.find('span')
|
||||
.contains('Back to e2e-ReturnToPrevious-test-2')
|
||||
|
Loading…
Reference in New Issue
Block a user