kopia lustrzana https://github.com/magicbug/Cloudlog
update test nad a few other minor updates
rodzic
238f1e66fa
commit
a0a12c776c
|
@ -14,7 +14,7 @@
|
||||||
/assets/sstvimages/*
|
/assets/sstvimages/*
|
||||||
/assets/js/sections/custom.js
|
/assets/js/sections/custom.js
|
||||||
/cypress/screenshots
|
/cypress/screenshots
|
||||||
/node_modules
|
/node_modules/
|
||||||
.idea/*
|
.idea/*
|
||||||
.DS_Store
|
.DS_Store
|
||||||
sync.sh
|
sync.sh
|
||||||
|
|
16
Dockerfile
16
Dockerfile
|
@ -24,21 +24,5 @@ RUN apt-get update && apt-get install -y \
|
||||||
&& docker-php-ext-install xml \
|
&& docker-php-ext-install xml \
|
||||||
&& a2enmod rewrite
|
&& a2enmod rewrite
|
||||||
|
|
||||||
# # Copy .env, config.php, and database.php into the docker image
|
|
||||||
# COPY .env ./
|
|
||||||
# COPY install/config/config.php install/config/
|
|
||||||
# COPY install/config/database.php install/config/
|
|
||||||
|
|
||||||
# # Add a script that reads the .env file and replaces the variables in the config.php and database.php files
|
|
||||||
# ADD script.sh ./
|
|
||||||
# RUN chmod +x script.sh
|
|
||||||
|
|
||||||
# # Run the script at build time
|
|
||||||
# RUN ./script.sh
|
|
||||||
|
|
||||||
# # Create the application/config directory
|
|
||||||
# RUN mkdir -p application/config
|
|
||||||
|
|
||||||
|
|
||||||
# Expose port 80
|
# Expose port 80
|
||||||
EXPOSE 80
|
EXPOSE 80
|
|
@ -1,18 +1,23 @@
|
||||||
describe("Version Info Modal", () => {
|
describe("Version Info Modal", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login();
|
cy.login();
|
||||||
cy.request(
|
|
||||||
"POST",
|
|
||||||
"http://localhost/index.php/user_options/enableVersionDialog"
|
|
||||||
).wait(1000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should open after login", () => {
|
it("should open after login", () => {
|
||||||
// check if the modal is visible
|
// Make sure the dialog is enabled
|
||||||
|
cy.request({
|
||||||
|
method: "POST",
|
||||||
|
url: "http://localhost/index.php/user_options/enableVersionDialog",
|
||||||
|
}).wait(1000);
|
||||||
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should close after clicking 'Close' button", () => {
|
it("should close after clicking 'Close' button", () => {
|
||||||
|
// Make sure the dialog is enabled
|
||||||
|
cy.request({
|
||||||
|
method: "POST",
|
||||||
|
url: "http://localhost/index.php/user_options/enableVersionDialog",
|
||||||
|
}).wait(1000);
|
||||||
// check if the modal is visible
|
// check if the modal is visible
|
||||||
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
||||||
// click the 'Close' button
|
// click the 'Close' button
|
||||||
|
@ -28,10 +33,16 @@ describe("Version Info Modal", () => {
|
||||||
.should("not.be.visible");
|
.should("not.be.visible");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should not show again after clicking 'Don't show again' button", () => {
|
it("should close after clicking 'Don't show again' button", () => {
|
||||||
|
// Make sure the dialog is enabled
|
||||||
|
cy.request({
|
||||||
|
method: "POST",
|
||||||
|
url: "http://localhost/index.php/user_options/enableVersionDialog",
|
||||||
|
}).wait(1000);
|
||||||
|
|
||||||
// check if the modal is visible
|
// check if the modal is visible
|
||||||
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
cy.get(".modal-title").contains("Version Info").should("be.visible");
|
||||||
// click the 'Close' button
|
// click the "Don't show again" button
|
||||||
cy.get("button")
|
cy.get("button")
|
||||||
.contains("Don't show again")
|
.contains("Don't show again")
|
||||||
.should("be.visible")
|
.should("be.visible")
|
||||||
|
@ -43,4 +54,9 @@ describe("Version Info Modal", () => {
|
||||||
.contains("Version Info")
|
.contains("Version Info")
|
||||||
.should("not.be.visible");
|
.should("not.be.visible");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("should not show the version info dialog after click 'Dont show again' button", () => {
|
||||||
|
// check if the modal is not visible
|
||||||
|
cy.get(".modal-title").should("not.exist");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue