diff --git a/www/e2e/cypress.config.ts b/www/e2e/cypress.config.ts index 489c4b833..925309ddd 100644 --- a/www/e2e/cypress.config.ts +++ b/www/e2e/cypress.config.ts @@ -13,6 +13,8 @@ export default defineConfig({ chromeWebSecurity: false, supportFile: 'cypress/support/index.ts', experimentalSessionAndOrigin: true, + viewportWidth: 1920, + viewportHeight: 1080, setupNodeEvents(on) { on('file:preprocessor', webpack(options)) }, diff --git a/www/e2e/cypress/pages/login.ts b/www/e2e/cypress/pages/login.ts index d254831ea..84635762d 100644 --- a/www/e2e/cypress/pages/login.ts +++ b/www/e2e/cypress/pages/login.ts @@ -1,10 +1,10 @@ import { Config } from '@config/config' -import { BasePage } from '@pages/base' -import { RootPage } from '@pages/root' import { Condition } from '@ctypes/condition' import { Mutations } from '@ctypes/mutations' import { Queries } from '@ctypes/queries' import { GQLInterceptor } from '@intercept/graphql' +import { BasePage } from '@pages/base' +import { RootPage } from '@pages/root' export class LoginPage extends BasePage { static login(email: string = Config.EMAIL, password: string = Config.PASSWORD): void { @@ -19,7 +19,7 @@ export class LoginPage extends BasePage { this._passwordInput.type(password) this._continueButton.should(Condition.BeVisible).and(Condition.BeEnabled).click() - GQLInterceptor.wait([Mutations.Login]) + GQLInterceptor.wait([Mutations.Login, Queries.Repos, Queries.Tags]) }) } diff --git a/www/e2e/cypress/pages/marketplace.ts b/www/e2e/cypress/pages/marketplace.ts index 0fb025d3d..6c31c2d61 100644 --- a/www/e2e/cypress/pages/marketplace.ts +++ b/www/e2e/cypress/pages/marketplace.ts @@ -1,7 +1,5 @@ import { Application } from '@ctypes/application' import { Condition } from '@ctypes/condition' -import { Queries } from '@ctypes/queries' -import { GQLInterceptor } from '@intercept/graphql' import { BasePage } from '@pages/base' export class MarketplacePage extends BasePage { @@ -12,10 +10,8 @@ export class MarketplacePage extends BasePage { } static openRepository(name: Application): void { - GQLInterceptor.wait([Queries.Repos, Queries.Tags]) - this._contains('a', name) .should(Condition.BeVisible) - .click() + .click({ force: true }) } }