Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 167e8e8

Browse files
committed
Merge branch 'cypress-test-fix' into 'master'
fix(ui): prevent cypress test from failing See merge request postgres-ai/database-lab!807
2 parents 8119241 + 3013588 commit 167e8e8

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

‎ui/.gitlab-ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ semgrep-sast:
5757
reports:
5858
sast: gl-sast-report.json
5959

60-
test:
60+
e2e-ce-ui-test:
6161
<<: *ui_checks
6262
<<: *ui_cache
6363
image: node:latest
64-
stage: test
64+
stage: integration-test
6565
before_script:
6666
- apt update && apt install curl
6767
- apt install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb

‎ui/packages/ce/cypress.config.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { defineConfig } from 'cypress'
22

33
export default defineConfig({
4-
pageLoadTimeout: 10000,
5-
defaultCommandTimeout: 10000,
64
e2e: {
75
testIsolation: false,
86
supportFile: false,

‎ui/packages/ce/cypress/e2e/tabs.cy.js‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
/* eslint-disable no-undef */
22

33
describe('Instance page should have "Configuration" tab with content', () => {
4-
beforeEach(() => {
5-
cy.visit('/')
6-
})
7-
84
it('should have token in local storage', () => {
95
cy.window().then((win) => {
106
if (!win.localStorage.getItem('token')) {
11-
window.localStorage.setItem('token', 'demo-token')
7+
win.localStorage.setItem('token', 'demo-token')
128
}
139
})
1410
})
15-
1611
it('should have "Configuration" tab with content', () => {
17-
cy.once('uncaught:exception',()=>false)
12+
cy.visit('/')
1813
cy.get('.MuiTabs-flexContainer').contains('Configuration')
1914
cy.get('.MuiBox-root').contains('p').should('have.length.greaterThan', 0)
2015
})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /