Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up integration tests and add listeners for backend calls #11847

Merged
merged 29 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1a64456
Remove section headers from integration tests
somebody1234 Nov 28, 2024
d5eee57
Add `calls` to E2E tests
somebody1234 Nov 29, 2024
3a22990
Adjust tests
somebody1234 Dec 2, 2024
7f9e042
Fix type errors
somebody1234 Dec 2, 2024
0072570
Use named imports in Dashboard integration tests
somebody1234 Dec 2, 2024
490602e
WIP: `goToSettingsTabActions`
somebody1234 Dec 2, 2024
c7f4ea0
Update `userSettings.spec` to use new API
somebody1234 Dec 2, 2024
b7daa29
Finish updating `userSettings.spec` to use new API
somebody1234 Dec 3, 2024
62a9427
Update `organizationSettings.spec` to use new API
somebody1234 Dec 3, 2024
75efa0a
Switch integration tests to use named imports
somebody1234 Dec 3, 2024
554e174
Add `DrivePageActions.withSearchBar` to switch `assetSearchBar.spec` …
somebody1234 Dec 3, 2024
e049e33
Basic conversion of E2E tests to new structure
somebody1234 Dec 11, 2024
3538721
Fix circular imports in integration tests
somebody1234 Dec 11, 2024
e1cbb0e
Merge branch 'develop' into wip/sb/more-integration-tests
somebody1234 Dec 11, 2024
2e086f0
Fix Playwright imports
somebody1234 Dec 11, 2024
20af42c
Formatting
somebody1234 Dec 11, 2024
9b2d078
Use `page` from `actions.step`
somebody1234 Dec 11, 2024
8179f17
Fix broken integration tests
somebody1234 Dec 11, 2024
abcb91b
Fix integration tests
somebody1234 Dec 11, 2024
78a515a
Merge branch 'develop' into wip/sb/more-integration-tests
somebody1234 Dec 12, 2024
37edeb0
Fix more integration tests
somebody1234 Dec 12, 2024
9f9982a
Fix more integration tests
somebody1234 Dec 12, 2024
cea2aeb
Fix test errors
somebody1234 Dec 12, 2024
a9f45ea
Consistent formatting
somebody1234 Dec 12, 2024
8581f73
Fix lat integration test
somebody1234 Dec 12, 2024
f10d637
Fix
somebody1234 Dec 12, 2024
c796cde
Track backend calls in `organizationSettings.spec`
somebody1234 Dec 12, 2024
10ecb07
Add more docs for integration tests
somebody1234 Dec 12, 2024
6c0db07
Uncomment tests and skip them instead
somebody1234 Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix more integration tests
somebody1234 committed Dec 12, 2024

Verified

This commit was signed with the committer’s verified signature.
addaleax Anna Henningsen
commit 37edeb030e5f25fc34350ecaa104f4b95d2e7839
7 changes: 5 additions & 2 deletions app/gui/integration-test/dashboard/actions/index.ts
Original file line number Diff line number Diff line change
@@ -225,8 +225,11 @@ async function mockUnneededUrls({ page }: MockParams) {

page.route('https://github.com/enso-org/enso/releases/download/**', async (route) => {
await route.fulfill({
status: 302,
headers: { location: 'https://objects.githubusercontent.com/foo/bar' },
status: 200,
headers: {
'content-type': 'text/html',
},
body: '<meta http-equiv="Refresh" content="0; URL=https://objects.githubusercontent.com/foo/bar" />',
})
}),

1 change: 1 addition & 0 deletions app/gui/integration-test/dashboard/auth.setup.ts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import { test as setup } from '@playwright/test'
import { getAuthFilePath, mockAllAndLogin } from './actions'

setup('authenticate', ({ page }) => {
setup.slow()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, why we need to setup.slow() here?

const authFilePath = getAuthFilePath()
setup.skip(fs.existsSync(authFilePath), 'Already authenticated')
return mockAllAndLogin({ page })