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

feat: Map and Label Remove Tests #3696

Merged
merged 5 commits into from
Sep 18, 2024
Merged

feat: Map and Label Remove Tests #3696

merged 5 commits into from
Sep 18, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Sep 17, 2024

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.

    const mapTwo = getByTestId("map-and-label-map");

    expect(mapTwo).toHaveAttribute(
      "drawgeojsondata",
      `{"type":"FeatureCollection","features":[]}`
    );

@RODO94 RODO94 changed the title feat: Map and Label Remove Feature feat: Map and Label Remove Tests Sep 17, 2024
Copy link

github-actions bot commented Sep 17, 2024

Removed vultr server and associated DNS entries

@RODO94 RODO94 force-pushed the rory/mal-test-remove branch from e1b87e5 to 2670463 Compare September 17, 2024 14:00
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a 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 👍

addFeaturesToMap(map, [point1]);

const firstTabPanel = getByTestId("vertical-tabpanel-0");

expect(firstTabPanel).toBeVisible();

map = getByTestId("map-and-label-map");
expect(map).toHaveAttribute("drawgeojsondata", mockFeaturePointObj);
Copy link
Contributor Author

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

@RODO94 RODO94 merged commit 1e61b3d into main Sep 18, 2024
12 checks passed
@RODO94 RODO94 deleted the rory/mal-test-remove branch September 18, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants