Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chrome-api-jstocxxtest] Add more GetStatusChange tests #1001

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

ViktoriiaKovalova
Copy link
Collaborator

Add tests to check that events with various eventStates and eventCounts are handled correctly.
Add test with optional timeout parameter passed.

@ViktoriiaKovalova
Copy link
Collaborator Author

Looks like CI is breaking because of the github bug
actions/checkout#1448

Copy link
Collaborator

@Fabian-Sommer Fabian-Sommer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mockControl.$replayAll();

launchPcscServer(/*initialDevices=*/[
{'id': 123, 'type': 'gemaltoPcTwinReader', 'cardType': 'cosmoId70'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think considering how often the strings 'gemaltoPcTwinReader' and 'cosmoId70' are used, they deserve to be constants (throughout this file, maybe in another PR) . Especially considering that at least the Gemalto Reader already has some associated constants, and I suspect the exact string might be important.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea! I'll make a follow-up PR :)

@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Continuous Integration: All tests passed.
C/C++ test coverage: 71.70% lines.

@ViktoriiaKovalova ViktoriiaKovalova merged commit cfdeb86 into main Sep 4, 2023
12 of 13 checks passed
Support for Web Smart Card API automation moved this from In progress to Done Sep 4, 2023
@ViktoriiaKovalova ViktoriiaKovalova deleted the get-status-change branch September 4, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants