如何使用 Playwright 在测试中使用多标签/注释

问题描述 投票:0回答:1

根据 Playwright Tag-Tests Docs

标记测试如下所示:

test('My test @foo', async ({ page }) => {
  // ...
});

但是没有提到多重标记。

我正在寻找类似的东西:

test('My test @foo,bar', async ({ page }) => {});
or
test('My test @foo@bar', async ({ page }) => {});
javascript annotations tags playwright
1个回答
0
投票

我找到了一个解决方案,而且很简单,前言很简单,只需用空格分隔标签即可:

test('My test @foo @bar', async ({ page }) => {
  // ...
});
© www.soinside.com 2019 - 2024. All rights reserved.