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

test: [M3-7395] Add new cypress tests to longview landing page #10321

Merged
merged 4 commits into from
Apr 11, 2024

Conversation

cliu-akamai
Copy link
Contributor

Description 📝

Add new tests to check the empty state message in Longview landing page.

Major Changes 🔄

  • Add new cypress tests to tests to check Longview empty state

How to test 🧪

yarn cy:run -s "cypress/e2e/core/longview/longview.spec.ts"

@cliu-akamai cliu-akamai requested a review from a team as a code owner March 27, 2024 17:33
@cliu-akamai cliu-akamai requested review from jdamore-linode and removed request for a team March 27, 2024 17:33
Copy link

github-actions bot commented Mar 27, 2024

Coverage Report:
Base Coverage: 81.8%
Current Coverage: 81.8%

Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

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

Great work @cliu-akamai, really nicely done! Approved pending removal of that stray .skip() (edit: and changeset!)

@@ -103,7 +111,7 @@ describe('longview', () => {
* - Creates a Linode, connects to it via SSH, and installs Longview using the given cURL command.
* - Confirms that Cloud Manager UI updates to reflect Longview installation and data.
*/
it('can install Longview client on a Linode', () => {
it.skip('can install Longview client on a Linode', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it.skip('can install Longview client on a Linode', () => {
it('can install Longview client on a Linode', () => {

cy.wait('@ceateLongviewClient');

// Confirms that UI updates to show the new client when creating one.
cy.findByText(`longview-client-${client.id}`).should('be.visible');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
cy.findByText(`longview-client-${client.id}`).should('be.visible');
cy.findByText(`${client.label}`).should('be.visible');

Very minor change, but this way if the Longview client factory label ever changes the test will still pass 👍

@cliu-akamai cliu-akamai requested a review from a team as a code owner April 3, 2024 19:22
@cliu-akamai cliu-akamai requested review from dwiley-akamai and hkhalil-akamai and removed request for a team April 3, 2024 19:22
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

Tests pass ✅
Code review ✅

"@linode/manager": Tests
---

Add new cypress tests to longview landing page ([#10321](https://github.com/linode/manager/pull/10321))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Add new cypress tests to longview landing page ([#10321](https://github.com/linode/manager/pull/10321))
Add new Cypress tests for Longview landing page ([#10321](https://github.com/linode/manager/pull/10321))

Copy link
Contributor

@hkhalil-akamai hkhalil-akamai left a comment

Choose a reason for hiding this comment

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

Nice work!

@cliu-akamai cliu-akamai merged commit e726c81 into linode:develop Apr 11, 2024
18 checks passed
@cliu-akamai cliu-akamai deleted the feature/M3-7395 branch April 11, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants