-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Map and Label Remove Tests #3696
Conversation
Removed vultr server and associated DNS entries |
e1b87e5
to
2670463
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to take a look at in the "removes a feature from the map"
test 👍
editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx
Outdated
Show resolved
Hide resolved
editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.test.tsx
Outdated
Show resolved
Hide resolved
addFeaturesToMap(map, [point1]); | ||
|
||
const firstTabPanel = getByTestId("vertical-tabpanel-0"); | ||
|
||
expect(firstTabPanel).toBeVisible(); | ||
|
||
map = getByTestId("map-and-label-map"); | ||
expect(map).toHaveAttribute("drawgeojsondata", mockFeaturePointObj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DafyddLlyr happy path drawgeojsondata
check added here
What does this PR do?
Following previous work on Map and Label testing, I am continuing through and testing the Remove feature.
To test the feature being deleted the map, I am accessing the
drawgeojson
attribute of<my-map>
seemed a good way to confirm it has been deleted from the map itself. Open to alternative suggestions though.