Skip to content

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

Merged
cliu-akamai merged 4 commits into
linode:developfrom
cliu-akamai:feature/M3-7395
Apr 11, 2024
Merged

cliu-akamai merged 4 commits into
linode:developfrom
cliu-akamai:feature/M3-7395

Conversation

@cliu-akamai

Copy link
Copy Markdown
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
@github-actions

github-actions Bot commented Mar 27, 2024 •

Copy link
Copy Markdown

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

@jdamore-linode jdamore-linode left a comment •

Copy link
Copy Markdown
Contributor

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!)

Copy link
Copy Markdown
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', () => {

Copy link
Copy Markdown
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

@dwiley-akamai dwiley-akamai left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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))

@hkhalil-akamai hkhalil-akamai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work!

Comment thread packages/manager/cypress/e2e/core/longview/longview.spec.ts Outdated
Comment thread packages/manager/cypress/e2e/core/longview/longview.spec.ts Outdated
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.

4 participants