From 36e752d83334a20e42fa5eac0f3076b371b9372d Mon Sep 17 00:00:00 2001 From: alexpaxton Date: Thu, 2 Apr 2020 13:45:02 -0700 Subject: [PATCH] fix(ui): actually fix e2e tests --- ui/cypress/e2e/checks.test.ts | 3 +++ ui/cypress/e2e/notificationEndpoints.test.ts | 2 +- ui/cypress/e2e/notificationRules.test.ts | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/cypress/e2e/checks.test.ts b/ui/cypress/e2e/checks.test.ts index 76d10f34c6d..2fdd42f38c9 100644 --- a/ui/cypress/e2e/checks.test.ts +++ b/ui/cypress/e2e/checks.test.ts @@ -22,6 +22,9 @@ describe('Checks', () => { }) }) cy.get('[data-testid="resource-list--body"]', {timeout: PAGE_LOAD_SLA}) + + // User can only see all panels at once on large screens + cy.getByTestID('alerting-tab--checks').click({force: true}) }) it('can validate a threshold check', () => { diff --git a/ui/cypress/e2e/notificationEndpoints.test.ts b/ui/cypress/e2e/notificationEndpoints.test.ts index 55c4d7d46d1..772e76213e6 100644 --- a/ui/cypress/e2e/notificationEndpoints.test.ts +++ b/ui/cypress/e2e/notificationEndpoints.test.ts @@ -31,7 +31,7 @@ describe('Notification Endpoints', () => { cy.visit(`${orgs}/${id}${alerting}`) // User can only see all panels at once on large screens - cy.getByTestID('alerting-tab--endpoints').click() + cy.getByTestID('alerting-tab--endpoints').click({force: true}) }) }) }) diff --git a/ui/cypress/e2e/notificationRules.test.ts b/ui/cypress/e2e/notificationRules.test.ts index 8dec97af695..b763e41d798 100644 --- a/ui/cypress/e2e/notificationRules.test.ts +++ b/ui/cypress/e2e/notificationRules.test.ts @@ -26,9 +26,6 @@ describe('NotificationRules', () => { // visit the alerting index cy.fixture('routes').then(({orgs, alerting}) => { cy.visit(`${orgs}/${id}${alerting}`) - - // User can only see all panels at once on large screens - cy.getByTestID('alerting-tab--rules').click() }) }) }) @@ -155,6 +152,9 @@ describe('NotificationRules', () => { }) it('can create a notification rule', () => { + // User can only see all panels at once on large screens + cy.getByTestID('alerting-tab--rules').click({force: true}) + const ruleName = 'my-new-rule' cy.getByTestID('create-rule').click()