Automated tests TestCafe:用户角色-错误指定的glob模式与任何文件都不匹配,或者默认测试目录为空

Automated tests TestCafe:用户角色-错误指定的glob模式与任何文件都不匹配,或者默认测试目录为空,automated-tests,roles,e2e-testing,testcafe,web-testing,Automated Tests,Roles,E2e Testing,Testcafe,Web Testing,我正试图根据 在我看来,一切都很好,但我收到了一封信 错误指定的全局模式与任何文件不匹配,或者默认测试目录为空 我不明白为什么。有人能指出错误在哪里吗 > import { ClientFunction } from 'testcafe'; > // take url import config from './Config/config'; > import loginPage from './POM_LoginPage'; > import Elements fr

我正试图根据

在我看来,一切都很好,但我收到了一封信 错误指定的全局模式与任何文件不匹配,或者默认测试目录为空

我不明白为什么。有人能指出错误在哪里吗

> import { ClientFunction } from 'testcafe'; 
> // take url import config from './Config/config'; 
> import loginPage from './POM_LoginPage';
> import Elements from './POM_Elements'; 
>import {Role} from 'testcafe'
> 
> 
> let l1 =  require('./support/global').log[1];
> 
> const SuperUser = Role(`${config.baseUrl}`, async t => {
>     //Log in as superuser
> 
>   await loginPage.logIn(l1.username, l1.password)
> 
> });
> 
> ixture`SanityTests`  
>   .beforeEach(async t => {
>     await t.maximizeWindow()   })  
>   .page`${config.baseUrl}`;
> 
> 
>   test('Navigation to the Users components', async t => {
> 
>     //Log in
>    
>     await t.useRole(SuperUser);
> 
>     //Go to the "other page"
> 
>     await t.click(Elements.navDropdown);
>     await t.click(Elements.usersButton);
> 
>    const users= ClientFunction(() => window.location.href) 
>    await
>    t.expect(users()).contains(`${config.Url}`);
>       })

此问题与功能无关。错误消息说明您为已执行的测试指定了错误的全局路径模式。检查指定的路径值是否与任何测试匹配。
有关更多信息,请参阅方法说明。

尝试在cli arguments/config文件中引用glob。