-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
packages/integration-tests/src/tests/visibility/visibility.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* | ||
* Copyright 2024 Splunk Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
import { test } from '../../utils/test' | ||
import { expect } from '@playwright/test' | ||
|
||
test.describe('visibility', () => { | ||
test('native session id integration', async ({ recordPage }) => { | ||
await recordPage.goTo('/visibility/visibility.ejs') | ||
await recordPage.waitForTimeout(1000) | ||
|
||
await recordPage.changeVisibilityInTab('hidden') | ||
await recordPage.changeVisibilityInTab('visible') | ||
|
||
await recordPage.waitForSpans((spans) => spans.filter((span) => span.name === 'visibility').length >= 2) | ||
|
||
const receivedSpans = recordPage.receivedSpans | ||
const visibilitySpans = receivedSpans.filter((span) => span.name === 'visibility') | ||
|
||
expect(visibilitySpans).toHaveLength(2) | ||
expect(visibilitySpans[0].tags['hidden']).toBe('true') | ||
expect(visibilitySpans[1].tags['hidden']).toBe('false') | ||
}) | ||
}) |
43 changes: 0 additions & 43 deletions
43
packages/web/integration-tests/tests/visibility/visibility.spec.js
This file was deleted.
Oops, something went wrong.