From 7df1eef344de1cb8e66191e59291dd26dc9d7f6b Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Sun, 2 Jun 2024 15:11:02 -0700
Subject: Rename some tests
---
test/integration/select.test.js | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
(limited to 'test')
diff --git a/test/integration/select.test.js b/test/integration/select.test.js
index 588876b..e16ad4d 100644
--- a/test/integration/select.test.js
+++ b/test/integration/select.test.js
@@ -31,7 +31,7 @@ describe('a trooper', () => {
});
});
- it('is selected by clicking on its counter', async () => {
+ it('is selected when its counter is clicked', async () => {
await driver.get(url('/'));
await page.waitUntilMapLoaded(driver);
@@ -49,7 +49,7 @@ describe('a trooper', () => {
await page.expectSelected(await record);
});
- it('is selected by clicking on its record', async () => {
+ it('is selected when its record is clicked', async () => {
await driver.get(url('/'));
await page.waitUntilMapLoaded(driver);
@@ -67,6 +67,8 @@ describe('a trooper', () => {
await driver.switchTo().frame(await mapResource);
await page.expectSelected(counter);
});
+
+ it.todo('is selected when its off-board counter is clicked');
});
describe('a selected trooper', () => {
@@ -77,7 +79,7 @@ describe('a selected trooper', () => {
});
});
- it('is deselected by clicking on its counter', async () => {
+ it('is deselected when its counter is clicked', async () => {
await driver.get(url('/'));
await page.waitUntilMapLoaded(driver);
@@ -95,7 +97,7 @@ describe('a selected trooper', () => {
await page.expectNotSelected(await record);
});
- it('is deselected by clicking on its record', async () => {
+ it('is deselected when its record is clicked', async () => {
await driver.get(url('/'));
await page.waitUntilMapLoaded(driver);
@@ -117,10 +119,6 @@ describe('a selected trooper', () => {
it.todo('is deselected when another trooper is selected');
});
-describe('an off-board trooper', () => {
- it.todo('is selected by clicking on its counter');
-});
-
afterEach(async () => {
await driver.quit();
});
--
cgit v1.2.3