mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
test: use platform specific path separator (#23311)
The test has been failing recently https://devops.playwright.dev/flakiness.html#filter_spec=should+list+files×tamp=1685115453114
This commit is contained in:
parent
fa86f2aee0
commit
57e496c978
@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import path from 'path';
|
||||
import { test, expect } from './playwright-test-fixtures';
|
||||
|
||||
test('should list files', async ({ runListFiles }) => {
|
||||
@ -31,7 +32,7 @@ test('should list files', async ({ runListFiles }) => {
|
||||
{
|
||||
name: 'foo',
|
||||
testDir: expect.stringContaining('list-files-should-list-files-playwright-test'),
|
||||
outputDir: expect.stringContaining('list-files-should-list-files-playwright-test/test-results'),
|
||||
outputDir: expect.stringContaining(path.join('list-files-should-list-files-playwright-test', 'test-results')),
|
||||
use: {},
|
||||
files: [
|
||||
expect.stringContaining('a.test.js')
|
||||
@ -40,7 +41,7 @@ test('should list files', async ({ runListFiles }) => {
|
||||
{
|
||||
name: 'bar',
|
||||
testDir: expect.stringContaining('list-files-should-list-files-playwright-test'),
|
||||
outputDir: expect.stringContaining('list-files-should-list-files-playwright-test/test-results'),
|
||||
outputDir: expect.stringContaining(path.join('list-files-should-list-files-playwright-test', 'test-results')),
|
||||
use: {},
|
||||
files: [
|
||||
expect.stringContaining('a.test.js')
|
||||
@ -67,7 +68,7 @@ test('should include testIdAttribute', async ({ runListFiles }) => {
|
||||
{
|
||||
name: '',
|
||||
testDir: expect.stringContaining('list-files-should-include-testIdAttribute-playwright-test'),
|
||||
outputDir: expect.stringContaining('list-files-should-include-testIdAttribute-playwright-test/test-results'),
|
||||
outputDir: expect.stringContaining(path.join('list-files-should-include-testIdAttribute-playwright-test', 'test-results')),
|
||||
use: {
|
||||
testIdAttribute: 'myid'
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user