-
Notifications
You must be signed in to change notification settings - Fork 545
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: add page reload judgment #2370
Changes from 1 commit
ddb64f0
629ca33
c9f1684
b148e46
6cfad8e
8278d2e
2bfb532
d6274a5
24fd393
8f616c3
a797c9b
ca5b007
b23afeb
5b6671c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ context('Table Auto Jump When No Data', () => { | |
deleteConsumerSuccess: 'Delete Consumer Successfully', | ||
}; | ||
|
||
beforeEach(() => { | ||
before(() => { | ||
cy.login(); | ||
Array.from({ length: 11 }).forEach((value, key) => { | ||
const payload = { | ||
|
@@ -59,12 +59,12 @@ context('Table Auto Jump When No Data', () => { | |
cy.contains('Consumer').click(); | ||
cy.get(selector.page_item).click(); | ||
cy.wait(1000); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why wait for 1 s? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @oil-oil ping |
||
cy.contains('Delete').click({ force: true }); | ||
cy.contains('Delete').click(); | ||
cy.get(selector.popoper) | ||
.not(selector.popoprerHiden) | ||
.contains('Confirm') | ||
.should('be.visible') | ||
.click({ force: true }); | ||
.click(); | ||
cy.get(selector.notification).should('contain', data.deleteConsumerSuccess); | ||
cy.get(selector.notificationCloseIcon).click(); | ||
cy.url().should('contains', '/consumer/list?page=1&pageSize=10'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ context('Batch Create Proto And Delete Proto', () => { | |
deleteProtoSuccess: 'Delete proto Successfully', | ||
}; | ||
|
||
beforeEach(() => { | ||
before(() => { | ||
cy.login(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
Array.from({ length: 11 }).forEach(async (value, key) => { | ||
const payload = { | ||
|
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.