test: Address flaky setup e2e (no-changelog) (#6085)

* test: Add /setup intercept for `skipSetup` command (no-changelog)

* Drop all tables for e2e reset, intercept account setup request

* Fix linting issues

* Allow to skip setup account request intercept and linting fixes

* Make sure variables are loaded

* Use PATCH for enabling of e2e features

* Do not exclude migration table from truncation

* Add user sign-up intercept
This commit is contained in:
OlegIvaniv
2023-05-03 14:06:06 +02:00
committed by GitHub
parent 700cc39cbc
commit e88232ede2
6 changed files with 65 additions and 35 deletions

View File

@@ -16,6 +16,7 @@ describe('Variables', () => {
});
it('should show the unlicensed action box when the feature is disabled', () => {
cy.disableFeature('feat:variables');
cy.signin({ email, password });
cy.visit(variablesPage.url);
@@ -30,7 +31,10 @@ describe('Variables', () => {
beforeEach(() => {
cy.signin({ email, password });
cy.intercept('GET', '/rest/variables').as('loadVariables');
cy.visit(variablesPage.url);
cy.wait(['@loadVariables', '@loadSettings']);
});
it('should show the licensed action box when the feature is enabled', () => {