Fix E2E test cases and setup for GHA (#26944)
* Fix E2E test cases and setup for GHA * Fix more test cases, apply recommendations
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8da64a5c34
Коммит
c9cb3d5bb0
@@ -15,7 +15,7 @@ import {checkMetrics, toggleMetricsOn} from './helper';
|
||||
describe('Metrics > No license', () => {
|
||||
before(() => {
|
||||
cy.shouldNotRunOnCloudEdition();
|
||||
cy.apiAdminLogin();
|
||||
cy.apiAdminLogin().wait(50);
|
||||
cy.apiDeleteLicense();
|
||||
toggleMetricsOn();
|
||||
});
|
||||
|
||||
@@ -51,7 +51,7 @@ function verifyCanNavigate(testCase) {
|
||||
|
||||
// * Verify that it redirects to the URL and matches with the header
|
||||
cy.url().should('include', testCase.url);
|
||||
cy.get('.admin-console__header', {timeout: TIMEOUTS.ONE_MIN}).
|
||||
cy.get(`${testCase.headerSelector || '.admin-console__header'}`, {timeout: TIMEOUTS.ONE_MIN}).
|
||||
should('be.visible').
|
||||
and(testCase.headerContains ? 'contain' : 'have.text', testCase.header);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user