Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
node-version: '22'
- run: node -v
- name: Npm install
run: npm install
- name: Install npm packages
run: npm ci
Comment thread
aleks-pro marked this conversation as resolved.
- name: Run Tests
run: npm run test
6 changes: 4 additions & 2 deletions detached-examples/kerberos-auth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ function startServer () {

execSync('docker cp server/index.js server:home/server/index.js');
execSync('docker cp server/package.json server:home/server/package.json');
execSync('docker cp server/package-lock.json server:home/server/package-lock.json');

execSync('docker exec server sh -c "cd /home/server && npm i"');
execSync('docker exec server sh -c "cd /home/server && npm ci"');
Comment thread
Copilot marked this conversation as resolved.
execSync('docker exec -d server node /home/server');
}

Expand All @@ -40,8 +41,9 @@ function startClient () {

execSync('docker cp client/index.js client:home/client/index.js');
execSync('docker cp client/package.json client:home/client/package.json');
execSync('docker cp client/package-lock.json client:home/client/package-lock.json');

execSync('docker exec client sh -c "cd /home/client && npm i"');
execSync('docker exec client sh -c "cd /home/client && npm ci"');
execSync('docker exec -d client node /home/client');
}

Expand Down
38 changes: 14 additions & 24 deletions examples/filter-tests-by-metadata/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,29 @@ fixture`The metadata of this fixture satisfies both exclusion requirements. Test
.meta({ severity: 'low', repeatDaily: false })
.page`https://devexpress.github.io/testcafe/example`;

test
.meta({ device: 'desktop', skip: false })
('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => {
await t.wait(1000);
});
test.meta({ device: 'desktop', skip: false })('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => {
await t.wait(1000);
});

fixture`The metadata of this fixture satisfies one exclusion requirement. TestCafe skips this fixture.`
.meta({ severity: 'low', repeatDaily: true })
.page`https://devexpress.github.io/testcafe/example`;

test
.meta({ device: 'desktop', skip: false })
('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => {
await t.wait(1000);
});
test.meta({ device: 'desktop', skip: false })('The metadata of this test does not satisfy either exclusion requirement. The test does not run because TestCafe skips the fixture', async t => {
await t.wait(1000);
});

fixture`The metadata of this fixture doesn't satisfy either exclusion requirement. TestCafe runs this fixture.`
.meta({ severity: 'high', repeatDaily: true })
.page`https://devexpress.github.io/testcafe/example`;

test
.meta({ device: 'mobile', skip: true })
("The metadata of this test satisfies both exclusion requirements. TestCafe skips this test.", async t => {
await t.wait(1000);
});
test.meta({ device: 'mobile', skip: true })('The metadata of this test satisfies both exclusion requirements. TestCafe skips this test.', async t => {
await t.wait(1000);
});

test
.meta({ device: 'mobile', skip: false })
("The metadata of this test satisfies one exclusion requirement. TestCafe skips this test.", async t => {
});
test.meta({ device: 'mobile', skip: false })('The metadata of this test satisfies one exclusion requirement. TestCafe skips this test.', async () => {
});

test
.meta({ device: 'desktop', skip: false })
("The metadata of this test doesn't satisfy either exclusion requirement. TestCafe runs this test.", async t => {
await t.wait(1000);
});
test.meta({ device: 'desktop', skip: false })('The metadata of this test doesn\'t satisfy either exclusion requirement. TestCafe runs this test.', async t => {
await t.wait(1000);
});
Loading